tfPolicyRestore

Jump to: navigation, search

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


#include <trsocket.h>


int tfPolicyRestore (
ttIpsecPolicyPairPtr pairListPtr,
ttIpsecSelectorInStringPtr sListPtr,
ttPolicyContentInStringPtr cListPtr,
int npair
);


Function Description

This function builds the Security Policy Database (SPD) using the bulk load method. For embedded systems, because we don't have a file system, we have to load the policies from static data rather than from configuration files.



Parameters

  • pairListPtr
    Specifies the details of the IPsec policy to be added to the database. Pointer to a ttIpsecPolicyPair structure.
  • sListPtr
    Specifies the traffic selectors for the policy. Pointer to a ttIpsecSelectorInString structure.
  • cListPtr
    Specifies the policy contents. Pointer to a ttPolicyContentInString structure.
  • npair
    Number of pairs in the list pairListPtr.


Returns

  • TM_ENOERROR
    Success.
  • other
    Error restoring policy.


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