encoding: Add getter for IKE SPIs in IKEv1 DELETE payloads

This commit is contained in:
Tobias Brunner
2015-03-23 17:23:57 +01:00
parent 2872f77829
commit 8a0cc3f362
2 changed files with 25 additions and 0 deletions
@@ -1,4 +1,5 @@
/*
* Copyright (C) 2015 Tobias Brunner
* Copyright (C) 2005-2006 Martin Willi
* Copyright (C) 2005 Jan Hutter
* Hochschule fuer Technik Rapperswil
@@ -60,6 +61,15 @@ struct delete_payload_t {
*/
void (*set_ike_spi)(delete_payload_t *this, u_int64_t spi_i, u_int64_t spi_r);
/**
* Get the IKE SPIs from an IKEv1 delete.
*
* @param spi_i initiator SPI
* @param spi_r responder SPI
* @return TRUE if SPIs extracted successfully
*/
bool (*get_ike_spi)(delete_payload_t *this, u_int64_t *spi_i, u_int64_t *spi_r);
/**
* Get an enumerator over the SPIs in network order.
*