aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/mhds_session_info_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/mhds_session_info_test.c')
-rw-r--r--src/testcurl/https/mhds_session_info_test.c14
1 files changed, 7 insertions, 7 deletions
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,
69 int ret; 69 int ret;
70 70
71 /* assert actual connection cipher is the one negotiated */ 71 /* assert actual connection cipher is the one negotiated */
72 if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->cipher_algorithm 72 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->cipher_algorithm
73 != MHD_GNUTLS_CIPHER_AES_256_CBC) 73 != MHD_GNUTLS_CIPHER_AES_256_CBC)
74 { 74 {
75 fprintf (stderr, "Error: requested cipher mismatch. %s\n", 75 fprintf (stderr, "Error: requested cipher mismatch. %s\n",
@@ -77,7 +77,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
77 return -1; 77 return -1;
78 } 78 }
79 79
80 if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_KX_ALGO)->kx_algorithm != 80 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_KX_ALGO)->kx_algorithm !=
81 MHD_GNUTLS_KX_RSA) 81 MHD_GNUTLS_KX_RSA)
82 { 82 {
83 fprintf (stderr, "Error: requested key exchange mismatch. %s\n", 83 fprintf (stderr, "Error: requested key exchange mismatch. %s\n",
@@ -85,7 +85,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
85 return -1; 85 return -1;
86 } 86 }
87 87
88 if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_MAC_ALGO)->mac_algorithm != 88 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_MAC_ALGO)->mac_algorithm !=
89 MHD_GNUTLS_MAC_SHA1) 89 MHD_GNUTLS_MAC_SHA1)
90 { 90 {
91 fprintf (stderr, "Error: requested mac algorithm mismatch. %s\n", 91 fprintf (stderr, "Error: requested mac algorithm mismatch. %s\n",
@@ -93,7 +93,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
93 return -1; 93 return -1;
94 } 94 }
95 95
96 if (MHD_get_session_info 96 if (MHD_get_connection_info
97 (connection, 97 (connection,
98 MHD_CONNECTION_INFO_COMPRESSION_METHOD)->compression_method != 98 MHD_CONNECTION_INFO_COMPRESSION_METHOD)->compression_method !=
99 MHD_GNUTLS_COMP_NULL) 99 MHD_GNUTLS_COMP_NULL)
@@ -103,7 +103,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
103 return -1; 103 return -1;
104 } 104 }
105 105
106 if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->protocol != 106 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->protocol !=
107 MHD_GNUTLS_SSL3) 107 MHD_GNUTLS_SSL3)
108 { 108 {
109 fprintf (stderr, "Error: requested compression mismatch. %s\n", 109 fprintf (stderr, "Error: requested compression mismatch. %s\n",
@@ -111,7 +111,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
111 return -1; 111 return -1;
112 } 112 }
113 113
114 if (MHD_get_session_info (connection, MHD_CONNECTION_INFO_CERT_TYPE)->certificate_type 114 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CERT_TYPE)->certificate_type
115 != MHD_GNUTLS_CRT_X509) 115 != MHD_GNUTLS_CRT_X509)
116 { 116 {
117 fprintf (stderr, "Error: requested certificate mismatch. %s\n", 117 fprintf (stderr, "Error: requested certificate mismatch. %s\n",
@@ -119,7 +119,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
119 return -1; 119 return -1;
120 } 120 }
121 121
122 if (MHD_get_session_info 122 if (MHD_get_connection_info
123 (connection, 123 (connection,
124 MHD_CONNECTION_INFO_CREDENTIALS_TYPE)->credentials_type != 124 MHD_CONNECTION_INFO_CREDENTIALS_TYPE)->credentials_type !=
125 MHD_GNUTLS_CRD_CERTIFICATE) 125 MHD_GNUTLS_CRD_CERTIFICATE)