Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/NtlmFlags.cs')
-rwxr-xr-xmcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/NtlmFlags.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/NtlmFlags.cs b/mcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/NtlmFlags.cs
new file mode 100755
index 00000000000..74ed4878157
--- /dev/null
+++ b/mcs/class/Mono.Security/Mono.Security.Protocol.Ntlm/NtlmFlags.cs
@@ -0,0 +1,43 @@
+//
+// Mono.Security.Protocol.Ntlm.NtlmFlags
+//
+// Author:
+// Sebastien Pouliot (spouliot@motus.com)
+//
+// Copyright (C) 2003 Motus Technologies Inc. (http://www.motus.com)
+//
+// References
+// a. NTLM Authentication Scheme for HTTP, Ronald Tschalär
+// http://www.innovation.ch/java/ntlm.html
+// b. The NTLM Authentication Protocol, Copyright © 2003 Eric Glass
+// http://davenport.sourceforge.net/ntlm.html
+//
+
+using System;
+
+namespace Mono.Security.Protocol.Ntlm {
+
+ [Flags]
+ public enum NtlmFlags : uint {
+ // The client sets this flag to indicate that it supports Unicode strings.
+ NegotiateUnicode = 0x00000001,
+ // This is set to indicate that the client supports OEM strings.
+ NegotiateOEM = 0x00000002,
+ // This requests that the server send the authentication target with the Type 2 reply.
+ RequestTarget = 0x00000004,
+ // Indicates that NTLM authentication is supported.
+ NegotiateNTLM = 0x00000200,
+ // When set, the client will send with the message the name of the domain in which the workstation has membership.
+ NegotiateDomainSupplied = 0x00001000,
+ // Indicates that the client is sending its workstation name with the message.
+ NegotiateWorkstationSupplied = 0x00002000,
+ // Indicates that communication between the client and server after authentication should carry a "dummy" signature.
+ NegotiateAlwaysSign = 0x00008000,
+ // Indicates that this client supports the NTLM2 signing and sealing scheme; if negotiated, this can also affect the response calculations.
+ NegotiateNTLM2Key = 0x00080000,
+ // Indicates that this client supports strong (128-bit) encryption.
+ Negotiate128 = 0x20000000,
+ // Indicates that this client supports medium (56-bit) encryption.
+ Negotiate56 = 0x80000000
+ }
+}