aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_digestauth_with_arguments.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-23 19:09:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-25 18:39:40 +0300
commit1e288041bd2895ae80cd6e6c62e3511262510cde (patch)
tree30d38482ffafc335117c5acd246f7190a9b1d794 /src/testcurl/test_digestauth_with_arguments.c
parent8815effe667c79e8145b64e110adc9e16990b43c (diff)
downloadlibmicrohttpd-1e288041bd2895ae80cd6e6c62e3511262510cde.tar.gz
libmicrohttpd-1e288041bd2895ae80cd6e6c62e3511262510cde.zip
Fixed initialisation of old GnuTLS versions
Diffstat (limited to 'src/testcurl/test_digestauth_with_arguments.c')
-rw-r--r--src/testcurl/test_digestauth_with_arguments.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_digestauth_with_arguments.c b/src/testcurl/test_digestauth_with_arguments.c
index aabf1b7e..09d70674 100644
--- a/src/testcurl/test_digestauth_with_arguments.c
+++ b/src/testcurl/test_digestauth_with_arguments.c
@@ -32,11 +32,11 @@
32#include <stdlib.h> 32#include <stdlib.h>
33#include <string.h> 33#include <string.h>
34#include <time.h> 34#include <time.h>
35#ifdef MHD_HTTPS_REQUIRE_GRYPT 35#ifdef MHD_HTTPS_REQUIRE_GCRYPT
36#ifdef HAVE_GCRYPT_H 36#ifdef HAVE_GCRYPT_H
37#include <gcrypt.h> 37#include <gcrypt.h>
38#endif 38#endif
39#endif /* MHD_HTTPS_REQUIRE_GRYPT */ 39#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
40 40
41#ifndef WINDOWS 41#ifndef WINDOWS
42#include <sys/socket.h> 42#include <sys/socket.h>
@@ -289,14 +289,14 @@ main (int argc, char *const *argv)
289 } 289 }
290#endif /* libcurl version 7.62.x */ 290#endif /* libcurl version 7.62.x */
291 291
292#ifdef MHD_HTTPS_REQUIRE_GRYPT 292#ifdef MHD_HTTPS_REQUIRE_GCRYPT
293#ifdef HAVE_GCRYPT_H 293#ifdef HAVE_GCRYPT_H
294 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 294 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
295#ifdef GCRYCTL_INITIALIZATION_FINISHED 295#ifdef GCRYCTL_INITIALIZATION_FINISHED
296 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 296 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
297#endif 297#endif
298#endif 298#endif
299#endif /* MHD_HTTPS_REQUIRE_GRYPT */ 299#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
300 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 300 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
301 return 2; 301 return 2;
302 errorCount += testDigestAuth (); 302 errorCount += testDigestAuth ();