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.

111 lines
2.9 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1992 - 1996
  6. //
  7. // File: kerbdbg.h
  8. //
  9. // Contents: Debug information for Kerberos package
  10. //
  11. //
  12. // History: 16-April-1996 Created MikeSw
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __KERBDBG_H__
  16. #define __KERBDBG_H__
  17. //
  18. // NOTE: DO not remove RETAIL_LOG_SUPPORT from sources,
  19. // or you'll be busted in DBG builds.
  20. //
  21. #ifdef RETAIL_LOG_SUPPORT
  22. #ifndef WIN32_CHICAGO
  23. DECLARE_DEBUG2(Kerb);
  24. #undef DebugLog
  25. #define DebugLog(_x_) KerbDebugPrint _x_
  26. #define IF_DEBUG(Function) if (KerbInfoLevel & (DEB_ ## Function))
  27. #endif // WIN32_CHICAGO
  28. #define WSZ_KERBDEBUGLEVEL L"KerbDebugLevel"
  29. #define WSZ_FILELOG L"LogToFile"
  30. VOID
  31. KerbWatchKerbParamKey(PVOID, BOOLEAN);
  32. #define KerbPrintKdcName(Level, Name) KerbPrintKdcNameEx(KerbInfoLevel, (Level), (Name))
  33. #define DEB_TRACE_API 0x00000008
  34. #undef DEB_TRACE_CRED
  35. #define DEB_TRACE_CRED 0x00000010
  36. #define DEB_TRACE_CTXT 0x00000020
  37. #define DEB_TRACE_LSESS 0x00000040
  38. #define DEB_TRACE_TCACHE 0x00000080
  39. #define DEB_TRACE_LOGON 0x00000100
  40. #define DEB_TRACE_KDC 0x00000200
  41. #define DEB_TRACE_CTXT2 0x00000400
  42. #define DEB_TRACE_TIME 0x00000800
  43. #define DEB_TRACE_USER 0x00001000
  44. #define DEB_TRACE_LEAKS 0x00002000
  45. #define DEB_TRACE_SOCK 0x00004000
  46. #define DEB_TRACE_SPN_CACHE 0x00008000
  47. #define DEB_S4U_ERROR 0x00010000
  48. #define DEB_TRACE_S4U 0x00020000
  49. #define DEB_TRACE_BND_CACHE 0x00040000
  50. #define DEB_TRACE_LOOPBACK 0x00080000
  51. #define DEB_TRACE_TKT_RENEWAL 0x00100000
  52. #define DEB_TRACE_U2U 0x00200000
  53. #define DEB_TRACE_REFERRAL 0x00400000
  54. #define DEB_DISABLE_SPN_CACHE 0x10000000 // disable SPN cache
  55. #define DEB_DISABLE_BND_CACHE 0x20000000 // disable BND cache
  56. #undef DEB_TRACE_LOCKS
  57. #define DEB_TRACE_LOCKS 0x01000000
  58. #define DEB_USE_LOG_FILE 0x02000000
  59. // For extended errors
  60. #define DEB_USE_EXT_ERRORS 0x10000000
  61. #define EXT_ERROR_ON(s) (s & DEB_USE_EXT_ERRORS)
  62. #ifndef WIN32_CHICAGO
  63. VOID
  64. KerbInitializeDebugging(
  65. VOID
  66. );
  67. #endif // WIN32_CHICAGO
  68. #else // RETAIL_LOG_SUPPORT
  69. #define DebugLog(_x_)
  70. #define IF_DEBUG(Function) if (FALSE)
  71. #define KerbInitializeDebugging()
  72. #define KerbPrintKdcName(Level, Name)
  73. #define KerbWatchKerbParamKey()
  74. #define EXT_ERROR_ON(s) FALSE
  75. #endif // RETAIL_LOG_SUPPORT
  76. #if DBG
  77. #define D_DebugLog(_x_) DebugLog(_x_) // don't use all debug spew in retail builds
  78. #define D_KerbPrintKdcName(_x_) KerbPrintKdcName _x_
  79. #else
  80. #define D_KerbPrintKdcName(_x_)
  81. #define D_DebugLog(_x_)
  82. #endif
  83. #endif // __KERBDBG_H__