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/plugins/imc_test | |
| 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/plugins/imc_test')
| -rw-r--r-- | src/libimcv/plugins/imc_test/imc_test_state.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/libimcv/plugins/imc_test/imc_test_state.c b/src/libimcv/plugins/imc_test/imc_test_state.c index cc7e18a4d..d0cae883f 100644 --- a/src/libimcv/plugins/imc_test/imc_test_state.c +++ b/src/libimcv/plugins/imc_test/imc_test_state.c @@ -39,6 +39,16 @@ struct private_imc_test_state_t { TNC_ConnectionState state; /** + * Does the TNCCS connection support long message types? + */ + bool has_long; + + /** + * Does the TNCCS connection support exclusive delivery? + */ + bool has_excl; + + /** * Command to transmit to IMV */ char *command; @@ -60,6 +70,25 @@ METHOD(imc_state_t, get_connection_id, TNC_ConnectionID, return this->connection_id; } +METHOD(imc_state_t, has_long, bool, + private_imc_test_state_t *this) +{ + return this->has_long; +} + +METHOD(imc_state_t, has_excl, bool, + private_imc_test_state_t *this) +{ + return this->has_excl; +} + +METHOD(imc_state_t, set_flags, void, + private_imc_test_state_t *this, bool has_long, bool has_excl) +{ + this->has_long = has_long; + this->has_excl = has_excl; +} + METHOD(imc_state_t, change_state, void, private_imc_test_state_t *this, TNC_ConnectionState new_state) { @@ -123,6 +152,9 @@ imc_state_t *imc_test_state_create(TNC_ConnectionID connection_id, .public = { .interface = { .get_connection_id = _get_connection_id, + .has_long = _has_long, + .has_excl = _has_excl, + .set_flags = _set_flags, .change_state = _change_state, .destroy = _destroy, }, |
