diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2015-03-22 01:07:31 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2015-03-23 22:25:43 +0100 |
commit | 7b4a96b2f7df63bddf179378c32a7b1c1998333b (patch) | |
tree | d09f05c17f8e79b44e93a15fade0832b0d637ac4 /src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h | |
parent | c6aed8aa21e639ea54eb0605bc2639815757ea82 (diff) | |
download | strongswan-7b4a96b2f7df63bddf179378c32a7b1c1998333b.tar.bz2 strongswan-7b4a96b2f7df63bddf179378c32a7b1c1998333b.tar.xz |
Implemented PB-TNC mutual half-duplex protocol
Diffstat (limited to 'src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h')
-rw-r--r-- | src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h b/src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h index 1e6da8798..45df32fc7 100644 --- a/src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h +++ b/src/libtnccs/plugins/tnccs_20/tnccs_20_handler.h @@ -54,8 +54,10 @@ struct tnccs_20_handler_t { /** * Put the IMCs or IMVs into the handshake state + * + * @param mutual TRUE if PB-TNC mutual mode is already established */ - void (*begin_handshake)(tnccs_20_handler_t *this); + void (*begin_handshake)(tnccs_20_handler_t *this, bool mutual); /** * Indicates if IMCs or IMVs are allowed to send PA-TNC messages @@ -72,6 +74,13 @@ struct tnccs_20_handler_t { bool (*get_mutual)(tnccs_20_handler_t *this); /** + * Get state of the PB-TNC protocol + * + * @return PB-TNC state + */ + pb_tnc_state_t (*get_state)(tnccs_20_handler_t *this); + + /** * Add a PB-PA message to the handler's message queue * * @param msg PB-PA message to be added |