aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_digestauth_sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_digestauth_sha256.c')
-rw-r--r--src/testcurl/test_digestauth_sha256.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c
index 093fe263..0781c44c 100644
--- a/src/testcurl/test_digestauth_sha256.c
+++ b/src/testcurl/test_digestauth_sha256.c
@@ -34,11 +34,11 @@
34#include <stdlib.h> 34#include <stdlib.h>
35#include <string.h> 35#include <string.h>
36#include <time.h> 36#include <time.h>
37#ifdef MHD_HTTPS_REQUIRE_GRYPT 37#ifdef MHD_HTTPS_REQUIRE_GCRYPT
38#ifdef HAVE_GCRYPT_H 38#ifdef HAVE_GCRYPT_H
39#include <gcrypt.h> 39#include <gcrypt.h>
40#endif 40#endif
41#endif /* MHD_HTTPS_REQUIRE_GRYPT */ 41#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
42 42
43#ifndef WINDOWS 43#ifndef WINDOWS
44#include <sys/socket.h> 44#include <sys/socket.h>
@@ -320,14 +320,14 @@ main (int argc, char *const *argv)
320 /* curl added SHA256 support in 7.57 = 7.0x39 */ 320 /* curl added SHA256 support in 7.57 = 7.0x39 */
321 if (d->version_num < 0x073900) 321 if (d->version_num < 0x073900)
322 return 77; /* skip test, curl is too old */ 322 return 77; /* skip test, curl is too old */
323#ifdef MHD_HTTPS_REQUIRE_GRYPT 323#ifdef MHD_HTTPS_REQUIRE_GCRYPT
324#ifdef HAVE_GCRYPT_H 324#ifdef HAVE_GCRYPT_H
325 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 325 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
326#ifdef GCRYCTL_INITIALIZATION_FINISHED 326#ifdef GCRYCTL_INITIALIZATION_FINISHED
327 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 327 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
328#endif 328#endif
329#endif 329#endif
330#endif /* MHD_HTTPS_REQUIRE_GRYPT */ 330#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
331 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 331 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
332 return 2; 332 return 2;
333 errorCount += testDigestAuth (); 333 errorCount += testDigestAuth ();