aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-09-10 02:17:33 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-09-10 02:17:33 -0400
commitdf6a4d3519655b26137a90a440c5a99f4abe7e22 (patch)
treedb693d330e046b37c782c3d54b8587d9309b31e8 /lib
parente30763c72eed43630befccf0018e4801b620d6f3 (diff)
curl_sspi: fix possibly undefined CRYPT_E_REVOKED
Bug: https://github.com/bagder/curl/pull/411 Reported-by: Viktor Szakats
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_setup.h2
-rw-r--r--lib/curl_sspi.h4
-rw-r--r--lib/strerror.c4
3 files changed, 9 insertions, 1 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index ab0c13940..a21b96196 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -249,7 +249,7 @@
# ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
# ifdef HAVE_WS2TCPIP_H
-# include <ws2tcpip.h>
+# include <ws2tcpip.h>
# endif
# else
# ifdef HAVE_WINSOCK_H
diff --git a/lib/curl_sspi.h b/lib/curl_sspi.h
index 8655715e2..f990780b1 100644
--- a/lib/curl_sspi.h
+++ b/lib/curl_sspi.h
@@ -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
diff --git a/lib/strerror.c b/lib/strerror.c
index 565714188..c8adb93d9 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -39,6 +39,10 @@
#include <idna.h>
#endif
+#ifdef USE_WINDOWS_SSPI
+#include "curl_sspi.h"
+#endif
+
#include "strerror.h"
#include "curl_printf.h"
#include "curl_memory.h"