2007-02-28 14:04:36 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007 Martin Willi
|
2018-05-23 14:04:50 +00:00
|
|
|
* HSR Hochschule fuer Technik Rapperswil
|
2007-02-28 14:04:36 +00:00
|
|
|
*
|
|
|
|
* 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.
|
2008-03-13 14:14:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup ike_delete ike_delete
|
2012-05-18 07:52:15 +00:00
|
|
|
* @{ @ingroup tasks_v2
|
2007-02-28 14:04:36 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IKE_DELETE_H_
|
|
|
|
#define IKE_DELETE_H_
|
|
|
|
|
|
|
|
typedef struct ike_delete_t ike_delete_t;
|
|
|
|
|
|
|
|
#include <library.h>
|
|
|
|
#include <sa/ike_sa.h>
|
2011-12-19 12:10:29 +00:00
|
|
|
#include <sa/task.h>
|
2007-02-28 14:04:36 +00:00
|
|
|
|
|
|
|
/**
|
2008-03-13 14:14:44 +00:00
|
|
|
* Task of type ike_delete, delete an IKE_SA.
|
2007-02-28 14:04:36 +00:00
|
|
|
*/
|
|
|
|
struct ike_delete_t {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements the task_t interface
|
|
|
|
*/
|
|
|
|
task_t task;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2008-03-13 14:14:44 +00:00
|
|
|
* Create a new ike_delete task.
|
2007-02-28 14:04:36 +00:00
|
|
|
*
|
|
|
|
* @param ike_sa IKE_SA this task works for
|
|
|
|
* @param initiator TRUE if we initiate the delete
|
|
|
|
* @return ike_delete task to handle by the task_manager
|
|
|
|
*/
|
|
|
|
ike_delete_t *ike_delete_create(ike_sa_t *ike_sa, bool initiator);
|
|
|
|
|
2009-03-24 17:43:01 +00:00
|
|
|
#endif /** IKE_DELETE_H_ @}*/
|