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.

94 lines
2.4 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. #endif // WIN32_CHICAGO
  27. #define WSZ_KERBDEBUGLEVEL L"KerbDebugLevel"
  28. #define WSZ_FILELOG L"LogToFile"
  29. VOID
  30. KerbWatchKerbParamKey(PVOID,BOOLEAN);
  31. #define KerbPrintKdcName(Level,Name) KerbPrintKdcNameEx(KerbInfoLevel, (Level),(Name))
  32. #define DEB_TRACE_API 0x00000008
  33. #undef DEB_TRACE_CRED
  34. #define DEB_TRACE_CRED 0x00000010
  35. #define DEB_TRACE_CTXT 0x00000020
  36. #define DEB_TRACE_LSESS 0x00000040
  37. #define DEB_TRACE_TCACHE 0x00000080
  38. #define DEB_TRACE_LOGON 0x00000100
  39. #define DEB_TRACE_KDC 0x00000200
  40. #define DEB_TRACE_CTXT2 0x00000400
  41. #define DEB_TRACE_TIME 0x00000800
  42. #define DEB_TRACE_USER 0x00001000
  43. #define DEB_TRACE_LEAKS 0x00002000
  44. #define DEB_TRACE_SOCK 0x00004000
  45. #define DEB_TRACE_SPN_CACHE 0x00008000
  46. #define DEB_S4U_ERROR 0x00010000
  47. #define DEB_TRACE_U2U 0x00200000
  48. #define DEB_TRACE_LOOPBACK 0x00080000
  49. #undef DEB_TRACE_LOCKS
  50. #define DEB_TRACE_LOCKS 0x01000000
  51. #define DEB_USE_LOG_FILE 0x02000000
  52. // For extended errors
  53. #define DEB_USE_EXT_ERRORS 0x10000000
  54. #define EXT_ERROR_ON(s) (s & DEB_USE_EXT_ERRORS)
  55. #ifndef WIN32_CHICAGO
  56. VOID
  57. KerbInitializeDebugging(
  58. VOID
  59. );
  60. #endif // WIN32_CHICAGO
  61. #else // RETAIL_LOG_SUPPORT
  62. #define DebugLog(_x_)
  63. #define KerbInitializeDebugging()
  64. #define KerbPrintKdcName(_x_)
  65. #define KerbWatchKerbParamKey()
  66. #define EXT_ERROR_ON(s) FALSE
  67. #endif // RETAIL_LOG_SUPPORT
  68. #if DBG
  69. #define D_DebugLog(_x_) DebugLog(_x_) // don't use all debug spew in retail builds
  70. #define D_KerbPrintKdcName(l,n) KerbPrintKdcName(l,n)
  71. #else
  72. #define D_KerbPrintKdcName(l,n)
  73. #define D_DebugLog(_x_)
  74. #endif
  75. #endif // __KERBDBG_H__