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.

102 lines
2.4 KiB

  1. #ifndef OAKDLL_H
  2. #define OAKDLL_H
  3. #ifdef __cplusplus
  4. extern "C"{
  5. #endif
  6. /* Forward Declarations */
  7. /* header files for imported files */
  8. #include "wtypes.h"
  9. #include "ipsec.h"
  10. #include "oakdefs.h"
  11. #include "winipsec.h"
  12. typedef enum _POLICY_GUID_TYPE {
  13. POLICY_GUID_MM = 1,
  14. POLICY_GUID_QM,
  15. POLICY_GUID_AUTH,
  16. POLICY_GUID_MM_FILTER,
  17. POLICY_GUID_POWEREVENT_RESUME
  18. } POLICY_GUID_TYPE, *PPOLICY_GUID_TYPE;
  19. DWORD WINAPI IKEInit () ;
  20. DWORD WINAPI IKEShutdown (DWORD dwFlags) ;
  21. DWORD WINAPI IKEInitiateIKENegotiation(
  22. PIPSEC_QM_FILTER Filter,
  23. DWORD dwClientProcessId,
  24. HANDLE hClientEvent,
  25. DWORD dwFlags,
  26. IPSEC_UDP_ENCAP_CONTEXT UdpEncapContext,
  27. PHANDLE phNegotiationHandle);
  28. DWORD WINAPI IKEQueryIKENegotiationStatus(
  29. HANDLE hNegotiationHandle,
  30. SA_NEGOTIATION_STATUS_INFO *NegotiationStatus,
  31. DWORD dwFlags);
  32. DWORD WINAPI IKECloseIKENegotiationHandle(
  33. HANDLE hNegotiationHandle);
  34. DWORD WINAPI IKEQueryStatistics(
  35. PIKE_STATISTICS IKEStatistics);
  36. DWORD WINAPI IKEDeleteAssociation(
  37. IPSEC_MM_SA *MMTemplate,
  38. DWORD dwFlags);
  39. DWORD WINAPI IKEQuerySpiChange(
  40. HANDLE hNotifyHandle,
  41. LPDWORD dwListCount,
  42. IPSEC_QM_SA **FilterSpiList);
  43. DWORD WINAPI IKERegisterNotifyClient(
  44. DWORD dwClientProcessId,
  45. HANDLE hClientEvent,
  46. IPSEC_QM_SA QMInfo,
  47. PHANDLE phNotifyHandle);
  48. DWORD WINAPI IKECloseIKENotifyHandle(HANDLE hNotifyHandle);
  49. DWORD WINAPI IKEInterfaceChange();
  50. DWORD WINAPI IKEEnumMMs(IPSEC_MM_SA *MMTemplate,
  51. IPSEC_MM_SA **MMArray,
  52. LPDWORD pdwNumEntries,
  53. LPDWORD pdwTotalMMsAvailable,
  54. LPDWORD pdwEnumHandle,
  55. DWORD dwFlags);
  56. DWORD WINAPI
  57. IKENotifyPolicyChange(GUID *pPolicyGuid, POLICY_GUID_TYPE GuidType);
  58. DWORD WINAPI
  59. IKEAddSAs(
  60. IPSEC_SA_DIRECTION SADirection,
  61. PIPSEC_QM_OFFER pQMOffer,
  62. PIPSEC_QM_FILTER pQMFilter,
  63. HANDLE *hLarvalContext,
  64. DWORD dwInboundKeyMatLen,
  65. BYTE *InboundKeyMat,
  66. DWORD dwOutboundKeyMatLen,
  67. BYTE *OutboundKeyMat,
  68. BYTE *ContextInfo,
  69. UDP_ENCAP_INFO EncapInfo,
  70. DWORD dwFlags
  71. );
  72. DWORD WINAPI
  73. IKEGetConfigurationVariables(PIKE_CONFIG pIKEConfig);
  74. DWORD WINAPI
  75. IKESetConfigurationVariables(IKE_CONFIG IKEConfig);
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif