aboutsummaryrefslogtreecommitdiff
path: root/src/pki.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-03-29 13:07:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2016-05-02 11:55:39 +0200
commit92fdf31d2996e0dea74b540b26d23deefed741f9 (patch)
treecbe9e2f7ec0871ba107b0b89820ceddec9e3a218 /src/pki.c
parent878a650c7a1907fb3daa51d1de78417165e397c0 (diff)
downloadlibssh-92fdf31d2996e0dea74b540b26d23deefed741f9.tar.gz
libssh-92fdf31d2996e0dea74b540b26d23deefed741f9.tar.xz
libssh-92fdf31d2996e0dea74b540b26d23deefed741f9.zip
pki: Fix debug message
* src/pki.c (ssh_pki_signature_verify_blob): Fix debug message. Signed-off-by: Justus Winter <justus@g10code.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki.c')
-rw-r--r--src/pki.c6
1 files changed, 5 insertions, 1 deletions
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,