aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/stroke/stroke_cred.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-04-30 00:31:42 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-04-30 00:31:42 +0200
commit5f1931ada11a826733162d0b7f587174416f249f (patch)
treea2d4a2e7807c22a2f478eea49509b5e5e3074e83 /src/libcharon/plugins/stroke/stroke_cred.h
parent2338b9f019037ed98ecaeb8077ffd8bc1a2a95fc (diff)
downloadstrongswan-5f1931ada11a826733162d0b7f587174416f249f.tar.bz2
strongswan-5f1931ada11a826733162d0b7f587174416f249f.tar.xz
added support for raw RSA public keys to stroke
Diffstat (limited to 'src/libcharon/plugins/stroke/stroke_cred.h')
-rw-r--r--src/libcharon/plugins/stroke/stroke_cred.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_cred.h b/src/libcharon/plugins/stroke/stroke_cred.h
index 89b235f54..83e648819 100644
--- a/src/libcharon/plugins/stroke/stroke_cred.h
+++ b/src/libcharon/plugins/stroke/stroke_cred.h
@@ -66,6 +66,17 @@ struct stroke_cred_t {
certificate_t* (*load_peer)(stroke_cred_t *this, char *filename);
/**
+ * Load a raw public key and serve it through the credential_set.
+ *
+ * @param type type of the raw public key (RSA or ECDSA)
+ * @param filename file to load raw public key from
+ * @param identity identity of the raw public key owner
+ * @return reference to loaded raw public key, or NULL
+ */
+ certificate_t* (*load_pubkey)(stroke_cred_t *this, key_type_t type,
+ char *filename, identification_t *identity);
+
+ /**
* Add a shared secret to serve through the credential_set.
*
* @param shared shared key to add, gets owned