summaryrefslogtreecommitdiff
path: root/lib/curl_sspi.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-05 11:43:22 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-05 11:54:02 +0000
commitd62cb0f5d04597fa61ebfa6a5734b8283aa57646 (patch)
tree9b8771142009a38126b74868ec3004372f2a51e5 /lib/curl_sspi.h
parent1c05b9359d7dd96c7da5a8609beb679533edb595 (diff)
downloadcurl-d62cb0f5d04597fa61ebfa6a5734b8283aa57646.tar.gz
sspi: Define authentication package name constants
These were previously hard coded, and whilst defined in security.h, they may or may not be present in old header files given that these defines were never used in the original code. Not only that, but there appears to be some ambiguity between the ANSI and UNICODE NTLM definition name in security.h.
Diffstat (limited to 'lib/curl_sspi.h')
-rw-r--r--lib/curl_sspi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/curl_sspi.h b/lib/curl_sspi.h
index 5ab17d5fd..9fdcc1688 100644
--- a/lib/curl_sspi.h
+++ b/lib/curl_sspi.h
@@ -51,11 +51,14 @@ CURLcode Curl_create_sspi_identity(const char *userp, const char *passwdp,
void Curl_sspi_free_identity(SEC_WINNT_AUTH_IDENTITY *identity);
/* Forward-declaration of global variables defined in curl_sspi.c */
-
extern HMODULE s_hSecDll;
extern PSecurityFunctionTable s_pSecFn;
/* Provide some definitions missing in old headers */
+#define SP_NAME_DIGEST "WDigest"
+#define SP_NAME_NTLM "NTLM"
+#define SP_NAME_NEGOTIATE "Negotiate"
+#define SP_NAME_KERBEROS "Kerberos"
#ifndef SEC_E_INSUFFICIENT_MEMORY
# define SEC_E_INSUFFICIENT_MEMORY ((HRESULT)0x80090300L)