aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_sspi.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-04-02 22:04:13 +0100
committerSteve Holme <steve_holme@hotmail.com>2014-04-06 00:35:22 +0100
commitc46994129374ab5f688f68b5d138570174ab1d20 (patch)
treefe1beb80ac1f16da26bfddb02513e65e8ea62f34 /lib/curl_sspi.h
parentff853960bd7dcf6cfd0ea4ff6a91ea143e27fd4b (diff)
ntlm: Moved the identity generation into shared SSPI code
Diffstat (limited to 'lib/curl_sspi.h')
-rw-r--r--lib/curl_sspi.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/curl_sspi.h b/lib/curl_sspi.h
index d52582856..812d7a849 100644
--- a/lib/curl_sspi.h
+++ b/lib/curl_sspi.h
@@ -43,6 +43,13 @@
CURLcode Curl_sspi_global_init(void);
void Curl_sspi_global_cleanup(void);
+/* This is used to generate an SSPI identity structure */
+CURLcode Curl_create_sspi_identity(const char *userp, const char *passwdp,
+ SEC_WINNT_AUTH_IDENTITY *identity);
+
+/* This is used to free an SSPI identity structure */
+void Curl_sspi_free_identity(SEC_WINNT_AUTH_IDENTITY *identity);
+
/* Forward-declaration of global variables defined in curl_sspi.c */
extern HMODULE s_hSecDll;
@@ -289,5 +296,13 @@ extern PSecurityFunctionTable s_pSecFn;
# define SEC_I_SIGNATURE_NEEDED ((HRESULT)0x0009035CL)
#endif
+#ifdef UNICODE
+# define SECFLAG_WINNT_AUTH_IDENTITY \
+ (unsigned long)SEC_WINNT_AUTH_IDENTITY_UNICODE
+#else
+# define SECFLAG_WINNT_AUTH_IDENTITY \
+ (unsigned long)SEC_WINNT_AUTH_IDENTITY_ANSI
+#endif
+
#endif /* USE_WINDOWS_SSPI */
#endif /* HEADER_CURL_SSPI_H */