mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
dh: Fix build with DEBUG_CRYPTO.
This commit is contained in:
6
src/dh.c
6
src/dh.c
@@ -473,8 +473,10 @@ int dh_build_k(ssh_session session) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG_CRYPTO
|
#ifdef DEBUG_CRYPTO
|
||||||
ssh_print_hexa("Session server cookie", session->server_kex.cookie, 16);
|
ssh_print_hexa("Session server cookie",
|
||||||
ssh_print_hexa("Session client cookie", session->client_kex.cookie, 16);
|
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);
|
ssh_print_bignum("Shared secret key", session->next_crypto->k);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -111,8 +111,10 @@ static int ecdh_build_k(ssh_session session) {
|
|||||||
EC_KEY_free(session->next_crypto->ecdh_privkey);
|
EC_KEY_free(session->next_crypto->ecdh_privkey);
|
||||||
session->next_crypto->ecdh_privkey=NULL;
|
session->next_crypto->ecdh_privkey=NULL;
|
||||||
#ifdef DEBUG_CRYPTO
|
#ifdef DEBUG_CRYPTO
|
||||||
ssh_print_hexa("Session server cookie", session->server_kex.cookie, 16);
|
ssh_print_hexa("Session server cookie",
|
||||||
ssh_print_hexa("Session client cookie", session->client_kex.cookie, 16);
|
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);
|
ssh_print_bignum("Shared secret key", session->next_crypto->k);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user