aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/tnc_imc/tnc_imc.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-12-08 12:38:45 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-12-08 12:38:45 +0100
commit584282d7c9e8a3c67bf9ddbb595308ab0b559dff (patch)
tree8d198b23e3908b1c24e6b0c7db1ffe3205e896a5 /src/libcharon/plugins/tnc_imc/tnc_imc.c
parent115d49a748761394f90c238dc02f2c12a3c63c16 (diff)
downloadstrongswan-584282d7c9e8a3c67bf9ddbb595308ab0b559dff.tar.bz2
strongswan-584282d7c9e8a3c67bf9ddbb595308ab0b559dff.tar.xz
added TNC_IMC_ReceiveMessageLong() and TNC_IMV_ReceiveMessageLong() support
Diffstat (limited to 'src/libcharon/plugins/tnc_imc/tnc_imc.c')
-rw-r--r--src/libcharon/plugins/tnc_imc/tnc_imc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc.c b/src/libcharon/plugins/tnc_imc/tnc_imc.c
index 6bd69dc87..dc326cf4d 100644
--- a/src/libcharon/plugins/tnc_imc/tnc_imc.c
+++ b/src/libcharon/plugins/tnc_imc/tnc_imc.c
@@ -279,15 +279,12 @@ METHOD(imc_t, set_message_types_long, void,
}
METHOD(imc_t, type_supported, bool,
- private_tnc_imc_t *this, TNC_MessageType message_type)
+ private_tnc_imc_t *this, TNC_VendorID msg_vid, TNC_MessageSubtype msg_subtype)
{
- TNC_VendorID msg_vid, vid;
- TNC_MessageSubtype msg_subtype, subtype;
+ TNC_VendorID vid;
+ TNC_MessageSubtype subtype;
int i;
- msg_vid = (message_type >> 8) & TNC_VENDORID_ANY;
- msg_subtype = message_type & TNC_SUBTYPE_ANY;
-
for (i = 0; i < this->type_count; i++)
{
vid = this->supported_vids[i];
@@ -371,6 +368,8 @@ imc_t* tnc_imc_create(char *name, char *path)
}
this->public.receive_message =
dlsym(this->handle, "TNC_IMC_ReceiveMessage");
+ this->public.receive_message_long =
+ dlsym(this->handle, "TNC_IMC_ReceiveMessageLong");
this->public.batch_ending =
dlsym(this->handle, "TNC_IMC_BatchEnding");
this->public.terminate =