_IkeContext Struct Reference

IKE context. More...

#include <ike.h>

Data Fields

bool_t running
 Operational state of IKEv2. More...
 
bool_t stop
 Stop request. More...
 
OsEvent event
 Event object used to poll the underlying socket. More...
 
OsTaskParameters taskParams
 Task parameters. More...
 
OsTaskId taskId
 Task identifier. More...
 
NetInterfaceinterface
 Underlying network interface. More...
 
const PrngAlgoprngAlgo
 Pseudo-random number generator to be used. More...
 
void * prngContext
 Pseudo-random number generator context. More...
 
systime_t saLifetime
 Lifetime of IKE SAs. More...
 
systime_t childSaLifetime
 Lifetime of Child SAs. More...
 
systime_t reauthPeriod
 Reauthentication period. More...
 
systime_t dpdPeriod
 Dead peer detection period. More...
 
uint16_t preferredDhGroupNum
 Preferred Diffie-Hellman group number. More...
 
IkeIdType idType
 ID type. More...
 
uint8_t id [IKE_MAX_ID_LEN]
 ID. More...
 
size_t idLen
 Length of the ID, in bytes. More...
 
uint8_t psk [IKE_MAX_PSK_LEN]
 Pre-shared key. More...
 
size_t pskLen
 Length of the pre-shared key, in bytes. More...
 
IkeCertType certType
 Certificate type. More...
 
const char_tcertChain
 Entity's certificate chain (PEM format) More...
 
size_t certChainLen
 Length of the certificate chain. More...
 
const char_tprivateKey
 Entity's private key (PEM format) More...
 
size_t privateKeyLen
 Length of the private key. More...
 
char_t password [IKE_MAX_PASSWORD_LEN]
 Password used to decrypt the private key. More...
 
Socketsocket
 Underlying UDP socket. More...
 
IpAddr localIpAddr
 Destination IP address of the received IKE message. More...
 
IpAddr remoteIpAddr
 Source IP address of the received IKE message. More...
 
uint16_t remotePort
 Source port of the received IKE message. More...
 
IkeSaEntrysa
 IKE SA entries. More...
 
uint_t numSaEntries
 Number of IKE SA entries. More...
 
IkeChildSaEntrychildSa
 Child SA entries. More...
 
uint_t numChildSaEntries
 Number of Child SA entries. More...
 
uint8_t message [IKE_MAX_MSG_SIZE]
 Incoming IKE message. More...
 
size_t messageLen
 Length of the incoming IKE message, in bytes. More...
 
CmacContext cmacContext
 CMAC context. More...
 
HmacContext hmacContext
 HMAC context. More...
 
XcbcMacContext xcbcMacContext
 XCBC-MAC context. More...
 
IkeCookieGenerateCallback cookieGenerateCallback
 Cookie generation callback function. More...
 
IkeCookieVerifyCallback cookieVerifyCallback
 Cookie verification callback function. More...
 
IkeCertVerifyCallback certVerifyCallback
 Certificate verification callback function. More...
 

Detailed Description

IKE context.

Definition at line 1813 of file ike.h.

Field Documentation

◆ certChain

const char_t* certChain

Entity's certificate chain (PEM format)

Definition at line 1836 of file ike.h.

◆ certChainLen

size_t certChainLen

Length of the certificate chain.

Definition at line 1837 of file ike.h.

◆ certType

IkeCertType certType

Certificate type.

Definition at line 1835 of file ike.h.

◆ certVerifyCallback

IkeCertVerifyCallback certVerifyCallback

Certificate verification callback function.

Definition at line 1868 of file ike.h.

◆ childSa

IkeChildSaEntry* childSa

Child SA entries.

Definition at line 1848 of file ike.h.

◆ childSaLifetime

systime_t childSaLifetime

Lifetime of Child SAs.

Definition at line 1824 of file ike.h.

◆ cmacContext

CmacContext cmacContext

CMAC context.

Definition at line 1854 of file ike.h.

◆ cookieGenerateCallback

