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.

231 lines
4.0 KiB

  1. typedef struct _IPSEC_POLICY_STATE {
  2. SPD_STATE CurrentState;
  3. union {
  4. LPWSTR pszDirectoryPolicyDN;
  5. LPWSTR pszRegistryPolicyDN;
  6. LPWSTR pszCachePolicyDN;
  7. };
  8. DWORD CurrentPollingInterval;
  9. DWORD DefaultPollingInterval;
  10. DWORD DSIncarnationNumber;
  11. DWORD RegIncarnationNumber;
  12. DWORD PersIncarnationNumber;
  13. PIPSEC_POLICY_OBJECT pIpsecPolicyObject;
  14. PIPSEC_POLICY_DATA pIpsecPolicyData;
  15. } IPSEC_POLICY_STATE, * PIPSEC_POLICY_STATE;
  16. VOID
  17. InitializePolicyStateBlock(
  18. PIPSEC_POLICY_STATE pIpsecPolicyState
  19. );
  20. DWORD
  21. StartStatePollingManager(
  22. PIPSEC_POLICY_STATE pIpsecPolicyState
  23. );
  24. DWORD
  25. PlumbDirectoryPolicy(
  26. PIPSEC_POLICY_STATE pIpsecPolicyState
  27. );
  28. DWORD
  29. GetDirectoryPolicyDN(
  30. LPWSTR * ppszDirectoryPolicyDN
  31. );
  32. DWORD
  33. LoadDirectoryPolicy(
  34. LPWSTR pszDirectoryPolicyDN,
  35. PIPSEC_POLICY_OBJECT * ppIpsecPolicyObject
  36. );
  37. DWORD
  38. ApplyLoadedDirectoryPolicy(
  39. PIPSEC_POLICY_STATE pIpsecPolicyState
  40. );
  41. DWORD
  42. PlumbCachePolicy(
  43. PIPSEC_POLICY_STATE pIpsecPolicyState
  44. );
  45. DWORD
  46. GetCachePolicyDN(
  47. LPWSTR * ppszCachePolicyDN
  48. );
  49. DWORD
  50. LoadCachePolicy(
  51. LPWSTR pszCachePolicyDN,
  52. PIPSEC_POLICY_OBJECT * ppIpsecPolicyObject
  53. );
  54. DWORD
  55. PlumbLocalPolicy(
  56. PIPSEC_POLICY_STATE pIpsecPolicyState
  57. );
  58. DWORD
  59. GetRegistryPolicyDN(
  60. LPWSTR * ppszRegistryPolicyDN,
  61. IN DWORD dwStore
  62. );
  63. DWORD
  64. LoadRegistryPolicy(
  65. LPWSTR pszRegistryPolicyDN,
  66. PIPSEC_POLICY_OBJECT * ppIpsecPolicyObject,
  67. IN DWORD dwStore
  68. );
  69. DWORD
  70. ApplyLoadedLocalPolicy(
  71. PIPSEC_POLICY_STATE pIpsecPolicyState
  72. );
  73. DWORD
  74. AddPolicyInformation(
  75. PIPSEC_POLICY_DATA pIpsecPolicyData,
  76. IN DWORD dwSource
  77. );
  78. DWORD
  79. LoadPersistedIPSecInformation(
  80. );
  81. DWORD
  82. AddMMPolicyInformation(
  83. PIPSEC_POLICY_DATA pIpsecPolicyData,
  84. IN DWORD dwSource
  85. );
  86. DWORD
  87. AddQMPolicyInformation(
  88. PIPSEC_POLICY_DATA pIpsecPolicyData,
  89. IN DWORD dwSource,
  90. BOOL * pbHardError
  91. );
  92. DWORD
  93. OnPolicyChanged(
  94. PIPSEC_POLICY_STATE pIpsecPolicyState
  95. );
  96. DWORD
  97. DeletePolicyInformation(
  98. PIPSEC_POLICY_DATA pIpsecPolicyData
  99. );
  100. DWORD
  101. DeleteMMPolicyInformation(
  102. PIPSEC_POLICY_DATA pIpsecPolicyData
  103. );
  104. DWORD
  105. DeleteQMPolicyInformation(
  106. PIPSEC_POLICY_DATA pIpsecPolicyData
  107. );
  108. DWORD
  109. DeleteAllPolicyInformation(
  110. );
  111. DWORD
  112. DeleteAllMMPolicyInformation(
  113. );
  114. DWORD
  115. DeleteAllQMPolicyInformation(
  116. );
  117. VOID
  118. ClearPolicyStateBlock(
  119. PIPSEC_POLICY_STATE pIpsecPolicyState
  120. );
  121. DWORD
  122. OnPolicyPoll(
  123. PIPSEC_POLICY_STATE pIpsecPolicyState
  124. );
  125. DWORD
  126. ProcessDirectoryPolicyPollState(
  127. PIPSEC_POLICY_STATE pIpsecPolicyState
  128. );
  129. DWORD
  130. GetDirectoryIncarnationNumber(
  131. LPWSTR pszIpsecPolicyDN,
  132. DWORD * pdwIncarnationNumber
  133. );
  134. DWORD
  135. MigrateFromDSToCache(
  136. PIPSEC_POLICY_STATE pIpsecPolicyState
  137. );
  138. DWORD
  139. ProcessCachePolicyPollState(
  140. PIPSEC_POLICY_STATE pIpsecPolicyState
  141. );
  142. DWORD
  143. MigrateFromCacheToDS(
  144. PIPSEC_POLICY_STATE pIpsecPolicyState
  145. );
  146. DWORD
  147. UpdateFromCacheToDS(
  148. PIPSEC_POLICY_STATE pIpsecPolicyState
  149. );
  150. DWORD
  151. ProcessLocalPolicyPollState(
  152. PIPSEC_POLICY_STATE pIpsecPolicyState
  153. );
  154. DWORD
  155. HasRegistryPolicyChanged(
  156. LPWSTR pszCurrentPolicyDN,
  157. PBOOL pbChanged
  158. );
  159. DWORD
  160. GetRegistryIncarnationNumber(
  161. LPWSTR pszIpsecPolicyDN,
  162. DWORD *pdwIncarnationNumber
  163. );
  164. DWORD
  165. UpdatePolicyInformation(
  166. PIPSEC_POLICY_DATA pOldIpsecPolicyData,
  167. PIPSEC_POLICY_DATA pNewIpsecPolicyData,
  168. IN DWORD dwSource
  169. );
  170. DWORD
  171. LoadDefaultISAKMPInformation(
  172. LPWSTR pszDefaultISAKMPDN
  173. );
  174. VOID
  175. UnLoadDefaultISAKMPInformation(
  176. LPWSTR pszDefaultISAKMPDN
  177. );
  178. BOOL
  179. IsLocalPolicySpecified(
  180. );
  181. BOOL
  182. IsDirectoryPolicySpecified(
  183. );
  184. BOOL
  185. IsPersistentPolicySpecified(
  186. );