diff options
author | Sahana Prasad <sahana@redhat.com> | 2019-12-18 22:54:15 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-12-20 14:41:02 +0100 |
commit | 6bf4ada240f3ea28db00f5b48ae3c9ab6fc5c3d8 (patch) | |
tree | 887d1a11c85768134810298c421c90464ef517e8 /include/libssh | |
parent | 86a0dfa65b55e1beee98d4709f91bac50068711d (diff) | |
download | libssh-6bf4ada240f3ea28db00f5b48ae3c9ab6fc5c3d8.tar.gz libssh-6bf4ada240f3ea28db00f5b48ae3c9ab6fc5c3d8.tar.xz libssh-6bf4ada240f3ea28db00f5b48ae3c9ab6fc5c3d8.zip |
src: Helper funtions to detect PKCS #11 URIs
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 'include/libssh')
-rw-r--r-- | include/libssh/pki.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 9b104349..fa0a81e6 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -162,4 +162,9 @@ ssh_public_key ssh_pki_convert_key_to_publickey(const ssh_key key); ssh_private_key ssh_pki_convert_key_to_privatekey(const ssh_key key); int ssh_key_algorithm_allowed(ssh_session session, const char *type); + +/* PKCS11 URI function to check if filename is a path or a PKCS11 URI */ +bool ssh_pki_is_uri(const char *filename); +char *ssh_pki_export_pub_uri_from_priv_uri(const char *priv_uri); + #endif /* PKI_H_ */ |