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_time_out.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_time_out.c')
-rw-r--r-- | src/testcurl/https/test_https_time_out.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/https/test_https_time_out.c b/src/testcurl/https/test_https_time_out.c index de619206..a1908e49 100644 --- a/src/testcurl/https/test_https_time_out.c +++ b/src/testcurl/https/test_https_time_out.c | |||
@@ -28,7 +28,9 @@ | |||
28 | #include "platform.h" | 28 | #include "platform.h" |
29 | #include "microhttpd.h" | 29 | #include "microhttpd.h" |
30 | #include "tls_test_common.h" | 30 | #include "tls_test_common.h" |
31 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | ||
31 | #include <gcrypt.h> | 32 | #include <gcrypt.h> |
33 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | ||
32 | #include "mhd_sockets.h" /* only macros used */ | 34 | #include "mhd_sockets.h" /* only macros used */ |
33 | 35 | ||
34 | 36 | ||
@@ -109,10 +111,12 @@ main (int argc, char *const *argv) | |||
109 | gnutls_certificate_credentials_t xcred; | 111 | gnutls_certificate_credentials_t xcred; |
110 | 112 | ||
111 | 113 | ||
114 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | ||
112 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | 115 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); |
113 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | 116 | #ifdef GCRYCTL_INITIALIZATION_FINISHED |
114 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | 117 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); |
115 | #endif | 118 | #endif |
119 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | ||
116 | gnutls_global_init (); | 120 | gnutls_global_init (); |
117 | gnutls_global_set_log_level (11); | 121 | gnutls_global_set_log_level (11); |
118 | 122 | ||