#include <session.h>
Data Fields | |
| uint32_t | timestamp |
| last session activity time | |
| IKEv2Session * | next |
| next session entry | |
| int | Type |
| i am initator of responder? | |
| uint64_t | iSPI |
| SPI of initiator. | |
| uint64_t | rSPI |
| SPI of responder. | |
| uint32_t | State |
| current state | |
| uint32_t | MsgID |
| MsgID for next IKEv2 msg to send. | |
| uint32_t | recvMsgID |
| MsgID for next msg received, which is not a response. | |
| uint32_t | Status |
| Status of session. | |
| int | WaitResponse |
| am i waiting for a response? (only for initiator) | |
| uint32_t | respMsgID |
| MsgID for response. | |
| Protocol * | UsedTransforms |
| used algorithms | |
| DH * | dh |
| dh structure for temporary data needed by openssl | |
| uint8_t * | DHKey |
| DH-Key for session. | |
| uint32_t | DHKeyLen |
| Length of DH-Key. | |
| uint32_t | DHCounter |
| INVALID_KE response counter, if 0 initator send EAP-Fail immediatly. | |
| BIGNUM * | Ni |
| Nonce from initiator. | |
| BIGNUM * | Nr |
| Nonce from responder. | |
| uint8_t * | fmsg |
| first send msg, needed for auth | |
| uint32_t | fmlen |
| length of fmsg | |
| uint8_t * | rmsg |
| first received message, needed for verifying auth | |
| uint32_t | rmlen |
| length of rmsg | |
| int | include_integ |
| include integ checksum? | |
| int | expect_integ |
| expect integ checksum in a next messages? | |
| uint8_t * | IDr |
| used in only in initiator, stores IDr from SK{IDr} | |
| int | IDrLen |
| IDr length. | |
| uint8_t * | pwd |
| password (in case of password based auth) | |
| uint16_t | pwdlen |
| length of pwd (in bytes) | |
| int | SK_ready |
| SK_* keys ready? | |
| uint8_t * | SK_d |
| Session key for further key derivation. | |
| uint8_t * | SK_ai |
| Session key for initiator auth algo. | |
| uint8_t * | SK_ar |
| Session key for responder auth algo. | |
| uint8_t * | SK_ei |
| Session key for initiator encr algo. | |
| uint8_t * | SK_er |
| Session key for responder encr algo. | |
| uint8_t * | SK_pi |
| Session key for initiator AUTH generation. | |
| uint8_t * | SK_pr |
| Session key for responder AUTH generation. | |
| char * | fastID |
| EAP ID used for session matching in case of fast rekeying (base64). | |
| uint8_t * | fragdata |
| recent fragments | |
| uint32_t | fdlen |
| length of fragdata | |
| uint32_t | fragment |
| which fragment is next | |
| bool | sendfrag |
| send fragment? | |
| uint8_t * | integkey |
| key for integrity algorithm | |
| uint32_t | iklen |
| length of key | |
| uint32_t | integtype |
| used algorithm for integrity check | |
| uint8_t * | ointegkey |
| last key for integrity algorithm | |
| uint32_t | oiklen |
| length of last key | |
| uint8_t | eapMsgID |
| msg id for current EAP request | |
| uint8_t * | eapKeyData |
| EAP exported keys data. | |
| bool | fFastReconnect |
| fast reconnect? | |
| bool | fDHExchange |
| DH exchange needed? | |
|
|
dh structure for temporary data needed by openssl
|
|
|
INVALID_KE response counter, if 0 initator send EAP-Fail immediatly.
|
|
|
DH-Key for session.
|
|
|
Length of DH-Key.
|
|
|
EAP exported keys data.
|
|
|
msg id for current EAP request
|
|
|
expect integ checksum in a next messages?
|
|
|
EAP ID used for session matching in case of fast rekeying (base64).
|
|
|
DH exchange needed?
|
|
|
length of fragdata
|
|
|
fast reconnect?
|
|
|
length of fmsg
|
|
|
first send msg, needed for auth
|
|
|
recent fragments
|
|
|
which fragment is next
|
|
|
used in only in initiator, stores IDr from SK{IDr}
|
|
|
IDr length.
|
|
|
length of key
|
|
|
include integ checksum?
|
|
|
key for integrity algorithm
|
|
|
used algorithm for integrity check
|
|
|
SPI of initiator.
|
|
|
MsgID for next IKEv2 msg to send.
|
|
|
next session entry
|
|
|
Nonce from initiator.
|
|
|
Nonce from responder.
|
|
|
length of last key
|
|
|
last key for integrity algorithm
|
|
|
password (in case of password based auth)
|
|
|
length of pwd (in bytes)
|
|
|
MsgID for next msg received, which is not a response.
|
|
|
MsgID for response.
|
|
|
length of rmsg
|
|
|
first received message, needed for verifying auth
|
|
|
SPI of responder.
|
|
|
send fragment?
|
|
|
Session key for initiator auth algo.
|
|
|
Session key for responder auth algo.
|
|
|
Session key for further key derivation.
|
|
|
Session key for initiator encr algo.
|
|
|
Session key for responder encr algo.
|
|
|
Session key for initiator AUTH generation.
|
|
|
Session key for responder AUTH generation.
|
|
|
SK_* keys ready?
|
|
|
current state
|
|
|
Status of session.
|
|
|
last session activity time
|
|
|
i am initator of responder?
|
|
|
used algorithms
|
|
|
am i waiting for a response? (only for initiator)
|