Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

state.h File Reference

#include "common.h"
#include "session.h"

Go to the source code of this file.

Defines

#define IKEv2_STATE_INIT   0
#define IKEv2_STATE_NOT_CONNECTED   1
#define IKEv2_STATE_CONNECTED   2
#define IKEv2_STATE_FAILED   3

Functions

void DoRState (const struct ikev2_ctx *i2, uint8_t *in, uint8_t **out, uint32_t *olen, struct IKEv2Session *s)
 The responder state machine.
void DoIState (const struct ikev2_ctx *i2, uint8_t *in, uint8_t **out, uint32_t *olen, struct IKEv2Session *s)
 The initiator state machine.


Define Documentation

#define IKEv2_STATE_CONNECTED   2
 

#define IKEv2_STATE_FAILED   3
 

#define IKEv2_STATE_INIT   0
 

#define IKEv2_STATE_NOT_CONNECTED   1
 


Function Documentation

void DoIState const struct ikev2_ctx i2,
uint8_t *  in,
uint8_t **  out,
uint32_t *  olen,
struct IKEv2Session s
 

The initiator state machine.

Parameters:
*i2 IKEv2 context data
*in received packet
**out generated packet to send
*olen out length
*s current IKEv2 session

void DoRState const struct ikev2_ctx i2,
uint8_t *  in,
uint8_t **  out,
uint32_t *  olen,
struct IKEv2Session s
 

The responder state machine.

Parameters:
*i2 IKEv2 context data
*in received packet
**out generated packet to send
*olen out length
*s current IKEv2 session


Project hosted by: SourceForge.net Logo