aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get.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_https_get.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_https_get.c')
-rw-r--r--src/testcurl/https/test_https_get.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/https/test_https_get.c b/src/testcurl/https/test_https_get.c
index 0b82bf0f..b8cfacbe 100644
--- a/src/testcurl/https/test_https_get.c
+++ b/src/testcurl/https/test_https_get.c
@@ -29,7 +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#include <gcrypt.h> 33#include <gcrypt.h>
34#endif /* MHD_HTTPS_REQUIRE_GRYPT */
33#include "tls_test_common.h" 35#include "tls_test_common.h"
34 36
35extern const char srv_key_pem[]; 37extern const char srv_key_pem[];
@@ -102,10 +104,12 @@ main (int argc, char *const *argv)
102 const char *aes256_sha_tlsv1 = "AES256-SHA"; 104 const char *aes256_sha_tlsv1 = "AES256-SHA";
103 const char *des_cbc3_sha_tlsv1 = "DES-CBC3-SHA"; 105 const char *des_cbc3_sha_tlsv1 = "DES-CBC3-SHA";
104 106
107#ifdef MHD_HTTPS_REQUIRE_GRYPT
105 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 108 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
106#ifdef GCRYCTL_INITIALIZATION_FINISHED 109#ifdef GCRYCTL_INITIALIZATION_FINISHED
107 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 110 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
108#endif 111#endif
112#endif /* MHD_HTTPS_REQUIRE_GRYPT */
109 if (0 != curl_global_init (CURL_GLOBAL_ALL)) 113 if (0 != curl_global_init (CURL_GLOBAL_ALL))
110 { 114 {
111 fprintf (stderr, "Error: %s\n", strerror (errno)); 115 fprintf (stderr, "Error: %s\n", strerror (errno));