From: Nikos Mavrogiannopoulos Date: Sat, 9 Feb 2013 17:47:05 +0000 (+0100) Subject: added debugging message to indicate the number of bits. X-Git-Tag: gnutls_3_1_8~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe4f624fc6021e26075bfec88b482f7e624ba84a;p=thirdparty%2Fgnutls.git added debugging message to indicate the number of bits. --- diff --git a/lib/auth/dh_common.c b/lib/auth/dh_common.c index 262f3d26cf..a953577f8f 100644 --- a/lib/auth/dh_common.c +++ b/lib/auth/dh_common.c @@ -262,6 +262,8 @@ _gnutls_proc_dh_common_server_kx (gnutls_session_t session, /* the prime used by the peer is not acceptable */ gnutls_assert (); + _gnutls_debug_log("Received a prime of %u bits, limit is %u\n", (unsigned)_gnutls_mpi_get_nbits (session->key.client_p), + (unsigned)bits); return GNUTLS_E_DH_PRIME_UNACCEPTABLE; }