mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-28 04:09:31 +03:00
Fixed initialisation of old GnuTLS versions
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
#include "platform.h"
|
||||
#include "microhttpd.h"
|
||||
#include <curl/curl.h>
|
||||
#ifdef MHD_HTTPS_REQUIRE_GRYPT
|
||||
#ifdef MHD_HTTPS_REQUIRE_GCRYPT
|
||||
#include <gcrypt.h>
|
||||
#endif /* MHD_HTTPS_REQUIRE_GRYPT */
|
||||
#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
|
||||
#include "tls_test_common.h"
|
||||
#include "tls_test_keys.h"
|
||||
|
||||
@@ -200,12 +200,12 @@ main (int argc, char *const *argv)
|
||||
const char *ssl_version;
|
||||
(void) argc; /* Unused. Silent compiler warning. */
|
||||
|
||||
#ifdef MHD_HTTPS_REQUIRE_GRYPT
|
||||
#ifdef MHD_HTTPS_REQUIRE_GCRYPT
|
||||
gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
|
||||
#ifdef GCRYCTL_INITIALIZATION_FINISHED
|
||||
gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||
#endif
|
||||
#endif /* MHD_HTTPS_REQUIRE_GRYPT */
|
||||
#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
|
||||
if (! testsuite_curl_global_init ())
|
||||
return 99;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user