65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
/**
|
|
* @file ike_sa_established.h
|
|
*
|
|
* @brief Interface of ike_sa_established_t.
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2005 Jan Hutter, Martin Willi
|
|
* Hochschule fuer Technik Rapperswil
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
* for more details.
|
|
*/
|
|
|
|
#ifndef IKE_SA_ESTABLISHED_H_
|
|
#define IKE_SA_ESTABLISHED_H_
|
|
|
|
#include <sa/states/state.h>
|
|
#include <sa/ike_sa.h>
|
|
|
|
typedef struct ike_sa_established_t ike_sa_established_t;
|
|
|
|
/**
|
|
* @brief This class represents an the state of an established
|
|
* IKE_SA.
|
|
*
|
|
* @b Constructors:
|
|
* - ike_sa_established_create()
|
|
*
|
|
* @todo Implement handling of CREATE_CHILD_SA requests
|
|
*
|
|
* @todo Implement initialization of CREATE_CHILD_SA requests
|
|
*
|
|
* @todo Implement handling of any other message
|
|
*
|
|
* @ingroup states
|
|
*/
|
|
struct ike_sa_established_t {
|
|
/**
|
|
* methods of the state_t interface
|
|
*/
|
|
state_t state_interface;
|
|
|
|
};
|
|
|
|
/**
|
|
* @brief Constructor of class ike_sa_established_t
|
|
*
|
|
* @param ike_sa assigned ike_sa
|
|
* @return created ike_sa_established_t object
|
|
*
|
|
* @ingroup states
|
|
*/
|
|
ike_sa_established_t *ike_sa_established_create(protected_ike_sa_t *ike_sa);
|
|
|
|
#endif /*IKE_SA_ESTABLISHED_H_*/
|