aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_util.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-08-24 14:09:18 +0200
committerMartin Willi <martin@strongswan.org>2009-08-26 11:23:52 +0200
commite35c3e2a032975d1accf04376d880127f7743889 (patch)
tree84e362daf1982d836b25f347bad74de5440e86ee /src/libstrongswan/plugins/openssl/openssl_util.h
parentcbd51389481b0b0ce11261cb16ae2a2e9c3939bb (diff)
downloadstrongswan-e35c3e2a032975d1accf04376d880127f7743889.tar.bz2
strongswan-e35c3e2a032975d1accf04376d880127f7743889.tar.xz
updated openssl plugin to new private/public key API, use encoder framework
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_util.h')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_util.h b/src/libstrongswan/plugins/openssl/openssl_util.h
index 6ba1ff07b..921c52612 100644
--- a/src/libstrongswan/plugins/openssl/openssl_util.h
+++ b/src/libstrongswan/plugins/openssl/openssl_util.h
@@ -65,4 +65,14 @@ bool openssl_bn_cat(int len, BIGNUM *a, BIGNUM *b, chunk_t *chunk);
*/
bool openssl_bn_split(chunk_t chunk, BIGNUM *a, BIGNUM *b);
+
+/**
+ * Fingerprinting/encdoing of PKCS#1/ASN.1 encoded keys.
+ *
+ * @param type type of the fingerprint/encoding to create.
+ * @param encoding receives fingerprint/encoding, allocated
+ * @param args variable argument list of encoding parts
+ */
+bool openssl_encode(key_encoding_type_t type, chunk_t *encoding, va_list args);
+
#endif /** OPENSSL_UTIL_H_ @}*/