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.

126 lines
2.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1999.
  5. //
  6. // File: krbevent.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 05-Oct-98 MikeSw Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __KRBEVENT_H__
  18. #define __KRBEVENT_H__
  19. #define KERB_FUNC_INIT_CONTEXT L"InitializeSecurityContext"
  20. #define KERB_FUNC_ACCEPT_CONTEXT L"AcceptSecurityContext"
  21. #define KERB_FUNC_LOGON_USER L"LogonUser"
  22. #define KERB_FUNC_ACQUIRE_CREDS L"AcquireCredentialsHandle"
  23. #define KERB_FUNC_CHANGE_PASSWORD L"ChangePassword"
  24. #define KERB_FUNC_BUILD_PREAUTH L"BuildPreAuthDataForRealm"
  25. #ifndef WIN32_CHICAGO
  26. NTSTATUS
  27. KerbInitializeEvents(void);
  28. VOID
  29. KerbReportPACError(
  30. PUNICODE_STRING ClientName,
  31. PUNICODE_STRING ClientDomain,
  32. NTSTATUS FailureStatus
  33. );
  34. VOID
  35. KerbReportRasCardError(
  36. NTSTATUS CardStatus
  37. );
  38. VOID
  39. KerbReportCredmanError(
  40. IN PUNICODE_STRING UserName,
  41. IN PUNICODE_STRING Domain,
  42. IN BOOLEAN Pkinit,
  43. IN NTSTATUS CardStatus
  44. );
  45. VOID
  46. KerbReportPkinitError(
  47. ULONG PolicyStatus,
  48. IN OPTIONAL PCCERT_CONTEXT KdcCert
  49. );
  50. VOID
  51. KerbReportTransportError(NTSTATUS Status);
  52. VOID
  53. KerbResetTransportCounter();
  54. NTSTATUS
  55. KerbInitUdpStatistics();
  56. VOID
  57. KerbReportMissingRDN();
  58. VOID
  59. KerbReportKerbError(
  60. IN OPTIONAL PKERB_INTERNAL_NAME PrincipalName,
  61. IN OPTIONAL PUNICODE_STRING PrincipalRealm,
  62. IN OPTIONAL PKERB_LOGON_SESSION LogonSession,
  63. IN OPTIONAL PKERB_CREDENTIAL Credential,
  64. IN ULONG KlinInfo,
  65. IN OPTIONAL PKERB_ERROR ErrorMsg,
  66. IN ULONG KerbError,
  67. IN OPTIONAL PKERB_EXT_ERROR pExtendedError,
  68. IN BOOLEAN RequiredEvent
  69. );
  70. VOID
  71. KerbReportApError(
  72. PKERB_ERROR ErrorMessage,
  73. IN OPTIONAL PUNICODE_STRING TargetServer
  74. );
  75. VOID
  76. KerbReportNtstatus(
  77. IN ULONG ErrorClass,
  78. IN NTSTATUS Status,
  79. IN LPWSTR* ErrorStrings,
  80. IN ULONG NumberOfStrings,
  81. IN PULONG Data,
  82. IN ULONG NumberOfUlong
  83. );
  84. VOID
  85. KerbShutdownEvents(void);
  86. #else // WIN32_CHICAGO
  87. #define KerbInitializeEvents() (STATUS_SUCCESS)
  88. #define KerbShutdownEvents() (TRUE)
  89. #define KerbReportKerbError(_a_,_b_,_u_,_v_,_w_,_x_,_y_,_z_)
  90. #define KerbReportApError(_a_)
  91. #endif
  92. #endif // __KRBEVENT_H__