_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+1]
 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 1937 of file ike.h.

Field Documentation

◆ certChain

const char_t* certChain

Entity's certificate chain (PEM format)

Definition at line 1960 of file ike.h.

◆ certChainLen

size_t certChainLen

Length of the certificate chain.

Definition at line 1961 of file ike.h.

◆ certType

IkeCertType certType

Certificate type.

Definition at line 1959 of file ike.h.

◆ certVerifyCallback

IkeCertVerifyCallback certVerifyCallback

Certificate verification callback function.

Definition at line 1992 of file ike.h.

◆ childSa

IkeChildSaEntry* childSa

Child SA entries.

Definition at line 1972 of file ike.h.

◆ childSaLifetime

systime_t childSaLifetime

Lifetime of Child SAs.

Definition at line 1948 of file ike.h.

◆ cmacContext

CmacContext cmacContext

CMAC context.

Definition at line 1978 of file ike.h.

◆ cookieGenerateCallback

IkeCookieGenerateCallback cookieGenerateCallback

Cookie generation callback function.

Definition at line 1988 of file ike.h.

◆ cookieVerifyCallback

IkeCookieVerifyCallback cookieVerifyCallback

Cookie verification callback function.

Definition at line 1989 of file ike.h.

◆ dpdPeriod

systime_t dpdPeriod

Dead peer detection period.

Definition at line 1951 of file ike.h.

◆ event

OsEvent event

Event object used to poll the underlying socket.

Definition at line 1941 of file ike.h.

◆ hmacContext

HmacContext hmacContext

HMAC context.

Definition at line 1981 of file ike.h.

◆ id

uint8_t id[IKE_MAX_ID_LEN]

ID.

Definition at line 1955 of file ike.h.

◆ idLen

size_t idLen

Length of the ID, in bytes.

Definition at line 1956 of file ike.h.

◆ idType

IkeIdType idType

ID type.

Definition at line 1954 of file ike.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 1944 of file ike.h.

◆ localIpAddr

IpAddr localIpAddr

Destination IP address of the received IKE message.

Definition at line 1967 of file ike.h.

◆ message

uint8_t message[IKE_MAX_MSG_SIZE]

Incoming IKE message.

Definition at line 1974 of file ike.h.

◆ messageLen

size_t messageLen

Length of the incoming IKE message, in bytes.

Definition at line 1975 of file ike.h.

◆ numChildSaEntries

uint_t numChildSaEntries

Number of Child SA entries.

Definition at line 1973 of file ike.h.

◆ numSaEntries

uint_t numSaEntries

Number of IKE SA entries.

Definition at line 1971 of file ike.h.

◆ password

Password used to decrypt the private key.

Definition at line 1964 of file ike.h.

◆ preferredDhGroupNum

uint16_t preferredDhGroupNum

Preferred Diffie-Hellman group number.

Definition at line 1953 of file ike.h.

◆ privateKey

const char_t* privateKey

Entity's private key (PEM format)

Definition at line 1962 of file ike.h.

◆ privateKeyLen

size_t privateKeyLen

Length of the private key.

Definition at line 1963 of file ike.h.

◆ prngAlgo

const PrngAlgo* prngAlgo

Pseudo-random number generator to be used.

Definition at line 1945 of file ike.h.

◆ prngContext

void* prngContext

Pseudo-random number generator context.

Definition at line 1946 of file ike.h.

◆ psk

uint8_t psk[IKE_MAX_PSK_LEN]

Pre-shared key.

Definition at line 1957 of file ike.h.

◆ pskLen

size_t pskLen

Length of the pre-shared key, in bytes.

Definition at line 1958 of file ike.h.

◆ reauthPeriod

systime_t reauthPeriod

Reauthentication period.

Definition at line 1949 of file ike.h.

◆ remoteIpAddr

IpAddr remoteIpAddr

Source IP address of the received IKE message.

Definition at line 1968 of file ike.h.

◆ remotePort

uint16_t remotePort

Source port of the received IKE message.

Definition at line 1969 of file ike.h.

◆ running

bool_t running

Operational state of IKEv2.

Definition at line 1939 of file ike.h.

◆ sa

IKE SA entries.

Definition at line 1970 of file ike.h.

◆ saLifetime

systime_t saLifetime

Lifetime of IKE SAs.

Definition at line 1947 of file ike.h.

◆ socket

Socket* socket

Underlying UDP socket.

Definition at line 1966 of file ike.h.

◆ stop

bool_t stop

Stop request.

Definition at line 1940 of file ike.h.

◆ taskId

OsTaskId taskId

Task identifier.

Definition at line 1943 of file ike.h.

◆ taskParams

OsTaskParameters taskParams

Task parameters.

Definition at line 1942 of file ike.h.

◆ xcbcMacContext

XcbcMacContext xcbcMacContext

XCBC-MAC context.

Definition at line 1984 of file ike.h.


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