[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 7/7] pki: Fix debug message


* src/pki.c (ssh_pki_signature_verify_blob): Fix debug message.

Signed-off-by: Justus Winter <justus@xxxxxxxxxxx>
---
 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


References:
[PATCH 1/5] options: Check if a port has been givenJustus Winter <justus@xxxxxxxxxxx>
[PATCH 1/7] options: Check if a port has been givenJustus Winter <justus@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org