]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
added debugging message to indicate the number of bits.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 9 Feb 2013 17:47:05 +0000 (18:47 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 9 Feb 2013 17:47:05 +0000 (18:47 +0100)
lib/auth/dh_common.c

index 262f3d26cfeb35c5169c5179e5268c0a392e0a0d..a953577f8f961d1a7e49851cf10d43526812ac6b 100644 (file)
@@ -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;
     }