summaryrefslogtreecommitdiff
path: root/lib/curl_sspi.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-01-29 21:44:36 +0000
committerYang Tse <yangsita@gmail.com>2009-01-29 21:44:36 +0000
commit5267be57f7304ff05a4ab9b9659d44916be72f1c (patch)
tree798ba0eff90a6712c34594ae8529c338eaede705 /lib/curl_sspi.h
parente813bf31d7b4ea4b39e227a66fec068f5fcd1a50 (diff)
downloadcurl-5267be57f7304ff05a4ab9b9659d44916be72f1c.tar.gz
Provide some definitions missing in MinGW's headers
Diffstat (limited to 'lib/curl_sspi.h')
-rw-r--r--lib/curl_sspi.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/curl_sspi.h b/lib/curl_sspi.h
index b1463ec4c..6b4c4bc51 100644
--- a/lib/curl_sspi.h
+++ b/lib/curl_sspi.h
@@ -41,6 +41,24 @@
#include <sspi.h>
#include <rpc.h>
+/* Provide some definitions missing in MinGW's headers */
+
+#ifndef SEC_I_CONTEXT_EXPIRED
+# define SEC_I_CONTEXT_EXPIRED ((HRESULT)0x00090317L)
+#endif
+#ifndef SEC_E_BUFFER_TOO_SMALL
+# define SEC_E_BUFFER_TOO_SMALL ((HRESULT)0x80090321L)
+#endif
+#ifndef SEC_E_CRYPTO_SYSTEM_INVALID
+# define SEC_E_CRYPTO_SYSTEM_INVALID ((HRESULT)0x80090337L)
+#endif
+#ifndef SEC_E_MESSAGE_ALTERED
+# define SEC_E_MESSAGE_ALTERED ((HRESULT)0x8009030FL)
+#endif
+#ifndef SEC_E_OUT_OF_SEQUENCE
+# define SEC_E_OUT_OF_SEQUENCE ((HRESULT)0x80090310L)
+#endif
+
CURLcode Curl_sspi_global_init(void);
void Curl_sspi_global_cleanup(void);