aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-23 19:09:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-25 18:39:40 +0300
commit1e288041bd2895ae80cd6e6c62e3511262510cde (patch)
tree30d38482ffafc335117c5acd246f7190a9b1d794 /src/testcurl/https/test_https_get.c
parent8815effe667c79e8145b64e110adc9e16990b43c (diff)
downloadlibmicrohttpd-1e288041bd2895ae80cd6e6c62e3511262510cde.tar.gz
libmicrohttpd-1e288041bd2895ae80cd6e6c62e3511262510cde.zip
Fixed initialisation of old GnuTLS versions
Diffstat (limited to 'src/testcurl/https/test_https_get.c')
-rw-r--r--src/testcurl/https/test_https_get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/test_https_get.c b/src/testcurl/https/test_https_get.c
index 62546324..f2016cc2 100644
--- a/src/testcurl/https/test_https_get.c
+++ b/src/testcurl/https/test_https_get.c
@@ -29,9 +29,9 @@
29#include <limits.h> 29#include <limits.h>
30#include <sys/stat.h> 30#include <sys/stat.h>
31#include <curl/curl.h> 31#include <curl/curl.h>
32#ifdef MHD_HTTPS_REQUIRE_GRYPT 32#ifdef MHD_HTTPS_REQUIRE_GCRYPT
33#include <gcrypt.h> 33#include <gcrypt.h>
34#endif /* MHD_HTTPS_REQUIRE_GRYPT */ 34#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
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
@@ -234,12 +234,12 @@ main (int argc, char *const *argv)
234 const char *aes256_sha_tlsv1 = "AES256-SHA"; 234 const char *aes256_sha_tlsv1 = "AES256-SHA";
235 (void) argc; (void) argv; /* Unused. Silent compiler warning. */ 235 (void) argc; (void) argv; /* Unused. Silent compiler warning. */
236 236
237#ifdef MHD_HTTPS_REQUIRE_GRYPT 237#ifdef MHD_HTTPS_REQUIRE_GCRYPT
238 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 238 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
239#ifdef GCRYCTL_INITIALIZATION_FINISHED 239#ifdef GCRYCTL_INITIALIZATION_FINISHED
240 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 240 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
241#endif 241#endif
242#endif /* MHD_HTTPS_REQUIRE_GRYPT */ 242#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
243 if (! testsuite_curl_global_init ()) 243 if (! testsuite_curl_global_init ())
244 return 99; 244 return 99;
245 if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version) 245 if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version)