aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-05 10:52:39 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-05 10:52:39 +0100
commitc0a7a84e92a96330c44519880bd35f835688d3ce (patch)
tree9a98f5f3980887597b149335464fdb48224d191a
parent4019dbed8531381f0971151d83c6f7eb31ae841a (diff)
downloadlibssh-c0a7a84e92a96330c44519880bd35f835688d3ce.tar.gz
libssh-c0a7a84e92a96330c44519880bd35f835688d3ce.tar.xz
libssh-c0a7a84e92a96330c44519880bd35f835688d3ce.zip
dh: Fix build with DEBUG_CRYPTO.
-rw-r--r--src/dh.c8
-rw-r--r--src/ecdh.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/src/dh.c b/src/dh.c
index c37051b..cb5e7d2 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -473,9 +473,11 @@ int dh_build_k(ssh_session session) {
#endif
#ifdef DEBUG_CRYPTO
- ssh_print_hexa("Session server cookie", session->server_kex.cookie, 16);
- ssh_print_hexa("Session client cookie", session->client_kex.cookie, 16);
- ssh_print_bignum("Shared secret key", session->next_crypto->k);
+ ssh_print_hexa("Session server cookie",
+ session->next_crypto->server_kex.cookie, 16);
+ ssh_print_hexa("Session client cookie",
+ session->next_crypto->client_kex.cookie, 16);
+ ssh_print_bignum("Shared secret key", session->next_crypto->k);
#endif
#ifdef HAVE_LIBCRYPTO
diff --git a/src/ecdh.c b/src/ecdh.c
index 292e997..bc0b03c 100644
--- a/src/ecdh.c
+++ b/src/ecdh.c
@@ -111,9 +111,11 @@ static int ecdh_build_k(ssh_session session) {
EC_KEY_free(session->next_crypto->ecdh_privkey);
session->next_crypto->ecdh_privkey=NULL;
#ifdef DEBUG_CRYPTO
- ssh_print_hexa("Session server cookie", session->server_kex.cookie, 16);
- ssh_print_hexa("Session client cookie", session->client_kex.cookie, 16);
- ssh_print_bignum("Shared secret key", session->next_crypto->k);
+ ssh_print_hexa("Session server cookie",
+ session->next_crypto->server_kex.cookie, 16);
+ ssh_print_hexa("Session client cookie",
+ session->next_crypto->client_kex.cookie, 16);
+ ssh_print_bignum("Shared secret key", session->next_crypto->k);
#endif
#ifdef HAVE_LIBCRYPTO