From 92fdf31d2996e0dea74b540b26d23deefed741f9 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 29 Mar 2016 13:07:04 +0200 Subject: pki: Fix debug message * src/pki.c (ssh_pki_signature_verify_blob): Fix debug message. Signed-off-by: Justus Winter Reviewed-by: Andreas Schneider --- src/pki.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/pki.c') diff --git a/src/pki.c b/src/pki.c index 39a75153..2d48d255 100644 --- a/src/pki.c +++ b/src/pki.c @@ -1579,7 +1579,11 @@ int ssh_pki_signature_verify_blob(ssh_session session, sha1(digest, dlen, hash); #ifdef DEBUG_CRYPTO - ssh_print_hexa("Hash to be verified with dsa", hash, SHA_DIGEST_LEN); + ssh_print_hexa(key->type == SSH_KEYTYPE_DSS + ? "Hash to be verified with DSA" + : "Hash to be verified with RSA", + hash, + SHA_DIGEST_LEN); #endif rc = pki_signature_verify(session, -- cgit v1.2.3