* src/pki.c (ssh_pki_signature_verify_blob): Fix debug message.
Signed-off-by: Justus Winter <[email protected]>
---
src/pki.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/pki.c b/src/pki.c
index 39a7515..4835468 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -1579,7 +1579,10 @@ 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,
--
2.1.4