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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testcurl/https/mhds_session_info_test.c b/src/testcurl/https/mhds_session_info_test.c
index 2f25f312..39a94c68 100644
--- a/src/testcurl/https/mhds_session_info_test.c
+++ b/src/testcurl/https/mhds_session_info_test.c
@@ -70,24 +70,24 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
70 int ret; 70 int ret;
71 71
72 /* assert actual connection cipher is the one negotiated */ 72 /* assert actual connection cipher is the one negotiated */
73 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->cipher_algorithm 73 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CIPHER_ALGO)->
74 != MHD_GNUTLS_CIPHER_AES_256_CBC) 74 cipher_algorithm != MHD_GNUTLS_CIPHER_AES_256_CBC)
75 { 75 {
76 fprintf (stderr, "Error: requested cipher mismatch. %s\n", 76 fprintf (stderr, "Error: requested cipher mismatch. %s\n",
77 strerror (errno)); 77 strerror (errno));
78 return -1; 78 return -1;
79 } 79 }
80 80
81 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_KX_ALGO)->kx_algorithm != 81 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_KX_ALGO)->
82 MHD_GNUTLS_KX_RSA) 82 kx_algorithm != MHD_GNUTLS_KX_RSA)
83 { 83 {
84 fprintf (stderr, "Error: requested key exchange mismatch. %s\n", 84 fprintf (stderr, "Error: requested key exchange mismatch. %s\n",
85 strerror (errno)); 85 strerror (errno));
86 return -1; 86 return -1;
87 } 87 }
88 88
89 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_MAC_ALGO)->mac_algorithm != 89 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_MAC_ALGO)->
90 MHD_GNUTLS_MAC_SHA1) 90 mac_algorithm != MHD_GNUTLS_MAC_SHA1)
91 { 91 {
92 fprintf (stderr, "Error: requested mac algorithm mismatch. %s\n", 92 fprintf (stderr, "Error: requested mac algorithm mismatch. %s\n",
93 strerror (errno)); 93 strerror (errno));
@@ -104,16 +104,16 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
104 return -1; 104 return -1;
105 } 105 }
106 106
107 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->protocol != 107 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_PROTOCOL)->
108 MHD_GNUTLS_PROTOCOL_SSL3) 108 protocol != MHD_GNUTLS_PROTOCOL_SSL3)
109 { 109 {
110 fprintf (stderr, "Error: requested compression mismatch. %s\n", 110 fprintf (stderr, "Error: requested compression mismatch. %s\n",
111 strerror (errno)); 111 strerror (errno));
112 return -1; 112 return -1;
113 } 113 }
114 114
115 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CERT_TYPE)->certificate_type 115 if (MHD_get_connection_info (connection, MHD_CONNECTION_INFO_CERT_TYPE)->
116 != MHD_GNUTLS_CRT_X509) 116 certificate_type != MHD_GNUTLS_CRT_X509)
117 { 117 {
118 fprintf (stderr, "Error: requested certificate mismatch. %s\n", 118 fprintf (stderr, "Error: requested certificate mismatch. %s\n",
119 strerror (errno)); 119 strerror (errno));