Commit Graph

5089 Commits

Author SHA1 Message Date
Tobias Brunner dcc1ad6a23 Prevent deadlock while shutting down thread pool.
During destruction the main thread locks the mutex in processor_t and
waits on a condvar for threads to have terminated.  Because the mutex
has also to be locked to decrement the thread count the condvar cannot
be signaled before doing that as otherwise the main thread might already
be waiting to join the threads while locking the mutex and thus causing
a deadlock.
2011-06-08 11:44:42 +02:00
Tobias Brunner 876961cf0e Properly print time differences.
time_t is not necessarily of type int.
2011-06-07 17:52:34 +02:00
Tobias Brunner 1b185ea490 Use proper printf specifiers to print u_int64_t and uintptr_t. 2011-06-07 17:30:57 +02:00
Laurent Bigonville cb7a9862c6 Fix compilation with GCC 4.6. 2011-06-07 15:45:18 +02:00
Andreas Steffen 328b377efa explicitly activate use of TNC headers 2011-06-07 12:19:32 +02:00
Martin Willi f34ebc845b Add a closeaction ipsec.conf keyword to configure close action 2011-06-07 12:07:21 +02:00
Andreas Steffen 0eb23d7be2 separated tncif_names from standard TCG TNC header files 2011-06-06 20:36:58 +02:00
Andreas Steffen d8f7f2f004 nearly completed PA-TNC error handling 2011-06-05 23:24:48 +02:00
Andreas Steffen eeef482242 show PB-PA message type/subtype 2011-06-05 15:46:01 +02:00
Andreas Steffen c722ab035c cosmetics 2011-06-05 15:06:55 +02:00
Andreas Steffen 3cfd8393bf enum names for ietf_attr_t 2011-06-05 14:17:47 +02:00
Andreas Steffen a82ff71cd7 map action recommendation codes to PB access recommendation codes 2011-06-05 12:27:20 +02:00
Andreas Steffen 2f7f248f11 added a reference count for PA-TNC attributes 2011-06-03 16:39:27 +02:00
Martin Willi bc20bc1927 Check if colliding task has actually a CHILD, i.e. after a migrate 2011-06-03 10:49:54 +02:00
Martin Willi ff6aab9e85 Fix alignement compiler warning 2011-06-03 10:49:54 +02:00
Andreas Steffen 145a8b04d1 correctly destroy the hosts 2011-06-03 00:43:47 +02:00
Andreas Steffen a8d0bd7465 fixed subnet to string conversion by using ts_to_subnet() 2011-06-03 00:26:39 +02:00
Andreas Steffen abc2443a38 fixed IP range to subnet conversion in ts_to_subnet() 2011-06-03 00:24:16 +02:00
Andreas Steffen ad963975aa streamlined libimcv debug output 2011-06-02 12:19:03 +02:00
Andreas Steffen 6cfc8668c1 set configuration of imv_test with each TNC handshake 2011-06-02 11:37:27 +02:00
Andreas Steffen e1e6656094 configure IMC/IMV pairs as libimcv plugins 2011-06-02 10:24:31 +02:00
Andreas Steffen e01b02e17d configure libimcv debug output via strongswan.conf 2011-06-02 09:59:46 +02:00
Andreas Steffen d4c8fe3cb6 initialize libstrongswan in dynamic stand-alone libimcv-based libraries 2011-06-01 20:59:25 +02:00
Andreas Steffen 633720f99a started error handling of PA-TNC protocol 2011-06-01 16:33:44 +02:00
Andreas Steffen 7c4d4d209d make IMC/IMV pairs independent of libcharon 2011-06-01 16:33:44 +02:00
Martin Willi ea90042233 Provide recursive mutex' just in case the PKCS#11 library requires it 2011-06-01 12:03:44 +02:00
Martin Willi 3c0630a797 libfast does not depend on zlib directly, clearsilver can be built without compression support 2011-06-01 12:03:44 +02:00
Andreas Steffen 3a47530e96 moved imc_test/imv_test plugins to libimcv 2011-06-01 07:55:07 +02:00
Martin Willi c140757221 Fix initialization of NM plugin 2011-05-31 18:12:56 +02:00
Andreas Steffen 7e432eff6b renamed tls_reader|writer to bio_* and moved to libstrongswan 2011-05-31 15:46:51 +02:00
Andreas Steffen 0851585bb8 removed unused variables 2011-05-31 15:46:51 +02:00
Andreas Steffen 7e82d26dd8 fixed type 2011-05-31 15:46:51 +02:00
Andreas Steffen 54b622c30b corrected debug class to IMV 2011-05-30 23:08:16 +02:00
Andreas Steffen 510f37abd4 implemented the RFC 5792 PA-TNC protocol and an example IMC/IMV pair 2011-05-30 21:30:09 +02:00
Andreas Steffen 425a3a26a5 changed VENDOR_ID to PEN 2011-05-29 10:48:55 +02:00
Andreas Steffen a9f0feecb3 use singular form 2011-05-29 10:48:09 +02:00
Andreas Steffen 3fa44f4e1a created Private Enterprise Number (PEN) list 2011-05-29 10:42:46 +02:00
Andreas Steffen eea597a5ee added TNC_Connection_State_names 2011-05-29 10:40:17 +02:00
Andreas Steffen deed58393d raw TLS debug output 2011-05-29 10:36:41 +02:00
Andreas Steffen c76b8a21fe logging initial EAP Identifier in EAP Identity Request 2011-05-29 10:30:02 +02:00
Andreas Steffen a6cb374136 added DBG_IMC and DBG_IMV debug options 2011-05-29 10:25:13 +02:00
Tobias Brunner 608657519a ipsec: Wait longer for starter to quit before killing it.
As starter waits up to 10 seconds for either daemon to quit, killing it
already after 5 seconds is too early.
2011-05-26 12:43:01 +02:00
Tobias Brunner ae9d5e7ce1 Option to enable duplicheck plugin fixed. 2011-05-26 12:37:41 +02:00
Martin Willi 35c9347921 Use better packing of leak-detective memory_header to align pointers 2011-05-25 19:56:47 +02:00
Martin Willi eb4f4551a1 Summarize leaks with identical backtraces, as we do it with memusage 2011-05-25 19:56:43 +02:00
Martin Willi 0eef27074d Don't use a strongswan.conf in checksum_builder, disables checksumming 2011-05-25 11:06:25 +02:00
Martin Willi f147b731e0 Force link of checksum builder against libhydra/libcharon 2011-05-25 10:40:30 +02:00
Martin Willi 3dbc5dfeda Checksum plugins only for components we actually build 2011-05-25 10:33:14 +02:00
Martin Willi 628f285778 Fix strict aliasing warning 2011-05-25 10:09:16 +02:00
Tobias Brunner ee0fb2ab81 Keep count of remaining elements to enumerate in hashtable_t.
This improves performance during enumeration as not all buckets have to be
checked.
2011-05-24 19:23:45 +02:00