aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_digestauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_digestauth.c')
-rw-r--r--src/testcurl/test_digestauth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
index 3db08b4b..e22156db 100644
--- a/src/testcurl/test_digestauth.c
+++ b/src/testcurl/test_digestauth.c
@@ -31,9 +31,11 @@
31#include <stdlib.h> 31#include <stdlib.h>
32#include <string.h> 32#include <string.h>
33#include <time.h> 33#include <time.h>
34#ifdef MHD_HTTPS_REQUIRE_GRYPT
34#ifdef HAVE_GCRYPT_H 35#ifdef HAVE_GCRYPT_H
35#include <gcrypt.h> 36#include <gcrypt.h>
36#endif 37#endif
38#endif /* MHD_HTTPS_REQUIRE_GRYPT */
37 39
38#ifndef WINDOWS 40#ifndef WINDOWS
39#include <sys/socket.h> 41#include <sys/socket.h>
@@ -250,12 +252,14 @@ main (int argc, char *const *argv)
250{ 252{
251 unsigned int errorCount = 0; 253 unsigned int errorCount = 0;
252 254
255#ifdef MHD_HTTPS_REQUIRE_GRYPT
253#ifdef HAVE_GCRYPT_H 256#ifdef HAVE_GCRYPT_H
254 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 257 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
255#ifdef GCRYCTL_INITIALIZATION_FINISHED 258#ifdef GCRYCTL_INITIALIZATION_FINISHED
256 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 259 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
257#endif 260#endif
258#endif 261#endif
262#endif /* MHD_HTTPS_REQUIRE_GRYPT */
259if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 263if (0 != curl_global_init (CURL_GLOBAL_WIN32))
260 return 2; 264 return 2;
261 errorCount += testDigestAuth (); 265 errorCount += testDigestAuth ();