diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-06-20 23:55:34 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-06-20 23:55:34 +0300 |
commit | a7b7a32ec6dd493e00573da4b2f343f02feb0aa7 (patch) | |
tree | 2a9ec05b301f297ca1b302dcb74beb08d164aca5 /src/testcurl/https/test_https_session_info.c | |
parent | 6364c4700d06232f2ea418b2146ba9e264d90086 (diff) | |
download | libmicrohttpd-a7b7a32ec6dd493e00573da4b2f343f02feb0aa7.tar.gz libmicrohttpd-a7b7a32ec6dd493e00573da4b2f343f02feb0aa7.zip |
Dropped dependency on libgcrypt with new GnuTLS (>2.12.20) versions
Diffstat (limited to 'src/testcurl/https/test_https_session_info.c')
-rw-r--r-- | src/testcurl/https/test_https_session_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c index d4f2985e..fe2d0724 100644 --- a/src/testcurl/https/test_https_session_info.c +++ b/src/testcurl/https/test_https_session_info.c | |||
@@ -27,7 +27,9 @@ | |||
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 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | ||
30 | #include <gcrypt.h> | 31 | #include <gcrypt.h> |
32 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | ||
31 | #include "tls_test_common.h" | 33 | #include "tls_test_common.h" |
32 | 34 | ||
33 | extern int curl_check_version (const char *req_version, ...); | 35 | extern int curl_check_version (const char *req_version, ...); |
@@ -173,10 +175,12 @@ main (int argc, char *const *argv) | |||
173 | unsigned int errorCount = 0; | 175 | unsigned int errorCount = 0; |
174 | const char *ssl_version; | 176 | const char *ssl_version; |
175 | 177 | ||
178 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | ||
176 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | 179 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); |
177 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | 180 | #ifdef GCRYCTL_INITIALIZATION_FINISHED |
178 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | 181 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); |
179 | #endif | 182 | #endif |
183 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | ||
180 | if (0 != curl_global_init (CURL_GLOBAL_ALL)) | 184 | if (0 != curl_global_init (CURL_GLOBAL_ALL)) |
181 | { | 185 | { |
182 | fprintf (stderr, "Error (code: %u)\n", errorCount); | 186 | fprintf (stderr, "Error (code: %u)\n", errorCount); |