Leaked source code of windows server 2003
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.

158 lines
7.9 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1992 - 1996
  6. //
  7. // File: krb5p.h
  8. //
  9. // Contents: pointer type definitions for ASN.1 stub types
  10. //
  11. //
  12. // History: 8-May-1996 Created MikeSw
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __KERB5P_H__
  16. #define __KERB5P_H__
  17. typedef KERB_HOST_ADDRESS *PKERB_HOST_ADDRESS;
  18. typedef KERB_PRINCIPAL_NAME *PKERB_PRINCIPAL_NAME;
  19. typedef KERB_REALM *PKERB_REALM;
  20. typedef KERB_TIME *PKERB_TIME;
  21. typedef KERB_ENCRYPTED_DATA *PKERB_ENCRYPTED_DATA;
  22. typedef KERB_TICKET *PKERB_TICKET;
  23. typedef KERB_TRANSITED_ENCODING *PKERB_TRANSITED_ENCODING;
  24. typedef KERB_ENCRYPTION_KEY *PKERB_ENCRYPTION_KEY;
  25. typedef KERB_ENCRYPTED_TICKET *PKERB_ENCRYPTED_TICKET;
  26. typedef KERB_CHECKSUM *PKERB_CHECKSUM;
  27. typedef KERB_AUTHENTICATOR *PKERB_AUTHENTICATOR;
  28. typedef KERB_PA_DATA *PKERB_PA_DATA;
  29. typedef KERB_KDC_REQUEST_BODY *PKERB_KDC_REQUEST_BODY;
  30. typedef KERB_KDC_REQUEST *PKERB_KDC_REQUEST;
  31. typedef KERB_AS_REQUEST *PKERB_AS_REQUEST;
  32. typedef KERB_TGS_REQUEST *PKERB_TGS_REQUEST;
  33. typedef KERB_KDC_REPLY *PKERB_KDC_REPLY;
  34. typedef KERB_AS_REPLY *PKERB_AS_REPLY;
  35. typedef KERB_TGS_REPLY *PKERB_TGS_REPLY;
  36. typedef KERB_ENCRYPTED_KDC_REPLY *PKERB_ENCRYPTED_KDC_REPLY;
  37. typedef KERB_ENCRYPTED_AS_REPLY *PKERB_ENCRYPTED_AS_REPLY;
  38. typedef KERB_ENCRYPTED_TGS_REPLY *PKERB_ENCRYPTED_TGS_REPLY;
  39. typedef KERB_AP_OPTIONS *PKERB_AP_OPTIONS;
  40. typedef KERB_AP_REQUEST *PKERB_AP_REQUEST;
  41. typedef KERB_AP_REPLY *PKERB_AP_REPLY;
  42. typedef KERB_ENCRYPTED_AP_REPLY *PKERB_ENCRYPTED_AP_REPLY;
  43. typedef KERB_SAFE_BODY *PKERB_SAFE_BODY;
  44. typedef KERB_SAFE_MESSAGE *PKERB_SAFE_MESSAGE;
  45. typedef KERB_PRIV_MESSAGE *PKERB_PRIV_MESSAGE;
  46. typedef KERB_ENCRYPTED_PRIV *PKERB_ENCRYPTED_PRIV;
  47. typedef KERB_ERROR *PKERB_ERROR;
  48. typedef KERB_EXT_ERROR *PKERB_EXT_ERROR;
  49. typedef KERB_ERROR_METHOD_DATA *PKERB_ERROR_METHOD_DATA;
  50. typedef struct PKERB_AUTHORIZATION_DATA_s KERB_AUTHORIZATION_DATA;
  51. typedef struct PKERB_TICKET_EXTENSIONS_s KERB_TICKET_EXTENSIONS;
  52. typedef KERB_CRED *PKERB_CRED;
  53. typedef KERB_ENCRYPTED_CRED *PKERB_ENCRYPTED_CRED;
  54. typedef KERB_CRED_INFO *PKERB_CRED_INFO;
  55. typedef struct PKERB_LAST_REQUEST_s KERB_LAST_REQUEST;
  56. typedef struct PKERB_HOST_ADDRESSES_s KERB_HOST_ADDRESSES;
  57. typedef struct PKERB_ETYPE_INFO_s KERB_ETYPE_INFO;
  58. typedef KERB_ETYPE_INFO_ENTRY * PKERB_ETYPE_INFO_ENTRY;
  59. typedef KERB_ENCRYPTED_TIMESTAMP *PKERB_ENCRYPTED_TIMESTAMP;
  60. typedef struct PKERB_PREAUTH_DATA_LIST_s KERB_PREAUTH_DATA_LIST, *PKERB_PREAUTH_DATA_LIST;
  61. typedef KERB_TICKET_FLAGS *PKERB_TICKET_FLAGS;
  62. typedef KERB_PA_PAC_REQUEST *PKERB_PA_PAC_REQUEST;
  63. typedef KERB_PA_FOR_USER *PKERB_PA_FOR_USER;
  64. #ifndef MIDL_PASS
  65. typedef struct KERB_PRINCIPAL_NAME_name_string_s KERB_PRINCIPAL_NAME_ELEM, *PKERB_PRINCIPAL_NAME_ELEM;
  66. typedef struct KERB_KDC_REQUEST_BODY_encryption_type_s KERB_CRYPT_LIST, *PKERB_CRYPT_LIST;
  67. typedef struct KERB_KDC_REQUEST_BODY_additional_tickets_s KERB_TICKET_LIST, *PKERB_TICKET_LIST;
  68. typedef struct KERB_KDC_REQUEST_preauth_data_s KERB_PA_DATA_LIST, *PKERB_PA_DATA_LIST;
  69. typedef struct KERB_KDC_REPLY_preauth_data_s KERB_REPLY_PA_DATA_LIST, *PKERB_REPLY_PA_DATA_LIST;
  70. typedef struct KERB_CRED_tickets_s KERB_CRED_TICKET_LIST, *PKERB_CRED_TICKET_LIST;
  71. typedef struct KERB_ENCRYPTED_CRED_ticket_info_s KERB_CRED_INFO_LIST, *PKERB_CRED_INFO_LIST;
  72. typedef struct KERB_PA_PK_AS_REQ2_user_certs_s KERB_CERTIFICATE_LIST, *PKERB_CERTIFICATE_LIST;
  73. typedef struct KERB_PA_PK_AS_REQ2_trusted_certifiers_s KERB_CERTIFIER_LIST, *PKERB_CERTIFIER_LIST;
  74. typedef struct KERB_KDC_ISSUED_AUTH_DATA_elements_s KERB_KDC_AUTH_DATA_LIST, *PKERB_KDC_AUTH_DATA_LIST;
  75. #endif // MIDL_PASS
  76. typedef KERB_KDC_ISSUED_AUTH_DATA *PKERB_KDC_ISSUED_AUTH_DATA;
  77. typedef struct PKERB_IF_RELEVANT_AUTH_DATA_ KERB_IF_RELEVANT_AUTH_DATA;
  78. typedef KERB_DH_PARAMTER *PKERB_DH_PARAMTER;
  79. typedef KERB_PA_PK_AS_REQ *PKERB_PA_PK_AS_REQ;
  80. typedef KERB_PA_PK_AS_REQ2 *PKERB_PA_PK_AS_REQ2;
  81. typedef KERB_SIGNED_AUTH_PACKAGE *PKERB_SIGNED_AUTH_PACKAGE;
  82. typedef KERB_AUTH_PACKAGE *PKERB_AUTH_PACKAGE;
  83. typedef KERB_PK_AUTHENTICATOR *PKERB_PK_AUTHENTICATOR;
  84. typedef KERB_SIGNED_REPLY_KEY_PACKAGE *PKERB_SIGNED_REPLY_KEY_PACKAGE;
  85. typedef struct ASN1objectidentifier_s KERB_OBJECT_ID, *PKERB_OBJECT_ID;
  86. typedef KERB_REPLY_KEY_PACKAGE *PKERB_REPLY_KEY_PACKAGE;
  87. typedef KERB_PA_PK_AS_REP *PKERB_PA_PK_AS_REP;
  88. typedef KERB_PA_PK_AS_REP2 *PKERB_PA_PK_AS_REP2;
  89. typedef KERB_CERTIFICATE *PKERB_CERTIFICATE;
  90. typedef KERB_SIGNED_KDC_PUBLIC_VALUE *PKERB_SIGNED_KDC_PUBLIC_VALUE;
  91. typedef KERB_SUBJECT_PUBLIC_KEY_INFO *PKERB_SUBJECT_PUBLIC_KEY_INFO;
  92. typedef KERB_ALGORITHM_IDENTIFIER *PKERB_ALGORITHM_IDENTIFIER;
  93. typedef KERB_SIGNATURE *PKERB_SIGNATURE;
  94. typedef KERB_TGT_REPLY *PKERB_TGT_REPLY;
  95. typedef KERB_TGT_REQUEST *PKERB_TGT_REQUEST;
  96. typedef KERB_PA_SERV_REFERRAL *PKERB_PA_SERV_REFERRAL;
  97. typedef KERB_CHANGE_PASSWORD_DATA *PKERB_CHANGE_PASSWORD_DATA;
  98. #define KERB_KDC_OPTIONS_reserved 0x80000000
  99. #define KERB_KDC_OPTIONS_forwardable 0x40000000
  100. #define KERB_KDC_OPTIONS_forwarded 0x20000000
  101. #define KERB_KDC_OPTIONS_proxiable 0x10000000
  102. #define KERB_KDC_OPTIONS_proxy 0x08000000
  103. #define KERB_KDC_OPTIONS_postdated 0x02000000
  104. #define KERB_KDC_OPTIONS_allow_postdate 0x04000000
  105. #define KERB_KDC_OPTIONS_unused7 0x01000000
  106. #define KERB_KDC_OPTIONS_renewable 0x00800000
  107. #define KERB_KDC_OPTIONS_unused9 0x00400000
  108. #define KERB_KDC_OPTIONS_name_canonicalize 0x00010000
  109. #define KERB_KDC_OPTIONS_cname_in_addl_tkt 0x00020000
  110. #define KERB_KDC_OPTIONS_cname_in_pa_data 0x00040000
  111. #define KERB_KDC_OPTIONS_renewable_ok 0x00000010
  112. #define KERB_KDC_OPTIONS_enc_tkt_in_skey 0x00000008
  113. #define KERB_KDC_OPTIONS_renew 0x00000002
  114. #define KERB_KDC_OPTIONS_validate 0x00000001
  115. #define KERB_AP_OPTIONS_reserved 0x80000000
  116. #define KERB_AP_OPTIONS_use_session_key 0x40000000
  117. #define KERB_AP_OPTIONS_mutual_required 0x20000000
  118. #define KERB_AP_OPTIONS_reserved1 0x00000001
  119. //
  120. // these #define's are done for the conversion from the old oss compiler to the
  121. // new telis compiler.
  122. //
  123. #define KERB_AUTHENTICATOR_sequence_number sequence_number
  124. #define KERB_ENCRYPTED_TICKET_client_addresses client_addresses
  125. #define KERB_ENCRYPTED_TICKET_renew_until renew_until
  126. #define KERB_CRED_INFO_renew_until renew_until
  127. #define KERB_KDC_REQUEST_BODY_renew_until renew_until
  128. #define KERB_KDC_REQUEST_BODY_server_name server_name
  129. #define KERB_KDC_REQUEST_preauth_data preauth_data
  130. #define KERB_AUTHENTICATOR_sequence_number sequence_number
  131. #define KERB_ENCRYPTED_AP_REPLY_sequence_number sequence_number
  132. #define KERB_AUTHENTICATOR_subkey subkey
  133. #define KERB_ENCRYPTED_AP_REPLY_subkey subkey
  134. #define KERB_TGT_REQUEST_server_name server_name
  135. #define KERB_ERROR_client_name client_name
  136. #define KERB_ENCRYPTED_TIMESTAMP_usec usec
  137. #define KERB_KDC_REQUEST_BODY_client_name client_name
  138. #define KERB_KDC_REPLY_preauth_data preauth_data
  139. #define KERB_ENCRYPTED_TIMESTAMP_usec usec
  140. #define KERB_ENCRYPTED_KDC_REPLY_starttime starttime
  141. #define KERB_CRED_INFO_starttime starttime
  142. #define KERB_ENCRYPTED_KDC_REPLY_renew_until renew_until
  143. #define KERB_ENCRYPTED_TICKET_authorization_data authorization_data
  144. #define KERB_ENCRYPTED_TICKET_starttime starttime
  145. #define KERB_ENCRYPTED_PRIV_sequence_number sequence_number
  146. #define KERB_KDC_REQUEST_BODY_starttime starttime
  147. #define KERB_ENCRYPTED_KDC_REPLY_client_addresses client_addresses
  148. #endif // __KERB5P_H__