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.

151 lines
5.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: spreg.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 12-02-97 jbanes Remove CertificateAuthorities entry.
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef _SPREG_H_
  18. #define _SPREG_H_
  19. /*
  20. *[HKEY_LOCAL_MACHINE]
  21. * [System]
  22. * [CurrentControlSet]
  23. * [Control]
  24. * [SecurityProviders]
  25. * [SCHANNEL]
  26. * EventLogging:REG_DWORD: - Flag specifing event logging level
  27. * LogFile:REG_SZ: - debug logfile name (Not published)
  28. * LogLevel:REG_SZ: - debug logging level flags.
  29. * DebugBreak:REG_DWORD: - Flag specifing what type of errors cause a debug break (Not published)
  30. * MaximumCacheSize:REG_DWORD - maximum number of cache elements
  31. * ClientCacheTime:REG_DWORD - time to expire client side cache elements
  32. * ServerCacheTime:REG_DWORD - time to expire server side cache elements
  33. * MultipleProcessClientCache:REG_DWORD - whether to support multi-process caching
  34. *
  35. * [Protocols]
  36. * [Unified Hello
  37. * [Client]
  38. * Enabled:REG_DWORD: - Is this protocol enabled
  39. * [Server]
  40. * Enabled:REG_DWORD: - Is this protocol enabled [SSL2]
  41. * [SSL2]
  42. * [Client]
  43. * Enabled:REG_DWORD: - Is this protocol enabled
  44. * [Server]
  45. * Enabled:REG_DWORD: - Is this protocol enabled [SSL2]
  46. * [SSL3]
  47. * [Client]
  48. * Enabled:REG_DWORD: - Is this protocol enabled
  49. * [Server]
  50. * Enabled:REG_DWORD: - Is this protocol enabled
  51. * [PCT1]
  52. * [Client]
  53. * Enabled:REG_DWORD: - Is this protocol enabled
  54. * [Server]
  55. * Enabled:REG_DWORD: - Is this protocol enabled
  56. *
  57. * [Ciphers]
  58. * [Cipher Name]
  59. * Enabled:REG_DWORD: - Enable Mask
  60. * [RC4_128]
  61. * Enabled:REG_DWORD: - Is this Ciphers enabled
  62. * [Hashes]
  63. * [Hash Name]
  64. * Enabled:REG_DWORD: - Enable Mask
  65. * [KeyExchangeAlgorithms]
  66. * [Exch Name]
  67. * Enabled:REG_DWORD: - Enable Mask
  68. *
  69. */
  70. // FIPS registry entries
  71. #define SP_REG_FIPS_BASE_KEY TEXT("System\\CurrentControlSet\\Control\\Lsa")
  72. #define SP_REG_FIPS_POLICY TEXT("FipsAlgorithmPolicy")
  73. /* Key Names */
  74. #define SP_REG_KEY_BASE TEXT("System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL")
  75. #define SP_REG_KEY_PROTOCOL TEXT("Protocols")
  76. #define SP_REG_KEY_CIPHERS TEXT("Ciphers")
  77. #define SP_REG_KEY_HASHES TEXT("Hashes")
  78. #define SP_REG_KEY_KEYEXCH TEXT("KeyExchangeAlgorithms")
  79. /* Value Names */
  80. #define SP_REG_VAL_EVENTLOG TEXT("EventLogging")
  81. #define SP_REG_VAL_LOGFILE "LogFile"
  82. #define SP_REG_VAL_LOGLEVEL TEXT("LogLevel")
  83. #define SP_REG_VAL_BREAK TEXT("DebugBreak")
  84. #define SP_REG_VAL_MANUAL_CRED_VALIDATION TEXT("ManualCredValidation")
  85. #define SP_REG_VAL_DISABLED_BY_DEFAULT TEXT("DisabledByDefault")
  86. #define SP_REG_VAL_MULTI_PROC_CLIENT_CACHE TEXT("MultipleProcessClientCache")
  87. #define SP_REG_VAL_MAXUMUM_CACHE_SIZE TEXT("MaximumCacheSize")
  88. #define SP_REG_VAL_CLIENT_CACHE_TIME TEXT("ClientCacheTime")
  89. #define SP_REG_VAL_SERVER_CACHE_TIME TEXT("ServerCacheTime")
  90. #define SP_REG_VAL_RNG_SEED TEXT("RNGSeed")
  91. #define SP_REG_VAL_ENABLED TEXT("Enabled")
  92. #define SP_REG_VAL_CACERT TEXT("CACert")
  93. #define SP_REG_VAL_CERT_TYPE TEXT("Type")
  94. #define SP_REG_VAL_SERVER_TIMEOUT TEXT("ServerHandshakeTimeout")
  95. #define SP_REG_KEY_CLIENT TEXT("Client")
  96. #define SP_REG_KEY_SERVER TEXT("Server")
  97. #define SP_REG_KEY_PCT1 TEXT("PCT 1.0")
  98. #define SP_REG_KEY_SSL2 TEXT("SSL 2.0")
  99. #define SP_REG_KEY_SSL3 TEXT("SSL 3.0")
  100. #define SP_REG_KEY_TLS1 TEXT("TLS 1.0")
  101. #define SP_REG_KEY_UNIHELLO TEXT("Multi-Protocol Unified Hello")
  102. #define MANUAL_CRED_VALIDATION_SETTING FALSE
  103. #define PCT_CLIENT_DISABLED_SETTING TRUE
  104. #define SSL2_CLIENT_DISABLED_SETTING FALSE
  105. #define DEFAULT_EVENT_LOGGING_SETTING DEB_ERROR
  106. #define DEFAULT_ENABLED_PROTOCOLS_SETTING SP_PROT_ALL
  107. extern BOOL g_fManualCredValidation;
  108. extern BOOL g_PctClientDisabledByDefault;
  109. extern BOOL g_Ssl2ClientDisabledByDefault;
  110. extern BOOL g_fFranceLocale;
  111. BOOL SPLoadRegOptions(void);
  112. void SPUnloadRegOptions(void);
  113. /* Event Logging Definitions */
  114. #define SP_EVLOG_RESOURCE 0x0001
  115. #define SP_EVLOG_ASSERT 0x0002
  116. #define SP_EVLOG_ILLEGAL_MESSAGE 0x0004
  117. #define SP_EVLOG_SECAUDIT 0x0008
  118. #define SP_LOG_ERROR 0x0001
  119. #define SP_LOG_WARNING 0x0002
  120. #define SP_LOG_TRACE 0x0004
  121. #define SP_LOG_ALLOC 0x0008
  122. #define SP_LOG_RES 0x0010
  123. #define SP_LOG_TIMESTAMP 0x20000000
  124. #define SP_LOG_BUFFERS 0x40000000
  125. #define SP_LOG_FILE 0x80000000
  126. #define SP_BREAK_ERROR 0x0001
  127. #define SP_BREAK_WARNING 0x0002
  128. #define SP_BREAK_ENTRY 0x0004
  129. #endif // _SPREG_H_