additional getters for ipcomp and UDP encap

This commit is contained in:
Martin Willi
2008-10-24 09:51:48 +00:00
parent 6e10aeadab
commit 82d20c0588
3 changed files with 37 additions and 7 deletions
+14
View File
@@ -154,6 +154,20 @@ struct child_sa_t {
*/
ipsec_mode_t (*get_mode)(child_sa_t *this);
/**
* Get the used IPComp algorithm.
*
* @return IPComp compression algorithm.
*/
ipcomp_transform_t (*get_ipcomp)(child_sa_t *this);
/**
* Check if this CHILD_SA uses UDP encapsulation.
*
* @return TRUE if SA encapsulates ESP packets
*/
bool (*has_encap)(child_sa_t *this);
/**
* Get the IPsec encryption key.
*