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.

215 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. globals.c
  5. Abstract:
  6. Holds global variable declarations.
  7. Author:
  8. abhisheV 30-September-1999
  9. Environment:
  10. User Level: Win32
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. BOOL gbSPDRPCServerUp;
  15. HANDLE ghServiceStopEvent;
  16. CRITICAL_SECTION gcServerListenSection;
  17. DWORD gdwServersListening;
  18. BOOL gbServerListenSection;
  19. PIPSEC_INTERFACE gpInterfaceList;
  20. BOOL gbwsaStarted;
  21. SOCKET gIfChangeEventSocket;
  22. HANDLE ghIfChangeEvent;
  23. HANDLE ghOverlapEvent;
  24. WSAOVERLAPPED gwsaOverlapped;
  25. WSADATA gwsaData;
  26. PSPECIAL_ADDR gpSpecialAddrsList;
  27. //
  28. // Globals for transport-mode filters - txfilter.c
  29. //
  30. PINITXFILTER gpIniTxFilter;
  31. PINITXSFILTER gpIniTxSFilter;
  32. PTX_FILTER_HANDLE gpTxFilterHandle;
  33. CRITICAL_SECTION gcSPDSection;
  34. BOOL gbSPDSection;
  35. //
  36. // Globals for quick mode policies - qm-policy.c
  37. //
  38. PINIQMPOLICY gpIniQMPolicy;
  39. PINIQMPOLICY gpIniDefaultQMPolicy;
  40. //
  41. // Globals for main mode policies - mm-policy.c
  42. //
  43. PINIMMPOLICY gpIniMMPolicy;
  44. PINIMMPOLICY gpIniDefaultMMPolicy;
  45. //
  46. // Globals for main mode filters - mmfilter.c
  47. //
  48. PINIMMFILTER gpIniMMFilter;
  49. PINIMMSFILTER gpIniMMSFilter;
  50. PMM_FILTER_HANDLE gpMMFilterHandle;
  51. //
  52. // Globals for main mode auth methods - mmauth.c
  53. //
  54. PINIMMAUTHMETHODS gpIniMMAuthMethods;
  55. PINIMMAUTHMETHODS gpIniDefaultMMAuthMethods;
  56. //
  57. // Policy Agent Store specific globals.
  58. //
  59. IPSEC_POLICY_STATE gIpsecPolicyState;
  60. PIPSEC_POLICY_STATE gpIpsecPolicyState;
  61. DWORD gCurrentPollingInterval;
  62. DWORD gDefaultPollingInterval;
  63. DWORD gdwRetryCount;
  64. LPWSTR gpszIpsecDSPolicyKey;
  65. LPWSTR gpszIpsecLocalPolicyKey;
  66. LPWSTR gpszIpsecPersistentPolicyKey;
  67. LPWSTR gpszIpsecCachePolicyKey;
  68. LPWSTR gpszDefaultISAKMPPolicyDN;
  69. LPWSTR gpszLocPolicyAgent;
  70. HANDLE ghNewDSPolicyEvent;
  71. HANDLE ghNewLocalPolicyEvent;
  72. HANDLE ghForcedPolicyReloadEvent;
  73. HANDLE ghPolicyChangeNotifyEvent;
  74. HANDLE ghGpupdateRefreshEvent;
  75. BOOL gbLoadedISAKMPDefaults;
  76. //
  77. // PA Store to SPD intergration specific globals.
  78. //
  79. PMMPOLICYSTATE gpMMPolicyState;
  80. PMMAUTHSTATE gpMMAuthState;
  81. PMMFILTERSTATE gpMMFilterState;
  82. DWORD gdwMMPolicyCounter;
  83. DWORD gdwMMFilterCounter;
  84. PQMPOLICYSTATE gpQMPolicyState;
  85. DWORD gdwQMPolicyCounter;
  86. PTXFILTERSTATE gpTxFilterState;
  87. DWORD gdwTxFilterCounter;
  88. //
  89. // Globals for tunnel-mode filters - tnfilter.c
  90. //
  91. PINITNFILTER gpIniTnFilter;
  92. PINITNSFILTER gpIniTnSFilter;
  93. PTN_FILTER_HANDLE gpTnFilterHandle;
  94. PTNFILTERSTATE gpTnFilterState;
  95. DWORD gdwTnFilterCounter;
  96. BOOL gbIsIKEUp;
  97. PSECURITY_DESCRIPTOR gpSPDSD;
  98. BOOL gbIKENotify;
  99. HANDLE ghIPSecDriver = INVALID_HANDLE_VALUE;
  100. SID gIpsecServerSid = { SID_REVISION,
  101. 1,
  102. SECURITY_NT_AUTHORITY,
  103. SECURITY_NETWORK_SERVICE_RID
  104. };
  105. PSID gpIpsecServerSid = &gIpsecServerSid;
  106. CRITICAL_SECTION gcSPDAuditSection;
  107. BOOL gbSPDAuditSection;
  108. BOOL gbAuditingInitialized;
  109. HMODULE ghIpsecServerModule;
  110. BOOL gbIsIoctlPended;
  111. BOOL gbBackwardSoftSA;
  112. DWORD gdwShutdownFlags;
  113. BOOL gbPersistentPolicyApplied;