ike-sa-manager: Add method to change the initiator SPI of an IKE_SA

This commit is contained in:
Tobias Brunner
2017-09-04 11:16:00 +02:00
parent bd371590ab
commit eaedcf8c00
2 changed files with 99 additions and 4 deletions
+13 -2
View File
@@ -1,8 +1,8 @@
/*
* Copyright (C) 2008-2015 Tobias Brunner
* Copyright (C) 2008-2017 Tobias Brunner
* Copyright (C) 2005-2008 Martin Willi
* Copyright (C) 2005 Jan Hutter
* Hochschule fuer Technik Rapperswil
* HSR 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
@@ -108,6 +108,17 @@ struct ike_sa_manager_t {
ike_sa_t* (*checkout_by_config) (ike_sa_manager_t* this,
peer_cfg_t *peer_cfg);
/**
* Reset initiator SPI.
*
* Allocate a new initiator SPI for the given IKE_SA in state IKE_CONNECTING
* and update internal data.
*
* @param ike_sa IKE_SA to update
* @return TRUE if SPI successfully changed
*/
bool (*new_initiator_spi)(ike_sa_manager_t* this, ike_sa_t *ike_sa);
/**
* Check for duplicates of the given IKE_SA.
*