added IMC and IMV IDs as arguments to send_message()
[strongswan.git] / src / libcharon / plugins / tnc_imc / tnc_imc_bind_function.c
index be6debb..5cc14f1 100644 (file)
@@ -18,6 +18,8 @@
 #include <debug.h>
 #include <daemon.h>
 
+#define TNC_IMVID_ANY  0xffff
+
 /**
  * Called by the IMC to inform a TNCC about the set of message types the IMC
  * is able to receive
@@ -46,12 +48,12 @@ TNC_Result TNC_TNCC_RequestHandshakeRetry(TNC_IMCID imc_id,
  */
 TNC_Result TNC_TNCC_SendMessage(TNC_IMCID imc_id,
                                                                TNC_ConnectionID connection_id,
-                                                               TNC_BufferReference message,
-                                                               TNC_UInt32 message_len,
-                                                               TNC_MessageType message_type)
+                                                               TNC_BufferReference msg,
+                                                               TNC_UInt32 msg_len,
+                                                               TNC_MessageType msg_type)
 {
-       return charon->tnccs->send_message(charon->tnccs, connection_id, message,
-                                                                          message_len, message_type);
+       return charon->tnccs->send_message(charon->tnccs, imc_id, TNC_IMVID_ANY,
+                                                                          connection_id, msg, msg_len, msg_type);
 }
 
 /**