diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-12-09 11:25:53 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-12-09 11:25:53 +0100 |
commit | e4e291d49963c41437cfc8d9ad8ccf46e263cbd2 (patch) | |
tree | b14c79ab1aa93d2427b2d35a8424c9089d2ab587 /src/libimcv/imc/imc_state.h | |
parent | 1ab8dff7fa48aa8cbf4755163b1e44e25b93e093 (diff) | |
download | strongswan-e4e291d49963c41437cfc8d9ad8ccf46e263cbd2.tar.bz2 strongswan-e4e291d49963c41437cfc8d9ad8ccf46e263cbd2.tar.xz |
store the long and excl flags in the connection state
Diffstat (limited to 'src/libimcv/imc/imc_state.h')
-rw-r--r-- | src/libimcv/imc/imc_state.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/libimcv/imc/imc_state.h b/src/libimcv/imc/imc_state.h index 73013f8ce..f1b0358c9 100644 --- a/src/libimcv/imc/imc_state.h +++ b/src/libimcv/imc/imc_state.h @@ -33,13 +33,37 @@ typedef struct imc_state_t imc_state_t; struct imc_state_t { /** - * Get the TNCS connection ID attached to the state + * Get the TNCS connection I +D attached to the state * * @return TNCS connection ID of the state */ TNC_ConnectionID (*get_connection_id)(imc_state_t *this); /** + * Checks if long message types are supported for this TNCCS connection + * + * @return TRUE if set, FALSE otherwise + */ + bool (*has_long)(imc_state_t *this); + + /** + * Checks if the exclusive delivery is supported for this TNCCS connection + * + * @return TRUE if set, FALSE otherwise + */ + bool (*has_excl)(imc_state_t *this); + + /** + * Sets the long message types and exclusive flags for this TNCCS connection + * + * @param has_long TNCCS connection supports long message types + * @param has_excl TNCCS connection supports exclusive delivery + * @return TRUE if set, FALSE otherwise + */ + void (*set_flags)(imc_state_t *this, bool has_long, bool has_excl); + + /** * Change the connection state * * @param new_state new connection state |