]> granicus.if.org Git - curl/commitdiff
curl_sspi: fix possibly undefined CRYPT_E_REVOKED
authorJay Satiro <raysatiro@yahoo.com>
Thu, 10 Sep 2015 06:17:33 +0000 (02:17 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 10 Sep 2015 06:17:33 +0000 (02:17 -0400)
Bug: https://github.com/bagder/curl/pull/411
Reported-by: Viktor Szakats
lib/curl_setup.h
lib/curl_sspi.h
lib/strerror.c

index ab0c139404ebb789404171d44f8a569cd1d2a68f..a21b96196ca7b656da37e9434fa1be554062a3d6 100644 (file)
 #  ifdef HAVE_WINSOCK2_H
 #    include <winsock2.h>
 #    ifdef HAVE_WS2TCPIP_H
-#       include <ws2tcpip.h>
+#      include <ws2tcpip.h>
 #    endif
 #  else
 #    ifdef HAVE_WINSOCK_H
index 8655715e29e327178078fa10793096e14262e816..f990780b143176a8dd0eb1701d921d74c3dd0be6 100644 (file)
@@ -327,6 +327,10 @@ extern PSecurityFunctionTable s_pSecFn;
 # define SEC_I_SIGNATURE_NEEDED               ((HRESULT)0x0009035CL)
 #endif
 
+#ifndef CRYPT_E_REVOKED
+# define CRYPT_E_REVOKED                      ((HRESULT)0x80092010L)
+#endif
+
 #ifdef UNICODE
 #  define SECFLAG_WINNT_AUTH_IDENTITY \
      (unsigned long)SEC_WINNT_AUTH_IDENTITY_UNICODE
index 5657141886718498cd7aa13ba8017d40570a2559..c8adb93d9c0a981a4733b9c5af39219cba499925 100644 (file)
 #include <idna.h>
 #endif
 
+#ifdef USE_WINDOWS_SSPI
+#include "curl_sspi.h"
+#endif
+
 #include "strerror.h"
 #include "curl_printf.h"
 #include "curl_memory.h"