Commit Graph
78 Commits
Author SHA1 Message Date
Andreas Steffen 3e56352815 determine underlying IF-T transport protocol 2013-02-12 12:25:39 +01:00
Tobias Brunner 0080daa787 Fix deadlock in IMC/IMV managers
Since reserve_id() might be called from e.g. notify_connection_change()
using a write lock will not work as this can't be acquired while holding
the read lock.

Also, with the previous code it was possible that two IMCs/IMVs added by
two threads at the same time would get the same ID assigned.
2012-12-18 15:59:29 +01:00
Tobias Brunner 6a8eeba540 Properly select IMC/IMV according to given primary ID in reserve_id() 2012-12-18 15:59:29 +01:00
Andreas Steffen 92e75e4535 optionally skip dlclose() of IMCs/IMVs in order to track memory leaks 2012-12-09 19:35:23 +01:00
Martin Willi c543616315 Add locking to IMC/IMV managers to add/remove IMC/IMVs on the fly 2012-11-30 15:49:23 +01:00
Martin Willi 016d343a50 Add wrappers to IMC/IMV managers loading IMC/IMVs from function pointers 2012-11-30 15:48:20 +01:00
Martin Willi be18ee8123 If adding an IMC/IMV fails, terminate() it only if it has been initialize()d 2012-11-30 15:48:13 +01:00
Martin Willi fd885fd390 Add an IMV constructor taking a set of custom TNC_IMV functions 2012-11-30 15:48:02 +01:00
Martin Willi f1f500c724 Add an IMC constructor taking a set of custom TNC_IMC functions 2012-11-30 15:47:59 +01:00
Martin Willi cd74959465 Clean up memory management when loading IMC/IMVs from files 2012-11-30 15:47:34 +01:00
Tobias Brunner f05b427265 Moved debug.[ch] to utils folder 2012-10-24 16:00:51 +02:00
Tobias Brunner 12642a6831 Moved data structures to new collections subfolder 2012-10-24 16:00:49 +02:00
Andreas Steffen 5f451f2d6a IMCs and IMVs might depend on X.509 certificates or trusted public keys 2012-06-28 17:55:02 +02:00
Andreas Steffen 5f540fd39c missing references to daemon.h 2012-05-05 11:36:38 +02:00
Tobias Brunner 42500c274a Use name from initialization to access settings in libcharon.
Also fixes several whitespace errors.
2012-05-03 13:57:04 +02:00
Andreas Steffen ac3331e1cd added IMC/IMV support for send_message_long() and reserve_additional_id() functions 2011-12-09 17:11:31 +01:00
Andreas Steffen d6c892169c added TNC_TNCC_GetAttribute() and TNC_TNCC_SetAttribute() functions 2011-12-08 14:52:08 +01:00
Andreas Steffen 584282d7c9 added TNC_IMC_ReceiveMessageLong() and TNC_IMV_ReceiveMessageLong() support 2011-12-08 12:38:45 +01:00
Andreas Steffen 194b23bb6e return with TNC_RESULT_SUCCESS 2011-12-07 17:36:04 +01:00
Andreas Steffen 80ca4e50c9 added TNC_TNCC_ReserveAdditionalIMCID() function 2011-12-07 17:31:49 +01:00
Andreas Steffen dcb5c5906e added TNC_TNCC_SendMessageLong() and TNC_TNCS_SendMessageLong() functions 2011-12-07 11:44:29 +01:00
Andreas Steffen f77505b8c8 corrected function name in error message 2011-12-07 00:12:15 +01:00
Andreas Steffen 10b9d52400 added TNC_TNCC_ReportMessageTypesLong() and TNC_TNCS_ReportMessageTypesLong() messages 2011-12-06 23:39:01 +01:00
Andreas Steffen db183a92b7 upgraded IF-IMC/IMV inteface definitions to version 1.3 2011-12-04 12:48:30 +01:00
Sansar Choinyambuu a66719d7d6 Reversed unintended commit 2011-11-28 21:17:16 +01:00
Sansar Choinyambuu 824ace105a Changed the static function name in openssl_rsa_public_key object
Removed unused chunk variable from PTS verify_quote_signature function
2011-11-28 21:17:16 +01:00
Sansar Choinyambuu 103218b912 Reversed unintended commit 2011-11-28 14:39:53 +01:00
Sansar Choinyambuu 71741df078 Changed the static function name in openssl_rsa_public_key object
Removed unused chunk variable from PTS verify_quote_signature function
2011-11-28 14:39:53 +01:00
Tobias Brunner 48e87e12ab Revert "fixed integrity tests of plugins using libtls or libtnccs"
This reverts commit b597ac4a4c (not
completely).
2011-11-08 18:35:11 +01:00
Andreas Steffen b597ac4a4c fixed integrity tests of plugins using libtls or libtnccs 2011-11-02 06:42:08 +01:00
Andreas Steffen 5d36af6936 share some code between IMC and IMV managers 2011-10-25 09:45:35 +02:00
Andreas Steffen 61f7036e69 removed unneeded includes 2011-10-25 09:45:35 +02:00
Andreas Steffen f0a8bf47f7 refactored TNC framework 2011-10-25 01:10:16 +02:00
Andreas Steffen f0fa002fd1 moved imc_manager to libtnccs 2011-10-25 01:10:16 +02:00
Andreas Steffen 328b377efa explicitly activate use of TNC headers 2011-06-07 12:19:32 +02:00
Andreas Steffen 7c4d4d209d make IMC/IMV pairs independent of libcharon 2011-06-01 16:33:44 +02:00
Andreas Steffen a9f0feecb3 use singular form 2011-05-29 10:48:09 +02:00
Andreas Steffen e8a512f800 protection against insane IMCs and IMVs 2011-05-11 19:34:01 +02:00
Andreas Steffen 261d5f22db terminate imc/imv that couldn't be initialized properly 2011-05-10 07:03:50 +02:00
Andreas Steffen 375ac27609 cosmetics 2011-05-09 16:46:08 +02:00
Andreas Steffen ff30e06bf0 lock the set_message_types() method 2011-05-07 17:51:53 +02:00
Andreas Steffen 083fe967e5 adapted debug output 2011-04-28 13:28:40 +02:00
Andreas Steffen 7d39f3e1b9 log unsupported IMC_IMV message types 2011-04-28 02:27:08 +02:00
Andreas Steffen e7f21e33b1 list registered TNCCS message types 2011-04-28 01:35:45 +02:00
Martin Willi 5b0bcfb1fc Revert alloc_str changes
This reverts commit fdead26ffe.
This reverts commit 3e2419ebe3.
This reverts commit 17ce69b47a.
2011-04-21 13:35:31 +02:00
Martin Willi 3e2419ebe3 Use thread save settings alloc_str function where appropriate 2011-04-21 10:48:16 +02:00
Martin Willi c55818ebb0 Added a (not yet implemented) plugin_t method to reload plugin configuration 2011-04-15 10:07:13 +02:00
Martin Willi 787b5884aa Added a get_name() function to plugin_t, create_plugin_enumerator enumerates over plugin_t 2011-04-15 10:07:12 +02:00
Martin Willi 6ccb23e80b Whitespace cleanups in tnc code 2011-02-08 11:03:10 +01:00
Martin Willi 6cc11bccd1 Fixed various doxygen errors in tnc plugins 2011-02-08 10:57:40 +01:00