aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials/sets/mem_cred.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-24 18:17:34 +0200
committerMartin Willi <martin@revosec.ch>2010-08-25 10:28:23 +0200
commit3dd06bd4ed8259ae2d62c317d6af661f9a8ad2da (patch)
tree374d4f0fb8f5af6651354c3ebf02f164c498d3d3 /src/libstrongswan/credentials/sets/mem_cred.h
parent72c6335de978c9d57f0413287ef7387d2a6d566e (diff)
downloadstrongswan-3dd06bd4ed8259ae2d62c317d6af661f9a8ad2da.tar.bz2
strongswan-3dd06bd4ed8259ae2d62c317d6af661f9a8ad2da.tar.xz
Added private key 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/credentials/sets/mem_cred.h b/src/libstrongswan/credentials/sets/mem_cred.h
index 5863cc857..ccb04e6fd 100644
--- a/src/libstrongswan/credentials/sets/mem_cred.h
+++ b/src/libstrongswan/credentials/sets/mem_cred.h
@@ -44,6 +44,13 @@ struct mem_cred_t {
void (*add_cert)(mem_cred_t *this, bool trusted, certificate_t *cert);
/**
+ * Add a private key to the credential set.
+ *
+ * @param key key, reference gets owned by set
+ */
+ void (*add_key)(mem_cred_t *this, private_key_t *key);
+
+ /**
* Add a shared key to the credential set.
*
* @param shared shared key to add, gets owned by set