aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_ntlm_msgs.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-07-05 22:16:15 +0200
committerYang Tse <yangsita@gmail.com>2012-07-05 22:18:11 +0200
commite77d8670685d38d80c940877a4fdfa3382c4d6cc (patch)
tree91b785d4fc38e8b741c62f8335b9a1bf5f5e7b1c /lib/curl_ntlm_msgs.h
parent1b27bb446fad52d94a44d1d9bb5ee4b9c65d1e24 (diff)
unicode NTLM SSPI: cleanup
Reduce the number of #ifdef UNICODE directives used in source files.
Diffstat (limited to 'lib/curl_ntlm_msgs.h')
-rw-r--r--lib/curl_ntlm_msgs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/curl_ntlm_msgs.h b/lib/curl_ntlm_msgs.h
index 7acf7229f..703fb75e1 100644
--- a/lib/curl_ntlm_msgs.h
+++ b/lib/curl_ntlm_msgs.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -163,6 +163,14 @@ void Curl_ntlm_sspi_cleanup(struct ntlmdata *ntlm);
#define NTLMFLAG_NEGOTIATE_56 (1<<31)
/* Indicates that 56-bit encryption is supported. */
+#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 /* BUILDING_CURL_NTLM_MSGS_C */
#endif /* USE_NTLM */