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.

91 lines
1.9 KiB

  1. #ifndef _SNEGO_Module_H_
  2. #define _SNEGO_Module_H_
  3. #include "msber.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct MechTypeList2 * PMechTypeList2;
  8. typedef struct NegResultList2 * PNegResultList2;
  9. typedef ASN1objectidentifier_t MechType2;
  10. typedef enum NegResult2 {
  11. accept2 = 0,
  12. reject2 = 1,
  13. } NegResult2;
  14. typedef ASN1octetstring_t MechSpecInfo2;
  15. typedef struct MechTypeList2 {
  16. PMechTypeList2 next;
  17. MechType2 value;
  18. } MechTypeList2_Element;
  19. typedef struct NegHints2 {
  20. union {
  21. ASN1uint16_t bit_mask;
  22. ASN1octet_t o[1];
  23. };
  24. # define hintName_present 0x80
  25. ASN1ztcharstring_t hintName;
  26. # define hintAddress_present 0x40
  27. ASN1octetstring_t hintAddress;
  28. } NegHints2;
  29. typedef struct NegTokenReq2 {
  30. union {
  31. ASN1uint16_t bit_mask;
  32. ASN1octet_t o[1];
  33. };
  34. PMechTypeList2 mechTypes;
  35. # define desiredToken_present 0x80
  36. ASN1octetstring_t desiredToken;
  37. # define negHints2_present 0x40
  38. NegHints2 negHints2;
  39. } NegTokenReq2;
  40. typedef struct NegResultList2 {
  41. PNegResultList2 next;
  42. NegResult2 value;
  43. } NegResultList2_Element;
  44. typedef struct NegTokenRep2 {
  45. union {
  46. ASN1uint16_t bit_mask;
  47. ASN1octet_t o[1];
  48. };
  49. PNegResultList2 negResultList;
  50. # define supportedMech2_present 0x80
  51. MechType2 supportedMech2;
  52. # define mechSpecInfo2_present 0x40
  53. MechSpecInfo2 mechSpecInfo2;
  54. } NegTokenRep2;
  55. typedef struct NegotiationToken2 {
  56. ASN1choice_t choice;
  57. union {
  58. # define negTokenReq_chosen 1
  59. NegTokenReq2 negTokenReq;
  60. # define negTokenRep_chosen 2
  61. NegTokenRep2 negTokenRep;
  62. } u;
  63. } NegotiationToken2;
  64. #define NegotiationToken2_PDU 0
  65. #define SIZE_SNEGO_Module_PDU_0 sizeof(NegotiationToken2)
  66. extern ASN1module_t SNEGO_Module;
  67. extern void ASN1CALL SNEGO_Module_Startup(void);
  68. extern void ASN1CALL SNEGO_Module_Cleanup(void);
  69. /* Prototypes of element functions for SEQUENCE OF and SET OF constructs */
  70. #ifdef __cplusplus
  71. } /* extern "C" */
  72. #endif
  73. #endif /* _SNEGO_Module_H_ */