aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-10 02:17:06 +0000
committerYang Tse <yangsita@gmail.com>2007-04-10 02:17:06 +0000
commit5be7b543d8aa25ccac7910f605a267a55d171d19 (patch)
tree13e26f62985f67346213e4cdda130d1ce77568d5
parent910ee13b20b622b9aa0c53025d86b19e9dcdf586 (diff)
Update NTLM flag and description
-rw-r--r--lib/http_ntlm.c4
-rw-r--r--lib/http_ntlm.h10
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index b4df726b5..8c9795b7e 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -146,8 +146,8 @@ static void print_flags(FILE *handle, unsigned long flags)
fprintf(handle, "NTLMFLAG_NEGOTIATE_NTLM_KEY ");
if(flags & (1<<10))
fprintf(handle, "NTLMFLAG_UNKNOWN_10 ");
- if(flags & (1<<11))
- fprintf(handle, "NTLMFLAG_UNKNOWN_11 ");
+ if(flags & NTLMFLAG_NEGOTIATE_ANONYMOUS)
+ fprintf(handle, "NTLMFLAG_NEGOTIATE_ANONYMOUS ");
if(flags & NTLMFLAG_NEGOTIATE_DOMAIN_SUPPLIED)
fprintf(handle, "NTLMFLAG_NEGOTIATE_DOMAIN_SUPPLIED ");
if(flags & NTLMFLAG_NEGOTIATE_WORKSTATION_SUPPLIED)
diff --git a/lib/http_ntlm.h b/lib/http_ntlm.h
index a8de220a7..265a912b4 100644
--- a/lib/http_ntlm.h
+++ b/lib/http_ntlm.h
@@ -67,7 +67,7 @@ void Curl_ntlm_cleanup(struct connectdata *conn);
should be encrypted (message confidentiality). */
#define NTLMFLAG_NEGOTIATE_DATAGRAM_STYLE (1<<6)
-/* unknown purpose */
+/* Indicates that datagram authentication is being used. */
#define NTLMFLAG_NEGOTIATE_LM_KEY (1<<7)
/* Indicates that the LAN Manager session key should be used for signing and
@@ -80,7 +80,10 @@ void Curl_ntlm_cleanup(struct connectdata *conn);
/* Indicates that NTLM authentication is being used. */
/* unknown (1<<10) */
-/* unknown (1<<11) */
+
+#define NTLMFLAG_NEGOTIATE_ANONYMOUS (1<<11)
+/* Sent by the client in the Type 3 message to indicate that an anonymous
+ context has been established. This also affects the response fields. */
#define NTLMFLAG_NEGOTIATE_DOMAIN_SUPPLIED (1<<12)
/* Sent by the client in the Type 1 message to indicate that a desired
@@ -139,7 +142,8 @@ void Curl_ntlm_cleanup(struct connectdata *conn);
/* Indicates that 128-bit encryption is supported. */
#define NTLMFLAG_NEGOTIATE_KEY_EXCHANGE (1<<30)
-/* unknown purpose */
+/* Indicates that the client will provide an encrypted master key in
+ the "Session Key" field of the Type 3 message. */
#define NTLMFLAG_NEGOTIATE_56 (1<<31)
/* Indicates that 56-bit encryption is supported. */