aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get_parallel_threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_get_parallel_threads.c')
-rw-r--r--src/testcurl/https/test_https_get_parallel_threads.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testcurl/https/test_https_get_parallel_threads.c b/src/testcurl/https/test_https_get_parallel_threads.c
index 28fdfcd4..dea6e754 100644
--- a/src/testcurl/https/test_https_get_parallel_threads.c
+++ b/src/testcurl/https/test_https_get_parallel_threads.c
@@ -32,6 +32,7 @@
32#include <sys/stat.h> 32#include <sys/stat.h>
33#include <limits.h> 33#include <limits.h>
34#include <curl/curl.h> 34#include <curl/curl.h>
35#include <gcrypt.h>
35#include "tls_test_common.h" 36#include "tls_test_common.h"
36 37
37extern const char srv_key_pem[]; 38extern const char srv_key_pem[];
@@ -122,6 +123,10 @@ test_parallel_clients (void *cls, const char *cipher_suite,
122} 123}
123 124
124 125
126
127GCRY_THREAD_OPTION_PTHREAD_IMPL;
128
129
125int 130int
126main (int argc, char *const *argv) 131main (int argc, char *const *argv)
127{ 132{
@@ -130,6 +135,13 @@ main (int argc, char *const *argv)
130 135
131 /* initialize random seed used by curl clients */ 136 /* initialize random seed used by curl clients */
132 unsigned int iseed = (unsigned int) time (NULL); 137 unsigned int iseed = (unsigned int) time (NULL);
138
139
140 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
141 gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
142#ifdef GCRYCTL_INITIALIZATION_FINISHED
143 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
144#endif
133 srand (iseed); 145 srand (iseed);
134 ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version; 146 ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version;
135 if (NULL == ssl_version) 147 if (NULL == ssl_version)