NtlmFlags.cs 3.2 KB

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