mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
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>
This commit is contained in:
committed by
Andreas Schneider
parent
6bf4ada240
commit
4ea09256f6
@@ -2457,4 +2457,13 @@ int pki_verify_data_signature(ssh_signature signature,
|
||||
return SSH_OK;
|
||||
}
|
||||
|
||||
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,
|
||||
"gcrypt does not support PKCS #11");
|
||||
return SSH_ERROR;
|
||||
}
|
||||
#endif /* HAVE_LIBGCRYPT */
|
||||
|
||||
Reference in New Issue
Block a user