aboutsummaryrefslogtreecommitdiff
path: root/src/pki_mbedcrypto.c
diff options
context:
space:
mode:
authorSahana Prasad <sahana@redhat.com>2019-12-18 22:53:04 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-20 16:17:33 +0100
commit4ea09256f67c381bed44af54d8cbfa42d81df314 (patch)
treee458deb1590de6e003739c59c2c91d0c2c5eefd4 /src/pki_mbedcrypto.c
parent6bf4ada240f3ea28db00f5b48ae3c9ab6fc5c3d8 (diff)
downloadlibssh-4ea09256f67c381bed44af54d8cbfa42d81df314.tar.gz
libssh-4ea09256f67c381bed44af54d8cbfa42d81df314.tar.xz
libssh-4ea09256f67c381bed44af54d8cbfa42d81df314.zip
src: Implements PKCS11 URI support
Imports private and public keys from the engine via PKCS11 URIs. Uses the imported keys to authenticate to the ssh server. Signed-off-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki_mbedcrypto.c')
-rw-r--r--src/pki_mbedcrypto.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pki_mbedcrypto.c b/src/pki_mbedcrypto.c
index dd1a513e..08905cd9 100644
--- a/src/pki_mbedcrypto.c
+++ b/src/pki_mbedcrypto.c
@@ -1591,4 +1591,14 @@ int pki_key_generate_dss(ssh_key key, int parameter)
(void) parameter;
return SSH_ERROR;
}
+
+int pki_uri_import(const char *uri_name, ssh_key *key, enum ssh_key_e key_type)
+{
+ (void) uri_name;
+ (void) key;
+ (void) key_type;
+ SSH_LOG(SSH_LOG_WARN,
+ "mbedcrypto does not support PKCS #11");
+ return SSH_ERROR;
+}
#endif /* HAVE_LIBMBEDCRYPTO */