Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.0 KiB

  1. --
  2. -- Microsoft Windows
  3. -- Copyright (C) Microsoft Corporation, 1992 - 1995.
  4. --
  5. -- File: snego.asn
  6. --
  7. -- Contents: Security Negotiation Definitions
  8. --
  9. -- Classes:
  10. --
  11. -- Functions:
  12. --
  13. -- History: 7-29-96 RichardW Created
  14. --
  15. SPNEGO DEFINITIONS ::=
  16. BEGIN
  17. MechType ::= OBJECT IDENTIFIER
  18. MechTypeList ::= SEQUENCE OF MechType
  19. --
  20. -- Create a top-level type using MechTypeList to enable it to be
  21. -- marshalled independently
  22. --
  23. SavedMechTypeList ::= MechTypeList
  24. NegHints ::= SEQUENCE {
  25. hintName[0] GeneralString OPTIONAL,
  26. hintAddress[1] OCTET STRING OPTIONAL
  27. }
  28. NegTokenInit ::= SEQUENCE {
  29. mechTypes[0] MechTypeList OPTIONAL,
  30. reqFlags [1] ContextFlags OPTIONAL,
  31. mechToken [2] OCTET STRING OPTIONAL,
  32. negHints [3] NegHints OPTIONAL,
  33. mechListMIC [4] OCTET STRING OPTIONAL
  34. }
  35. NegTokenInit2 ::= SEQUENCE {
  36. mechTypes [0] MechTypeList OPTIONAL,
  37. reqFlags [1] ContextFlags OPTIONAL,
  38. mechToken [2] OCTET STRING OPTIONAL,
  39. mechListMIC [3] OCTET STRING OPTIONAL,
  40. negHints [4] NegHints OPTIONAL
  41. }
  42. ContextFlags ::= BIT STRING {
  43. delegFlag (0),
  44. mutualFlag (1),
  45. replayFlag (2),
  46. sequenceFlag (3),
  47. anonFlag (4),
  48. confFlag (5),
  49. integFlag (6)
  50. }
  51. -- NegResult ::= ENUMERATED { accept(0), reject(1) }
  52. -- NegResultList ::= SEQUENCE OF NegResult
  53. MechSpecInfo ::= OCTET STRING
  54. -- NegTokenRep ::= SEQUENCE {
  55. -- negResultList[0] NegResultList,
  56. -- supportedMech[1] MechType OPTIONAL,
  57. -- mechSpecInfo[2] MechSpecInfo OPTIONAL
  58. -- }
  59. -- NegTokenSelect ::= SEQUENCE {
  60. -- supportedMech[0] MechType OPTIONAL,
  61. -- mechSpecInfo[1] MechSpecInfo OPTIONAL
  62. -- }
  63. NegResult ::= ENUMERATED {
  64. accept-completed (0),
  65. accept-incomplete (1),
  66. reject (2)
  67. }
  68. NegTokenTarg ::= SEQUENCE {
  69. negResult [0] NegResult OPTIONAL,
  70. supportedMech [1] MechType OPTIONAL,
  71. responseToken [2] OCTET STRING OPTIONAL,
  72. mechListMIC [3] OCTET STRING OPTIONAL
  73. }
  74. NegotiationToken ::= CHOICE {
  75. negTokenInit [0] NegTokenInit,
  76. negTokenTarg [1] NegTokenTarg,
  77. negTokenInit2 [2] NegTokenInit2
  78. } --#public--
  79. InitialNegToken ::= [APPLICATION 0] IMPLICIT SEQUENCE {
  80. spnegoMech MechType,
  81. negToken NegotiationToken
  82. } --#public--
  83. END