aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_tls_authentication.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_tls_authentication.c')
-rw-r--r--src/testcurl/https/test_tls_authentication.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testcurl/https/test_tls_authentication.c b/src/testcurl/https/test_tls_authentication.c
index d5a08ffa..42a33b4c 100644
--- a/src/testcurl/https/test_tls_authentication.c
+++ b/src/testcurl/https/test_tls_authentication.c
@@ -29,7 +29,7 @@
29#include <curl/curl.h> 29#include <curl/curl.h>
30#include <limits.h> 30#include <limits.h>
31#include <sys/stat.h> 31#include <sys/stat.h>
32 32#include <gcrypt.h>
33#include "tls_test_common.h" 33#include "tls_test_common.h"
34 34
35extern int curl_check_version (const char *req_version, ...); 35extern int curl_check_version (const char *req_version, ...);
@@ -69,11 +69,19 @@ test_secure_get (void * cls, char *cipher_suite, int proto_version)
69} 69}
70 70
71 71
72GCRY_THREAD_OPTION_PTHREAD_IMPL;
73
74
72int 75int
73main (int argc, char *const *argv) 76main (int argc, char *const *argv)
74{ 77{
75 unsigned int errorCount = 0; 78 unsigned int errorCount = 0;
76 79
80 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
81 gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
82#ifdef GCRYCTL_INITIALIZATION_FINISHED
83 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
84#endif
77 if (setup_ca_cert () == NULL) 85 if (setup_ca_cert () == NULL)
78 { 86 {
79 fprintf (stderr, MHD_E_TEST_FILE_CREAT); 87 fprintf (stderr, MHD_E_TEST_FILE_CREAT);