aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/tls/gnutls_state.c
diff options
context:
space:
mode:
authorlv-426 <oxcafebaby@yahoo.com>2008-08-12 23:24:46 +0000
committerlv-426 <oxcafebaby@yahoo.com>2008-08-12 23:24:46 +0000
commitee6c58eb66cc1dbc9086d9fd925acf059096829e (patch)
tree35738b5e1078cfa7306ae894343b3a2c46d1fbc6 /src/daemon/https/tls/gnutls_state.c
parent72dfc4d31c479611b7a4c55ea441c0ce248d3952 (diff)
downloadlibmicrohttpd-ee6c58eb66cc1dbc9086d9fd925acf059096829e.tar.gz
libmicrohttpd-ee6c58eb66cc1dbc9086d9fd925acf059096829e.zip
TLS client side code builds builds according to added MHD_DEBUG_TLS configuration option
Diffstat (limited to 'src/daemon/https/tls/gnutls_state.c')
-rw-r--r--src/daemon/https/tls/gnutls_state.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/https/tls/gnutls_state.c b/src/daemon/https/tls/gnutls_state.c
index bb5b8390..02d87e05 100644
--- a/src/daemon/https/tls/gnutls_state.c
+++ b/src/daemon/https/tls/gnutls_state.c
@@ -429,7 +429,7 @@ mhd_gtls_dh_get_allowed_prime_bits (mhd_gtls_session_t session)
429int 429int
430mhd_gtls_dh_set_peer_public (mhd_gtls_session_t session, mpi_t public) 430mhd_gtls_dh_set_peer_public (mhd_gtls_session_t session, mpi_t public)
431{ 431{
432 dh_info_st *dh; 432 mhd_gtls_dh_info_st *dh;
433 int ret; 433 int ret;
434 434
435 switch (MHD_gtls_auth_get_type (session)) 435 switch (MHD_gtls_auth_get_type (session))
@@ -540,7 +540,7 @@ mhd_gtls_rsa_export_set_pubkey (mhd_gtls_session_t session,
540int 540int
541mhd_gtls_dh_set_group (mhd_gtls_session_t session, mpi_t gen, mpi_t prime) 541mhd_gtls_dh_set_group (mhd_gtls_session_t session, mpi_t gen, mpi_t prime)
542{ 542{
543 dh_info_st *dh; 543 mhd_gtls_dh_info_st *dh;
544 int ret; 544 int ret;
545 545
546 switch (MHD_gtls_auth_get_type (session)) 546 switch (MHD_gtls_auth_get_type (session))
@@ -1060,6 +1060,7 @@ MHD_gtls_session_get_master_secret (mhd_gtls_session_t session)
1060int 1060int
1061MHD_gtls_session_is_resumed (mhd_gtls_session_t session) 1061MHD_gtls_session_is_resumed (mhd_gtls_session_t session)
1062{ 1062{
1063#if MHD_DEBUG_TLS
1063 if (session->security_parameters.entity == GNUTLS_CLIENT) 1064 if (session->security_parameters.entity == GNUTLS_CLIENT)
1064 { 1065 {
1065 if (session->security_parameters.session_id_size > 0 1066 if (session->security_parameters.session_id_size > 0
@@ -1072,6 +1073,7 @@ MHD_gtls_session_is_resumed (mhd_gtls_session_t session)
1072 return 1; 1073 return 1;
1073 } 1074 }
1074 else 1075 else
1076#endif
1075 { 1077 {
1076 if (session->internals.resumed == RESUME_TRUE) 1078 if (session->internals.resumed == RESUME_TRUE)
1077 return 1; 1079 return 1;