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.

58 lines
1.4 KiB

  1. #ifndef __PROTOCOL_H__
  2. #define __PROTOCOL_H__
  3. #define XTCB_SEED_LENGTH 16
  4. #define XTCB_HMAC_LENGTH 16
  5. typedef struct _XTCB_INIT_MESSAGE {
  6. ULONG Version ;
  7. ULONG Length ;
  8. UCHAR Seed[ XTCB_SEED_LENGTH ];
  9. UCHAR HMAC[ XTCB_HMAC_LENGTH ];
  10. UNICODE_STRING32 OriginatingNode ;
  11. UNICODE_STRING32 Group ;
  12. ULONG PacOffset ;
  13. ULONG PacLength ;
  14. } XTCB_INIT_MESSAGE, * PXTCB_INIT_MESSAGE ;
  15. typedef struct _XTCB_INIT_MESSAGE_REPLY {
  16. ULONG Version ;
  17. ULONG Length ;
  18. UCHAR ReplySeed[ XTCB_SEED_LENGTH ];
  19. UCHAR HMAC[ XTCB_HMAC_LENGTH ];
  20. } XTCB_INIT_MESSAGE_REPLY, * PXTCB_INIT_MESSAGE_REPLY ;
  21. typedef struct _XTCB_MESSAGE_SIGNATURE {
  22. ULONG Version ;
  23. UCHAR HMAC[ XTCB_HMAC_LENGTH ];
  24. ULONG SequenceNumber ;
  25. } XTCB_MESSAGE_SIGNATURE, * PXTCB_MESSAGE_SIGNATURE ;
  26. typedef struct _XTCB_PAC {
  27. ULONG Tag ;
  28. ULONG Length ;
  29. ULONG UserOffset ;
  30. ULONG GroupCount ;
  31. ULONG GroupOffset ;
  32. ULONG UserLength ;
  33. ULONG GroupLength ;
  34. ULONG RestrictionCount ;
  35. ULONG RestrictionOffset ;
  36. ULONG RestrictionLength ;
  37. ULONG NameOffset;
  38. ULONG NameLength;
  39. ULONG DomainOffset;
  40. ULONG DomainLength;
  41. ULONG CredentialOffset ;
  42. ULONG CredentialLength ;
  43. UCHAR UniqueTag[ XTCB_SEED_LENGTH ];
  44. } XTCB_PAC, * PXTCB_PAC ;
  45. #define XTCB_PAC_TAG 'BCTX'
  46. #endif // __PROTOCOL_H__