2 // Mono.Security.Protocol.Ntlm.NtlmFlags
5 // Sebastien Pouliot <sebastien@ximian.com>
6 // Atsushi Enomoto <atsushi@ximian.com>
8 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
9 // (C) 2004, 2007 Novell (http://www.novell.com)
12 // a. NTLM Authentication Scheme for HTTP, Ronald Tschalär
13 // http://www.innovation.ch/java/ntlm.html
14 // b. The NTLM Authentication Protocol, Copyright © 2003 Eric Glass
15 // http://davenport.sourceforge.net/ntlm.html
19 // Permission is hereby granted, free of charge, to any person obtaining
20 // a copy of this software and associated documentation files (the
21 // "Software"), to deal in the Software without restriction, including
22 // without limitation the rights to use, copy, modify, merge, publish,
23 // distribute, sublicense, and/or sell copies of the Software, and to
24 // permit persons to whom the Software is furnished to do so, subject to
25 // the following conditions:
27 // The above copyright notice and this permission notice shall be
28 // included in all copies or substantial portions of the Software.
30 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
34 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
35 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
36 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41 namespace Mono.Security.Protocol.Ntlm {
44 public enum NtlmFlags : int {
45 // The client sets this flag to indicate that it supports Unicode strings.
46 NegotiateUnicode = 0x00000001,
47 // This is set to indicate that the client supports OEM strings.
48 NegotiateOem = 0x00000002,
49 // This requests that the server send the authentication target with the Type 2 reply.
50 RequestTarget = 0x00000004,
52 NegotiateSign = 0x00000010,
54 NegotiateSeal = 0x00000020,
55 // Negotiate DatagramStyle
56 NegotiateDatagramStyle = 0x00000040,
57 // Negotiate Lan Manager Key
58 NegotiateLm = 0x00000080,
59 // Indicates that NTLM authentication is supported.
60 NegotiateNtlm = 0x00000200,
61 // Indicates that NTLM authentication is supported.
62 NegotiateAnonymous = 0x00000800,
63 // When set, the client will send with the message the name of the domain in which the workstation has membership.
64 NegotiateDomainSupplied = 0x00001000,
65 // Indicates that the client is sending its workstation name with the message.
66 NegotiateWorkstationSupplied = 0x00002000,
67 // Indicates that communication between the client and server after authentication should carry a "dummy" signature.
68 NegotiateAlwaysSign = 0x00008000,
69 // Indicates that this client supports the NTLM2 signing and sealing scheme; if negotiated, this can also affect the response calculations.
70 NegotiateNtlm2Key = 0x00080000,
71 // Indicates that this client supports strong (128-bit) encryption.
72 Negotiate128 = 0x20000000,
73 // Negotiate Key Exchange
74 NegotiateKeyExchange = 0x40000000,
75 // Indicates that this client supports medium (56-bit) encryption.
76 Negotiate56 = (unchecked ((int) 0x80000000))