IkeCookieGenerateCallback cookieGenerateCallback

Cookie generation callback function.

Definition at line 1864 of file ike.h.

◆ cookieVerifyCallback

IkeCookieVerifyCallback cookieVerifyCallback

Cookie verification callback function.

Definition at line 1865 of file ike.h.

◆ dpdPeriod

systime_t dpdPeriod

Dead peer detection period.

Definition at line 1827 of file ike.h.

◆ event

OsEvent event

Event object used to poll the underlying socket.

Definition at line 1817 of file ike.h.

◆ hmacContext

HmacContext hmacContext

HMAC context.

Definition at line 1857 of file ike.h.

◆ id

uint8_t id[IKE_MAX_ID_LEN]

ID.

Definition at line 1831 of file ike.h.

◆ idLen

size_t idLen

Length of the ID, in bytes.

Definition at line 1832 of file ike.h.

◆ idType

IkeIdType idType

ID type.

Definition at line 1830 of file ike.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 1820 of file ike.h.

◆ localIpAddr

IpAddr localIpAddr

Destination IP address of the received IKE message.

Definition at line 1843 of file ike.h.

◆ message

uint8_t message[IKE_MAX_MSG_SIZE]

Incoming IKE message.

Definition at line 1850 of file ike.h.

◆ messageLen

size_t messageLen

Length of the incoming IKE message, in bytes.

Definition at line 1851 of file ike.h.

◆ numChildSaEntries

uint_t numChildSaEntries

Number of Child SA entries.

Definition at line 1849 of file ike.h.

◆ numSaEntries

uint_t numSaEntries

Number of IKE SA entries.

Definition at line 1847 of file ike.h.

◆ password

Password used to decrypt the private key.

Definition at line 1840 of file ike.h.

◆ preferredDhGroupNum

uint16_t preferredDhGroupNum

Preferred Diffie-Hellman group number.

Definition at line 1829 of file ike.h.

◆ privateKey

const char_t* privateKey

Entity's private key (PEM format)

Definition at line 1838 of file ike.h.

◆ privateKeyLen

size_t privateKeyLen

Length of the private key.

Definition at line 1839 of file ike.h.

◆ prngAlgo

const PrngAlgo* prngAlgo

Pseudo-random number generator to be used.

Definition at line 1821 of file ike.h.

◆ prngContext

void* prngContext

Pseudo-random number generator context.

Definition at line 1822 of file ike.h.

◆ psk

uint8_t psk[IKE_MAX_PSK_LEN]

Pre-shared key.

Definition at line 1833 of file ike.h.

◆ pskLen

size_t pskLen

Length of the pre-shared key, in bytes.

Definition at line 1834 of file ike.h.

◆ reauthPeriod

systime_t reauthPeriod

Reauthentication period.

Definition at line 1825 of file ike.h.

◆ remoteIpAddr

IpAddr remoteIpAddr

Source IP address of the received IKE message.

Definition at line 1844 of file ike.h.

◆ remotePort

uint16_t remotePort

Source port of the received IKE message.

Definition at line 1845 of file ike.h.

◆ running

bool_t running

Operational state of IKEv2.

Definition at line 1815 of file ike.h.

◆ sa

IKE SA entries.

Definition at line 1846 of file ike.h.

◆ saLifetime

systime_t saLifetime

Lifetime of IKE SAs.

Definition at line 1823 of file ike.h.

◆ socket

Socket* socket

Underlying UDP socket.

Definition at line 1842 of file ike.h.

◆ stop

bool_t stop

Stop request.

Definition at line 1816 of file ike.h.

◆ taskId

OsTaskId taskId

Task identifier.

Definition at line 1819 of file ike.h.

◆ taskParams

OsTaskParameters taskParams

Task parameters.

Definition at line 1818 of file ike.h.

◆ xcbcMacContext

XcbcMacContext xcbcMacContext

XCBC-MAC context.

Definition at line 1860 of file ike.h.


The documentation for this struct was generated from the following file:
  • cyclone_ipsec/ike/ike.h