ipsecAssociationInit
Valid for: CANoe DE • CANoe4SW DE NoteThe function is dependent on the selected stack.
It is not possible to modify the security association database of the operating system TCP/IP stack.
Function Syntax
Description
With this function, it is possible to create a security association record. The record gets initialized with the given parameters.A security association record is needed to modify the security association database of a network stack.
Parameters
- source: Source endpoint of the security association.
- destination: Destination endpoint of the security association.
-
protocol: The Ipsec protocol of the security association. The following values are possible:
- UNSPEC: 0
- ESP: 1
- AH: 2
- ahalgorithm: sha
- ahkey: 0123456789ABCDEF
- espalgorithm: null
- ahalgorithm: sha
- ahkey: 0123456789ABCDEF
- espalgorithm: none
-
mode: The IPsec mode of the security association. The following values are possible:
- ANY: 0
- TRANSPORT: 1
- TUNNEL: 2
- spi: The security parameter index of the security association.
Return Values
- >0: A valid security association record handle.
- -1: Failed