aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials/sets/mem_cred.c
Commit message (Collapse)AuthorAgeFilesLines
* linked-list: Change return value of find_first() and signature of its callbackTobias Brunner2017-05-261-7/+9
| | | | This avoids the unportable five pointer hack.
* Change interface for enumerator_create_filter() callbackTobias Brunner2017-05-261-101/+113
| | | | | This avoids the unportable 5 pointer hack, but requires enumerating in the callback.
* mem-cred: Add methods to add/remove shared keys with unique identifiersTobias Brunner2017-02-161-6/+80
| | | | Also added is a method to enumerate the unique identifiers.
* mem-cred: Add method to remove a private key with a specific fingerprintTobias Brunner2017-02-161-0/+27
|
* mem-cred: Support storing a delta CRL together with its baseTobias Brunner2016-10-111-8/+30
| | | | | | | | | | | | So far every "newer" CRL (higher serial or by date) replaced an existing "older" CRL. This meant that delta CRLs replaced an existing base CRL and that base CRLs weren't added if a delta CRL was already stored. So the base had to be re-fetched every time after a delta CRL was added. With this change one delta CRL to the latest base may be stored. A newer delta CRL will replace an existing delta CRL (but not its base, older base CRLs are removed, though). And a newer base will replace the existing base and optional delta CRL.
* mem-cred: Fix memory leak when replacing existing CRLsTobias Brunner2016-05-111-0/+1
| | | | Fixes #1442.
* mem-cred: We don't need a write lock when looking for a certificateTobias Brunner2015-08-201-1/+1
|
* mem-cred: Add a method to atomically replace all certificatesTobias Brunner2015-08-201-9/+47
|
* mem-cred: Add a method to unify certificate references, without adding itMartin Willi2015-03-031-0/+19
| | | | | In contrast to add_cert_ref(), get_cert_ref() does not add the certificate to the set, but only finds a reference to the same certificate, if found.
* mem-cred: Replace existing equal shared keys during add_shared()Martin Willi2014-05-071-3/+56
|
* mem-cred: Replace existing equal private keys during add_key()Martin Willi2014-05-071-0/+17
|
* Add a method to replace all secrets in a mem_cred_t objectTobias Brunner2013-03-201-4/+57
|
* Moved data structures to new collections subfolderTobias Brunner2012-10-241-1/+1
|
* Added CDP support to mem_credMartin Willi2011-01-051-1/+97
|
* fixed bug in mem_cred.c:add_crl()Andreas Steffen2010-12-121-1/+1
|
* Insert certificates and secrets at the front of the lists.Tobias Brunner2010-12-031-9/+9
| | | | | As the lookup is also from front to back, certificates added later are now found first, which is useful in case of e.g. "reread cacerts".
* Function add_crl added to mem_cred_t.Tobias Brunner2010-12-031-0/+60
|
* Function added to clear secrets (but not certs) from mem_cred_t.Tobias Brunner2010-12-031-4/+14
|
* Alternative to mem_cred_t.add_cert added, which returns the certificate.Tobias Brunner2010-12-031-4/+29
| | | | If the certificate is already cached, the cached version is returned.
* Function added to mem_cred_t to add shared secret with a linked list of owners.Tobias Brunner2010-12-031-9/+20
|
* Renamed mem_cred_t clear function internally to clear_, fixes potential name ↵Martin Willi2010-10-281-3/+3
| | | | conflict
* Avoid duplicate certificates in mem_cred_t.Tobias Brunner2010-10-141-3/+13
|
* Added function to clear all credentials from mem_cred_t.Tobias Brunner2010-10-141-3/+20
|
* Fixed possible segmentation fault.Tobias Brunner2010-10-141-1/+1
|
* Added private key support to in-memory credential setMartin Willi2010-08-251-1/+70
|
* Added certificate support to in-memory credential setMartin Willi2010-08-251-2/+113
|
* Implemented a generic in-memory credential set, currently for shared keys onlyMartin Willi2010-08-041-0/+226