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.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c
index 8050a45d..aac3dcea 100644
--- a/src/testcurl/https/test_https_session_info.c
+++ b/src/testcurl/https/test_https_session_info.c
@@ -27,7 +27,7 @@
27#include "platform.h" 27#include "platform.h"
28#include "microhttpd.h" 28#include "microhttpd.h"
29#include <curl/curl.h> 29#include <curl/curl.h>
30 30#include <gcrypt.h>
31#include "tls_test_common.h" 31#include "tls_test_common.h"
32 32
33extern int curl_check_version (const char *req_version, ...); 33extern int curl_check_version (const char *req_version, ...);
@@ -151,11 +151,19 @@ test_query_session ()
151} 151}
152 152
153 153
154GCRY_THREAD_OPTION_PTHREAD_IMPL;
155
156
154int 157int
155main (int argc, char *const *argv) 158main (int argc, char *const *argv)
156{ 159{
157 unsigned int errorCount = 0; 160 unsigned int errorCount = 0;
158 161
162 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
163 gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
164#ifdef GCRYCTL_INITIALIZATION_FINISHED
165 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
166#endif
159 if (0 != curl_global_init (CURL_GLOBAL_ALL)) 167 if (0 != curl_global_init (CURL_GLOBAL_ALL))
160 { 168 {
161 fprintf (stderr, "Error (code: %u)\n", errorCount); 169 fprintf (stderr, "Error (code: %u)\n", errorCount);