www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


IPsec_Add_Preshared_Key

This function adds a preshared key for use with the specified remote IP during Internet Key Exchange (IKE).

int IPsec_Add_Preshared_Key(
                     const char *remote_ip,
                     const char *preshared_key) ;

Parameters

remote_ip

Zero terminated ASCII string specifying the IP address of the remote side.

preshared_key

Zero terminated ASCII string specifying the preshared key.

Return Value

Error code, zero on success

Comments

The IP security must be started prior to using this API.

The IP address may be either IPv4 of IPv6.   Domain names must be resolved first by the caller and are not supported by this API.

See Also

RTOS API

This library function invokes a RTOS software interrupt.   Refer to the RTOS API function IPSEC_VECTORS for more details.

Related Topics

PRESHARED_KEY definition in CHIP.INI file

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    n/an/an/aV1.07V1.00

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.06

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document