aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/tls/gnutls_handshake.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/tls/gnutls_handshake.c')
-rw-r--r--src/daemon/https/tls/gnutls_handshake.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/daemon/https/tls/gnutls_handshake.c b/src/daemon/https/tls/gnutls_handshake.c
index 45041ccd..9a18cc26 100644
--- a/src/daemon/https/tls/gnutls_handshake.c
+++ b/src/daemon/https/tls/gnutls_handshake.c
@@ -763,20 +763,6 @@ MHD_gtls_server_select_suite (MHD_gtls_session_t session, opaque * data,
763 MHD_gnutls_assert (); 763 MHD_gnutls_assert ();
764 return GNUTLS_E_UNEXPECTED_PACKET_LENGTH; 764 return GNUTLS_E_UNEXPECTED_PACKET_LENGTH;
765 } 765 }
766#ifdef HANDSHAKE_DEBUG
767
768 MHD__gnutls_handshake_log ("HSK[%x]: Requested cipher suites: \n", session);
769 for (j = 0; j < datalen; j += 2)
770 {
771 memcpy (&cs.suite, &data[j], 2);
772 MHD__gnutls_handshake_log ("\t%s\n",
773 MHD_gtls_cipher_suite_get_name (&cs));
774 }
775 MHD__gnutls_handshake_log ("HSK[%x]: Supported cipher suites: \n", session);
776 for (j = 0; j < x; j++)
777 MHD__gnutls_handshake_log ("\t%s\n",
778 MHD_gtls_cipher_suite_get_name (&ciphers[j]));
779#endif
780 memset (session->security_parameters.current_cipher_suite.suite, '\0', 2); 766 memset (session->security_parameters.current_cipher_suite.suite, '\0', 2);
781 767
782 retval = GNUTLS_E_UNKNOWN_CIPHER_SUITE; 768 retval = GNUTLS_E_UNKNOWN_CIPHER_SUITE;
@@ -2315,18 +2301,6 @@ MHD_gtls_handshake_client (MHD_gtls_session_t session)
2315{ 2301{
2316 int ret = 0; 2302 int ret = 0;
2317 2303
2318#ifdef HANDSHAKE_DEBUG
2319 char buf[64];
2320
2321 if (session->internals.resumed_security_parameters.session_id_size > 0)
2322 MHD__gnutls_handshake_log ("HSK[%x]: Ask to resume: %s\n", session,
2323 MHD_gtls_bin2hex (session->
2324 internals.resumed_security_parameters.session_id,
2325 session->
2326 internals.resumed_security_parameters.session_id_size,
2327 buf, sizeof (buf)));
2328#endif
2329
2330 switch (STATE) 2304 switch (STATE)
2331 { 2305 {
2332 case STATE0: 2306 case STATE0: