diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-23 19:09:08 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-25 18:39:40 +0300 |
commit | 1e288041bd2895ae80cd6e6c62e3511262510cde (patch) | |
tree | 30d38482ffafc335117c5acd246f7190a9b1d794 /src/testcurl/https/test_https_multi_daemon.c | |
parent | 8815effe667c79e8145b64e110adc9e16990b43c (diff) | |
download | libmicrohttpd-1e288041bd2895ae80cd6e6c62e3511262510cde.tar.gz libmicrohttpd-1e288041bd2895ae80cd6e6c62e3511262510cde.zip |
Fixed initialisation of old GnuTLS versions
Diffstat (limited to 'src/testcurl/https/test_https_multi_daemon.c')
-rw-r--r-- | src/testcurl/https/test_https_multi_daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/test_https_multi_daemon.c b/src/testcurl/https/test_https_multi_daemon.c index 10e7f6ed..da60c543 100644 --- a/src/testcurl/https/test_https_multi_daemon.c +++ b/src/testcurl/https/test_https_multi_daemon.c | |||
@@ -29,9 +29,9 @@ | |||
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 | #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 | ||
@@ -132,12 +132,12 @@ main (int argc, char *const *argv) | |||
132 | const char *aes256_sha = "AES256-SHA"; | 132 | const char *aes256_sha = "AES256-SHA"; |
133 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ | 133 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ |
134 | 134 | ||
135 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | 135 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT |
136 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | 136 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); |
137 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | 137 | #ifdef GCRYCTL_INITIALIZATION_FINISHED |
138 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | 138 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); |
139 | #endif | 139 | #endif |
140 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | 140 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT */ |
141 | if (! testsuite_curl_global_init ()) | 141 | if (! testsuite_curl_global_init ()) |
142 | return 99; | 142 | return 99; |
143 | if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version) | 143 | if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version) |