aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_session_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_session_info.c')
-rw-r--r--src/testcurl/https/test_https_session_info.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c
index bad47b1c..084ffe67 100644
--- a/src/testcurl/https/test_https_session_info.c
+++ b/src/testcurl/https/test_https_session_info.c
@@ -35,6 +35,9 @@
35#include "tls_test_common.h" 35#include "tls_test_common.h"
36#include "tls_test_keys.h" 36#include "tls_test_keys.h"
37 37
38
39static int test_append_prio;
40
38/* 41/*
39 * HTTP access handler call back 42 * HTTP access handler call back
40 * used to query negotiated security parameters 43 * used to query negotiated security parameters
@@ -113,7 +116,12 @@ test_query_session (enum know_gnutls_tls_id tls_ver, uint16_t *pport)
113 | MHD_USE_ERROR_LOG, *pport, 116 | MHD_USE_ERROR_LOG, *pport,
114 NULL, NULL, 117 NULL, NULL,
115 &query_info_ahc, &found_tls_ver, 118 &query_info_ahc, &found_tls_ver,
116 MHD_OPTION_HTTPS_PRIORITIES, priorities_map[tls_ver], 119 test_append_prio ?
120 MHD_OPTION_HTTPS_PRIORITIES_APPEND :
121 MHD_OPTION_HTTPS_PRIORITIES,
122 test_append_prio ?
123 priorities_append_map[tls_ver] :
124 priorities_map[tls_ver],
117 MHD_OPTION_HTTPS_MEM_KEY, srv_self_signed_key_pem, 125 MHD_OPTION_HTTPS_MEM_KEY, srv_self_signed_key_pem,
118 MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, 126 MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem,
119 MHD_OPTION_END); 127 MHD_OPTION_END);
@@ -344,6 +352,7 @@ main (int argc, char *const *argv)
344 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 352 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
345#endif 353#endif
346#endif /* MHD_HTTPS_REQUIRE_GCRYPT */ 354#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
355 test_append_prio = has_in_name (argv[0], "_append");
347 if (! testsuite_curl_global_init ()) 356 if (! testsuite_curl_global_init ())
348 return 99; 357 return 99;
349 358