diff --git a/src/testcurl/https/mhds_session_info_test.c b/src/testcurl/https/mhds_session_info_test.c index 8ce46de3..99d7455b 100644 --- a/src/testcurl/https/mhds_session_info_test.c +++ b/src/testcurl/https/mhds_session_info_test.c @@ -69,7 +69,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection, int ret; /* assert actual connection cipher is the one negotiated */ - if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->cipher_algorithm + if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->cipher_algorithm != MHD_GNUTLS_CIPHER_AES_256_CBC) { fprintf (stderr, "Error: requested cipher mismatch. %s\n", @@ -77,7 +77,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection, return -1; } - if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_KX_ALGO)->kx_algorithm != + if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_KX_ALGO)->kx_algorithm != MHD_GNUTLS_KX_RSA) { fprintf (stderr, "Error: requested key exchange mismatch. %s\n", @@ -85,7 +85,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection, return -1; } - if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_MAC_ALGO)->mac_algorithm != + if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_MAC_ALGO)->mac_algorithm != MHD_GNUTLS_MAC_SHA1) { fprintf (stderr, "Error: requested mac algorithm mismatch. %s\n", @@ -93,7 +93,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection, return -1; } - if (MHD_get_session_info + if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_COMPRESSION_METHOD)->compression_method != MHD_GNUTLS_COMP_NULL) @@ -103,7 +103,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection, return -1; } - if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->protocol != + if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->protocol != MHD_GNUTLS_SSL3) { fprintf (stderr, "Error: requested compression mismatch. %s\n", @@ -111,7 +111,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection, return -1; } - if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_CERT_TYPE)->certificate_type + if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CERT_TYPE)->certificate_type != MHD_GNUTLS_CRT_X509) { fprintf (stderr, "Error: requested certificate mismatch. %s\n", @@ -119,7 +119,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection, return -1; } - if (MHD_get_session_info + if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CREDENTIALS_TYPE)->credentials_type != MHD_GNUTLS_CRD_CERTIFICATE) diff --git a/src/testcurl/https/tls_authentication_test.c b/src/testcurl/https/tls_authentication_test.c index 82c3a0a3..edc018b2 100644 --- a/src/testcurl/https/tls_authentication_test.c +++ b/src/testcurl/https/tls_authentication_test.c @@ -309,8 +309,6 @@ main (int argc, char *const *argv) FILE *test_fd; unsigned int errorCount = 0; - MHD_gtls_global_set_log_level (DEBUG_GNUTLS_LOG_LEVEL); - if (curl_check_version (MHD_REQ_CURL_VERSION)) { return -1;