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.

120 lines
1.8 KiB

  1. typedef struct _qmpolicystate {
  2. GUID gPolicyID;
  3. LPWSTR pszPolicyName;
  4. GUID gNegPolType;
  5. GUID gNegPolAction;
  6. BOOL bAllowsSoft;
  7. DWORD cRef;
  8. BOOL bInSPD;
  9. DWORD dwErrorCode;
  10. struct _qmpolicystate * pNext;
  11. } QMPOLICYSTATE, * PQMPOLICYSTATE;
  12. DWORD
  13. PAAddQMPolicies(
  14. PIPSEC_NFA_DATA * ppIpsecNFAData,
  15. DWORD dwNumNFACount,
  16. DWORD dwSource
  17. );
  18. DWORD
  19. PACreateQMPolicyState(
  20. PIPSEC_NFA_DATA pIpsecNFAData,
  21. PQMPOLICYSTATE * ppQMPolicyState
  22. );
  23. VOID
  24. PAFreeQMPolicyState(
  25. PQMPOLICYSTATE pQMPolicyState
  26. );
  27. BOOL
  28. IsClearOnly(
  29. GUID gNegPolAction
  30. );
  31. BOOL
  32. IsBlocking(
  33. GUID gNegPolAction
  34. );
  35. BOOL
  36. IsInboundPassThru(
  37. GUID gNegPolAction
  38. );
  39. BOOL
  40. IsSecure(
  41. GUID gNegPolAction
  42. );
  43. DWORD
  44. PACreateQMPolicy(
  45. PIPSEC_NFA_DATA pIpsecNFAData,
  46. PQMPOLICYSTATE pQMPolicyState,
  47. PIPSEC_QM_POLICY * ppSPDQMPolicy
  48. );
  49. DWORD
  50. PACreateQMOffers(
  51. DWORD dwSecurityMethodCount,
  52. PIPSEC_SECURITY_METHOD pIpsecSecurityMethods,
  53. PQMPOLICYSTATE pQMPolicyState,
  54. PDWORD pdwOfferCount,
  55. PIPSEC_QM_OFFER * ppOffers
  56. );
  57. VOID
  58. PACopyQMOffers(
  59. PIPSEC_SECURITY_METHOD pMethod,
  60. PIPSEC_QM_OFFER pOffer
  61. );
  62. VOID
  63. PAFreeQMPolicy(
  64. PIPSEC_QM_POLICY pSPDQMPolicy
  65. );
  66. VOID
  67. PAFreeQMOffers(
  68. DWORD dwOfferCount,
  69. PIPSEC_QM_OFFER pOffers
  70. );
  71. DWORD
  72. PADeleteAllQMPolicies(
  73. );
  74. VOID
  75. PAFreeQMPolicyStateList(
  76. PQMPOLICYSTATE pQMPolicyState
  77. );
  78. PQMPOLICYSTATE
  79. FindQMPolicyState(
  80. GUID gPolicyID
  81. );
  82. DWORD
  83. PADeleteQMPolicies(
  84. PIPSEC_NFA_DATA * ppIpsecNFAData,
  85. DWORD dwNumNFACount
  86. );
  87. DWORD
  88. PADeleteQMPolicy(
  89. GUID gPolicyID
  90. );
  91. VOID
  92. PADeleteQMPolicyState(
  93. PQMPOLICYSTATE pQMPolicyState
  94. );
  95. DWORD
  96. PADeleteInUseQMPolicies(
  97. );