mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09: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>
(cherry picked from commit c7628fbfea)
This commit is contained in:
committed by
Andreas Schneider
parent
ad4f1dbea0
commit
b1bae1d90f
@@ -214,6 +214,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