tfIpsecPolicyQueryByIndex

Jump to: navigation, search

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


#include <trsocket.h>


int tfIpsecPolicyQueryByIndex (
int index,
ttPolicyEntryPtrPtr plcyPtrPtr
);


Function Description

TAll policies have an index number, beginning from zero. This procedure gets the policy given its index number.



Parameters

  • index
    The interested policy index.
  • plcyPtrPtr
    For output use. Carries the address of policy just found.


Returns

  • TM_ENOERROR
    Policy located successfully. Policy pointer stored in plcyPtrPtr.
  • Other value
    Error. plcyPtrPtr carries a NULL pointer, no policy found.



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