mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-02 04:02:18 +03:00
Fixed initialisation of old GnuTLS versions
This commit is contained in:
21 files changed
+84
-82
No files matched your search
@@ -33,9 +33,9 @@
|
||||
#include <limits.h>
|
||||
#include <curl/curl.h>
|
||||
#include <pthread.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"
|
||||
|
||||
@@ -152,11 +152,11 @@ main (int argc, char *const *argv)
|
||||
/* initialize random seed used by curl clients */
|
||||
iseed = (unsigned int) time (NULL);
|
||||
|
||||
#ifdef MHD_HTTPS_REQUIRE_GRYPT
|
||||
#ifdef MHD_HTTPS_REQUIRE_GCRYPT
|
||||
#ifdef GCRYCTL_INITIALIZATION_FINISHED
|
||||
gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||
#endif
|
||||
#endif /* MHD_HTTPS_REQUIRE_GRYPT */
|
||||
#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
|
||||
srand (iseed);
|
||||
if (! testsuite_curl_global_init ())
|
||||
return 99;
|
||||
|
||||
Reference in new issue
Block a user