aboutsummaryrefslogtreecommitdiff
path: root/src/pki.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-11-26 18:01:13 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-30 16:24:21 +0100
commitc7628fbfea9ba889cfb1c7fdcc66e233b8c1d673 (patch)
treeea34573d5588349c32d3168db288f37d7f54d1be /src/pki.c
parent783e5fd206df968123a541a98c11b93f1d9da291 (diff)
downloadlibssh-c7628fbfea9ba889cfb1c7fdcc66e233b8c1d673.tar.gz
libssh-c7628fbfea9ba889cfb1c7fdcc66e233b8c1d673.tar.xz
libssh-c7628fbfea9ba889cfb1c7fdcc66e233b8c1d673.zip
pki: Return default RSA key type for DIGEST_AUTO
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki.c')
-rw-r--r--src/pki.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pki.c b/src/pki.c
index a581b72e..d7ee510c 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -217,6 +217,7 @@ ssh_key_signature_to_char(enum ssh_keytypes_e type,
case SSH_DIGEST_SHA512:
return "rsa-sha2-512";
case SSH_DIGEST_SHA1:
+ case SSH_DIGEST_AUTO:
return "ssh-rsa";
default:
return NULL;