tfPolicyDelete

Jump to: navigation, search

Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference


#include <trsocket.h>


int tfPolicyDelete (
ttPolicyEntryPtr plcyPtr,
tt8Bit direction
);


Function Description

tfPolicyDelete() deletes a policy of the specified direction. If the policy was of two directions, i.e. applying to both inbound and outbound, only the specified direction is removed and the policy entry remains in the SPD. Otherwise, if the policy was applicable to only the specified direction, the policy entry will be freed.



Parameters

  • plcyPtr
    The pointer to the policy interested.
  • direction
    Can be any of TM_IPSEC_INBOUND, TM_IPSEC_OUTBOUND or TM_IPSEC_BOTHDIRECTION


Returns

  • TM_ENOERROR
    Policy successfully added.
  • Other value
    unsuccessful


Note Note: All SA spawned by this policy and in this direction will be deleted!


Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference