aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/sshkey/sshkey_builder.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-04-03 09:21:43 +0200
committerTobias Brunner <tobias@strongswan.org>2014-06-18 09:16:24 +0200
commit1cda692110f6853d6da2adae928881d67db94fa9 (patch)
tree4a1aff9fea1e85ce5f5ffd94a14250967991af4c /src/libstrongswan/plugins/sshkey/sshkey_builder.h
parent97dafa16a0e671f8f0676de3e3704f0b7c6e2241 (diff)
downloadstrongswan-1cda692110f6853d6da2adae928881d67db94fa9.tar.bz2
strongswan-1cda692110f6853d6da2adae928881d67db94fa9.tar.xz
sshkey: Add support to parse SSH public keys from files with left|rightsigkey
Diffstat (limited to 'src/libstrongswan/plugins/sshkey/sshkey_builder.h')
-rw-r--r--src/libstrongswan/plugins/sshkey/sshkey_builder.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/sshkey/sshkey_builder.h b/src/libstrongswan/plugins/sshkey/sshkey_builder.h
index d138c879b..7225f5550 100644
--- a/src/libstrongswan/plugins/sshkey/sshkey_builder.h
+++ b/src/libstrongswan/plugins/sshkey/sshkey_builder.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Tobias Brunner
+ * Copyright (C) 2013-2014 Tobias Brunner
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
@@ -48,4 +48,15 @@ struct sshkey_public_key_t {
*/
sshkey_public_key_t *sshkey_public_key_load(key_type_t type, va_list args);
+/**
+ * Load a public key in RFC 4253 format as certificate.
+ *
+ * Takes a BUILD_FROM_FILE and BUILD_SUBJECT argument.
+ *
+ * @param type type of the certificate, must be CERT_TRUSTED_PUBKEY
+ * @param args builder_part_t argument list
+ * @return built certificate, NULL on failure
+ */
+certificate_t *sshkey_certificate_load(certificate_type_t type, va_list args);
+
#endif /** SSHKEY_BUILDER_H_ @}*/