mem-cred: Add a method to unify certificate references, without adding it
authorMartin Willi <martin@revosec.ch>
Fri, 6 Feb 2015 11:34:30 +0000 (12:34 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 3 Mar 2015 12:50:26 +0000 (13:50 +0100)
commitef2c61bc9279a3f7880df67d6af12b785c94694a
tree77364babf2160767705b7bca5ca8bf2107fbae3a
parentaba46b104ec0e3e8555f51af2a718ab7f528dde9
mem-cred: Add a method to unify certificate references, without adding it

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.
src/libstrongswan/credentials/sets/mem_cred.c
src/libstrongswan/credentials/sets/mem_cred.h