[gnutls-devel] [PATCH] fix DHE parameter output for gnutls-cli-debug --verbose

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Nov 1 21:57:07 CET 2013


gnutls_handshake() was failing during test_dhe_group, with an error of
GNUTLS_E_NO_PRIORITIES_WERE_SET.  Adding this call fixes the handshake
so that DHE group details can be printed when requested.
---
 src/tests.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tests.c b/src/tests.c
index 43d1c78..4aeaa0f 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -265,6 +265,7 @@ test_dhe_group (gnutls_session_t session)
   sprintf (prio_str, INIT_STR
            ALL_CIPHERS ":" ALL_COMP ":" ALL_CERTTYPES ":%s:" ALL_MACS
            ":+DHE-RSA:+DHE-DSS:%s", protocol_str, rest);
+  _gnutls_priority_set_direct (session, prio_str);
 
   gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, xcred);
 
-- 
1.8.4.rc3




More information about the Gnutls-devel mailing list