aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_tls_extensions.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-06-20 23:55:34 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-06-20 23:55:34 +0300
commita7b7a32ec6dd493e00573da4b2f343f02feb0aa7 (patch)
tree2a9ec05b301f297ca1b302dcb74beb08d164aca5 /src/testcurl/https/test_tls_extensions.c
parent6364c4700d06232f2ea418b2146ba9e264d90086 (diff)
downloadlibmicrohttpd-a7b7a32ec6dd493e00573da4b2f343f02feb0aa7.tar.gz
libmicrohttpd-a7b7a32ec6dd493e00573da4b2f343f02feb0aa7.zip
Dropped dependency on libgcrypt with new GnuTLS (>2.12.20) versions
Diffstat (limited to 'src/testcurl/https/test_tls_extensions.c')
-rw-r--r--src/testcurl/https/test_tls_extensions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testcurl/https/test_tls_extensions.c b/src/testcurl/https/test_tls_extensions.c
index ae680d17..69deb3a4 100644
--- a/src/testcurl/https/test_tls_extensions.c
+++ b/src/testcurl/https/test_tls_extensions.c
@@ -29,6 +29,9 @@
29#include "microhttpd.h" 29#include "microhttpd.h"
30#include "tls_test_common.h" 30#include "tls_test_common.h"
31#include "mhd_sockets.h" /* only macros used */ 31#include "mhd_sockets.h" /* only macros used */
32#ifdef MHD_HTTPS_REQUIRE_GRYPT
33#include <gcrypt.h>
34#endif /* MHD_HTTPS_REQUIRE_GRYPT */
32 35
33#define MAX_EXT_DATA_LENGTH 256 36#define MAX_EXT_DATA_LENGTH 256
34 37
@@ -213,10 +216,12 @@ main (int argc, char *const *argv)
213 -1 216 -1
214 }; 217 };
215 218
219#ifdef MHD_HTTPS_REQUIRE_GRYPT
216 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 220 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
217#ifdef GCRYCTL_INITIALIZATION_FINISHED 221#ifdef GCRYCTL_INITIALIZATION_FINISHED
218 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 222 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
219#endif 223#endif
224#endif /* MHD_HTTPS_REQUIRE_GRYPT */
220 MHD_gtls_global_set_log_level (11); 225 MHD_gtls_global_set_log_level (11);
221 226
222 if ((test_fd = setup_test_file ()) == NULL) 227 if ((test_fd = setup_test_file ()) == NULL)