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.

245 lines
3.6 KiB

  1. #include "precomp.h"
  2. LPVOID
  3. IPSecAllocPolMem(
  4. DWORD cb
  5. )
  6. {
  7. return AllocPolMem(cb);
  8. }
  9. BOOL
  10. IPSecFreePolMem(
  11. LPVOID pMem
  12. )
  13. {
  14. return FreePolMem(pMem);
  15. }
  16. LPWSTR
  17. IPSecAllocPolStr(
  18. LPCWSTR pStr
  19. )
  20. {
  21. return AllocPolStr(pStr);
  22. }
  23. BOOL
  24. IPSecFreePolStr(
  25. LPWSTR pStr
  26. )
  27. {
  28. return FreePolStr(pStr);
  29. }
  30. DWORD
  31. IPSecReallocatePolMem(
  32. LPVOID * ppOldMem,
  33. DWORD cbOld,
  34. DWORD cbNew
  35. )
  36. {
  37. return ReallocatePolMem(ppOldMem, cbOld, cbNew);
  38. }
  39. BOOL
  40. IPSecReallocatePolStr(
  41. LPWSTR *ppStr,
  42. LPWSTR pStr
  43. )
  44. {
  45. return ReallocPolStr(ppStr, pStr);
  46. }
  47. void
  48. IPSecFreePolicyData(
  49. PIPSEC_POLICY_DATA pIpsecPolicyData
  50. )
  51. {
  52. FreeIpsecPolicyData(pIpsecPolicyData);
  53. }
  54. void
  55. IPSecFreeNegPolData(
  56. PIPSEC_NEGPOL_DATA pIpsecNegPolData
  57. )
  58. {
  59. FreeIpsecNegPolData(pIpsecNegPolData);
  60. }
  61. void
  62. IPSecFreeFilterData(
  63. PIPSEC_FILTER_DATA pIpsecFilterData
  64. )
  65. {
  66. FreeIpsecFilterData(pIpsecFilterData);
  67. }
  68. void
  69. IPSecFreeISAKMPData(
  70. PIPSEC_ISAKMP_DATA pIpsecISAKMPData
  71. )
  72. {
  73. FreeIpsecISAKMPData(pIpsecISAKMPData);
  74. }
  75. void
  76. IPSecFreeNFAData(
  77. PIPSEC_NFA_DATA pIpsecNFAData
  78. )
  79. {
  80. FreeIpsecNFAData(pIpsecNFAData);
  81. }
  82. DWORD
  83. IPSecCopyPolicyData(
  84. PIPSEC_POLICY_DATA pIpsecPolicyData,
  85. PIPSEC_POLICY_DATA * ppIpsecPolicyData
  86. )
  87. {
  88. return CopyIpsecPolicyData(pIpsecPolicyData, ppIpsecPolicyData);
  89. }
  90. DWORD
  91. IPSecCopyNegPolData(
  92. PIPSEC_NEGPOL_DATA pIpsecNegPolData,
  93. PIPSEC_NEGPOL_DATA * ppIpsecNegPolData
  94. )
  95. {
  96. return CopyIpsecNegPolData(pIpsecNegPolData, ppIpsecNegPolData);
  97. }
  98. DWORD
  99. IPSecCopyFilterData(
  100. PIPSEC_FILTER_DATA pIpsecFilterData,
  101. PIPSEC_FILTER_DATA * ppIpsecFilterData
  102. )
  103. {
  104. return CopyIpsecFilterData(pIpsecFilterData, ppIpsecFilterData);
  105. }
  106. DWORD
  107. IPSecCopyFilterSpec(
  108. PIPSEC_FILTER_SPEC pFilterSpecs,
  109. PIPSEC_FILTER_SPEC * ppFilterSpecs
  110. )
  111. {
  112. return CopyIpsecFilterSpec(pFilterSpecs, ppFilterSpecs);
  113. }
  114. DWORD
  115. IPSecCopyISAKMPData(
  116. PIPSEC_ISAKMP_DATA pIpsecISAKMPData,
  117. PIPSEC_ISAKMP_DATA * ppIpsecISAKMPData
  118. )
  119. {
  120. return CopyIpsecISAKMPData(pIpsecISAKMPData, ppIpsecISAKMPData);
  121. }
  122. DWORD
  123. IPSecCopyNFAData(
  124. PIPSEC_NFA_DATA pIpsecNFAData,
  125. PIPSEC_NFA_DATA * ppIpsecNFAData
  126. )
  127. {
  128. return CopyIpsecNFAData(pIpsecNFAData, ppIpsecNFAData);
  129. }
  130. DWORD
  131. IPSecCopyAuthMethod(
  132. PIPSEC_AUTH_METHOD pAuthMethod,
  133. PIPSEC_AUTH_METHOD * ppAuthMethod
  134. )
  135. {
  136. return CopyIpsecAuthMethod(pAuthMethod, ppAuthMethod);
  137. }
  138. void
  139. IPSecFreeMulPolicyData(
  140. PIPSEC_POLICY_DATA * ppIpsecPolicyData,
  141. DWORD dwNumPolicyObjects
  142. )
  143. {
  144. FreeMulIpsecPolicyData(ppIpsecPolicyData, dwNumPolicyObjects);
  145. }
  146. void
  147. IPSecFreeMulNegPolData(
  148. PIPSEC_NEGPOL_DATA * ppIpsecNegPolData,
  149. DWORD dwNumNegPolObjects
  150. )
  151. {
  152. FreeMulIpsecNegPolData(ppIpsecNegPolData, dwNumNegPolObjects);
  153. }
  154. void
  155. IPSecFreeMulFilterData(
  156. PIPSEC_FILTER_DATA * ppIpsecFilterData,
  157. DWORD dwNumFilterObjects
  158. )
  159. {
  160. FreeMulIpsecFilterData(ppIpsecFilterData, dwNumFilterObjects);
  161. }
  162. void
  163. IPSecFreeFilterSpecs(
  164. PIPSEC_FILTER_SPEC * ppIpsecFilterSpecs,
  165. DWORD dwNumFilterSpecs
  166. )
  167. {
  168. FreeIpsecFilterSpecs(ppIpsecFilterSpecs, dwNumFilterSpecs);
  169. }
  170. void
  171. IPSecFreeFilterSpec(
  172. PIPSEC_FILTER_SPEC pIpsecFilterSpec
  173. )
  174. {
  175. FreeIpsecFilterSpec(pIpsecFilterSpec);
  176. }
  177. void
  178. IPSecFreeMulISAKMPData(
  179. PIPSEC_ISAKMP_DATA * ppIpsecISAKMPData,
  180. DWORD dwNumISAKMPObjects
  181. )
  182. {
  183. FreeMulIpsecISAKMPData(ppIpsecISAKMPData, dwNumISAKMPObjects);
  184. }
  185. void
  186. IPSecFreeMulNFAData(
  187. PIPSEC_NFA_DATA * ppIpsecNFAData,
  188. DWORD dwNumNFAObjects
  189. )
  190. {
  191. FreeMulIpsecNFAData(ppIpsecNFAData, dwNumNFAObjects);
  192. }