qospol.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __QOSPOL_H_
  7. #define __QOSPOL_H_
  8. #define PE_TYPE_APPID 3
  9. #define PE_ATTRIB_TYPE_POLICY_LOCATOR 1
  10. #define PE_ATTRIB_TYPE_CREDENTIAL 2
  11. #define POLICY_LOCATOR_SUB_TYPE_ASCII_DN 1
  12. #define POLICY_LOCATOR_SUB_TYPE_UNICODE_DN 2
  13. #define POLICY_LOCATOR_SUB_TYPE_ASCII_DN_ENC 3
  14. #define POLICY_LOCATOR_SUB_TYPE_UNICODE_DN_ENC 4
  15. #define CREDENTIAL_SUB_TYPE_ASCII_ID 1
  16. #define CREDENTIAL_SUB_TYPE_UNICODE_ID 2
  17. #define CREDENTIAL_SUB_TYPE_KERBEROS_TKT 3
  18. #define CREDENTIAL_SUB_TYPE_X509_V3_CERT 4
  19. #define CREDENTIAL_SUB_TYPE_PGP_CERT 5
  20. typedef struct _IDPE_ATTR {
  21. USHORT PeAttribLength;
  22. UCHAR PeAttribType;
  23. UCHAR PeAttribSubType;
  24. UCHAR PeAttribValue[4];
  25. } IDPE_ATTR,*LPIDPE_ATTR;
  26. #define IDPE_ATTR_HDR_LEN (sizeof(USHORT)+sizeof(UCHAR)+sizeof(UCHAR))
  27. #define RSVP_BYTE_MULTIPLE(x) (((x+3) / 4)*4)
  28. #endif