Add an option to delete any established IKE_SA if RADIUS server is not responding

This commit is contained in:
Martin Willi
2013-03-14 15:42:30 +01:00
parent 49960f021d
commit 1ba1cd0c9b
4 changed files with 67 additions and 7 deletions
@@ -27,6 +27,7 @@
#include <plugins/plugin.h>
#include <radius_client.h>
#include <daemon.h>
typedef struct eap_radius_plugin_t eap_radius_plugin_t;
@@ -51,4 +52,14 @@ struct eap_radius_plugin_t {
*/
radius_client_t *eap_radius_create_client();
/**
* Handle a RADIUS request timeout.
*
* If an IKE_SA is given, it gets deleted (unless the policy says to delete
* any established IKE_SA).
*
* @param id associated IKE_SA where timeout happened, or NULL
*/
void eap_radius_handle_timeout(ike_sa_id_t *id);
#endif /** EAP_RADIUS_PLUGIN_H_ @}*/