mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
pki: Return default RSA key type for DIGEST_AUTO
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
783e5fd206
commit
c7628fbfea
@@ -217,6 +217,7 @@ ssh_key_signature_to_char(enum ssh_keytypes_e type,
|
|||||||
case SSH_DIGEST_SHA512:
|
case SSH_DIGEST_SHA512:
|
||||||
return "rsa-sha2-512";
|
return "rsa-sha2-512";
|
||||||
case SSH_DIGEST_SHA1:
|
case SSH_DIGEST_SHA1:
|
||||||
|
case SSH_DIGEST_AUTO:
|
||||||
return "ssh-rsa";
|
return "ssh-rsa";
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user