aboutsummaryrefslogtreecommitdiff
path: root/src/packet_crypt.c
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-07-29 17:40:35 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-07-30 13:26:29 +0200
commit68baebbd6222995ca5aceac1d9dac53fe0b8a7c0 (patch)
tree3fb7de340930ca65d218957fca5a0b50460511e3 /src/packet_crypt.c
parent33927f3ae84501c9bcafc3133ec6fd06440beebc (diff)
downloadlibssh-68baebbd6222995ca5aceac1d9dac53fe0b8a7c0.tar.gz
libssh-68baebbd6222995ca5aceac1d9dac53fe0b8a7c0.tar.xz
libssh-68baebbd6222995ca5aceac1d9dac53fe0b8a7c0.zip
Replace ssh_print_hexa() with ssh_log_hexdump()
Replace all occurrences of the deprecated function ssh_print_hexa() with the introduced ssh_log_hexdump(). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/packet_crypt.c')
-rw-r--r--src/packet_crypt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/packet_crypt.c b/src/packet_crypt.c
index 2ed097ad..e31ab432 100644
--- a/src/packet_crypt.c
+++ b/src/packet_crypt.c
@@ -196,11 +196,11 @@ unsigned char *ssh_packet_encrypt(ssh_session session, void *data, uint32_t len)
hmac_final(ctx, crypto->hmacbuf, &finallen);
}
#ifdef DEBUG_CRYPTO
- ssh_print_hexa("mac: ",data,hmac_digest_len(type));
+ ssh_log_hexdump("mac: ",data,hmac_digest_len(type));
if (finallen != hmac_digest_len(type)) {
printf("Final len is %d\n",finallen);
}
- ssh_print_hexa("Packet hmac", crypto->hmacbuf, hmac_digest_len(type));
+ ssh_log_hexdump("Packet hmac", crypto->hmacbuf, hmac_digest_len(type));
#endif
}
explicit_bzero(out, len);
@@ -264,9 +264,9 @@ int ssh_packet_hmac_verify(ssh_session session,
hmac_final(ctx, hmacbuf, &hmaclen);
#ifdef DEBUG_CRYPTO
- ssh_print_hexa("received mac",mac,hmaclen);
- ssh_print_hexa("Computed mac",hmacbuf,hmaclen);
- ssh_print_hexa("seq",(unsigned char *)&seq,sizeof(uint32_t));
+ ssh_log_hexdump("received mac",mac,hmaclen);
+ ssh_log_hexdump("Computed mac",hmacbuf,hmaclen);
+ ssh_log_hexdump("seq",(unsigned char *)&seq,sizeof(uint32_t));
#endif
if (secure_memcmp(mac, hmacbuf, hmaclen) == 0) {
return 0;