aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials/sets/mem_cred.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-24 16:59:45 +0200
committerMartin Willi <martin@revosec.ch>2010-08-25 10:28:22 +0200
commit72c6335de978c9d57f0413287ef7387d2a6d566e (patch)
tree6b311b47feb9db1c94ca9d4a2256b5ee7b7c27b8 /src/libstrongswan/credentials/sets/mem_cred.h
parente54e86cb49ac78bef8878717d3d5faeffa71af4c (diff)
downloadstrongswan-72c6335de978c9d57f0413287ef7387d2a6d566e.tar.bz2
strongswan-72c6335de978c9d57f0413287ef7387d2a6d566e.tar.xz
Added certificate support to in-memory credential set
Diffstat (limited to 'src/libstrongswan/credentials/sets/mem_cred.h')
-rw-r--r--src/libstrongswan/credentials/sets/mem_cred.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/credentials/sets/mem_cred.h b/src/libstrongswan/credentials/sets/mem_cred.h
index 18b42b900..5863cc857 100644
--- a/src/libstrongswan/credentials/sets/mem_cred.h
+++ b/src/libstrongswan/credentials/sets/mem_cred.h
@@ -36,6 +36,14 @@ struct mem_cred_t {
credential_set_t set;
/**
+ * Add a certificate to the credential set.
+ *
+ * @param trusted TRUE to serve certificate as trusted
+ * @param cert certificate, reference gets owned by set
+ */
+ void (*add_cert)(mem_cred_t *this, bool trusted, certificate_t *cert);
+
+ /**
* Add a shared key to the credential set.
*
* @param shared shared key to add, gets owned by set