Tobias Brunner
629fd2f4f6
Finally removed deprecated iterator_t.
2011-07-06 09:43:46 +02:00
Tobias Brunner
203497d80e
Removed unneeded and confusing insert_after method from linked_list_t.
2011-07-06 09:43:46 +02:00
Tobias Brunner
47daa0e6fe
Replaced more complex iterator usages.
2011-07-06 09:43:45 +02:00
Tobias Brunner
67405ce808
Added a function to reset the enumerator of a linked list.
2011-07-06 09:43:45 +02:00
Tobias Brunner
4f9c691adb
Replaced pkcs7_t.create_certificate_iterator with enumerator.
...
The method is currently not used.
2011-07-06 09:43:45 +02:00
Tobias Brunner
e26304348c
Replaced simple iterator usages.
2011-07-06 09:43:45 +02:00
Tobias Brunner
28623fc538
"this" removed from comments.
2011-07-06 09:43:45 +02:00
Tobias Brunner
0b6ff2a9fe
Added a replace function to linked_list_t.
2011-07-06 09:43:45 +02:00
Tobias Brunner
fbf014b0c1
Added an insert_after and insert_before function to linked_list_t.
2011-07-06 09:43:45 +02:00
Tobias Brunner
178760012c
Migrated linked_list_t to INIT/METHOD macros.
2011-07-06 09:43:45 +02:00
Tobias Brunner
60d62b9e5c
Don't install the libraries directly in lib/.
...
Instead use a subdirectory (prefix/lib/ipsec by default). Also moved the
plugins from libexec to a subdirectory of that dir.
2011-07-05 14:42:14 +02:00
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
Andreas Steffen
abc2443a38
fixed IP range to subnet conversion in ts_to_subnet()
2011-06-03 00:24:16 +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
Andreas Steffen
7e432eff6b
renamed tls_reader|writer to bio_* and moved to libstrongswan
2011-05-31 15:46:51 +02:00
Andreas Steffen
7e82d26dd8
fixed type
2011-05-31 15:46:51 +02:00
Andreas Steffen
a6cb374136
added DBG_IMC and DBG_IMV debug options
2011-05-29 10:25:13 +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
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
Tobias Brunner
8af0177189
Replaced linked_list_t usage in hashtable_t with custom list implementation.
...
With this change inserting elements into a hashtable_t object is now
nearly as fast as inserting them into a linked_list_t object, whereas
before it was up to seven times slower. Additionally, the memory
footprint of a hashtable is now significantly smaller. The lookup
performance is also nearly doubled.
2011-05-24 19:23:45 +02:00
Martin Willi
d45b242b60
Fix memwipe() of leading unaligned bytes
2011-05-24 11:49:20 +02:00
Martin Willi
513701f41b
Fix some warnings triggered by gcc 4.6 -Wunused-but-set-variable
2011-05-19 15:47:40 +02:00
Tobias Brunner
92abe2bd68
Update working thread count without allocation.
2011-05-16 18:28:03 +02:00
Tobias Brunner
21692169b9
Make sure working thread count is correctly updated
2011-05-16 15:24:16 +02:00
Martin Willi
14bf2f689d
Use CRITICAL job priority class for long running dispatcher jobs
2011-05-16 15:24:15 +02:00
Martin Willi
1c8f58adb9
Introduce a highest priority job for critical thread services
2011-05-16 15:24:15 +02:00
Martin Willi
c6089e252d
Added a callback_job constructor supporting custom priorities
2011-05-16 15:24:15 +02:00
Martin Willi
877fdcf0b8
Count number of threads active in each class, and reserve threads only if none active
2011-05-16 15:24:14 +02:00
Martin Willi
68f56418cd
Reserve threads for job priority classes based on strongswan.conf options
2011-05-16 15:24:13 +02:00
Martin Willi
2959ea6f84
Added job priority enum names
2011-05-16 15:24:13 +02:00
Martin Willi
c73d4f53f5
Processor job scheduling respects job priority classes
2011-05-16 15:24:13 +02:00
Martin Willi
f77203bbfb
Introduce priority classes for jobs
2011-05-16 15:24:12 +02:00
Martin Willi
fce3b5c3ba
Added a leak detective method to report current memory usage with backtraces
2011-05-16 15:22:21 +02:00
Martin Willi
f37e8252a3
Make leak detective public
2011-05-16 15:22:21 +02:00
Martin Willi
42e0f26e53
Migrated leak_detective to INIT/METHOD macros
2011-05-16 15:22:21 +02:00
Martin Willi
61a141d01c
Added a frame enumerator to backtrace_t
2011-05-16 15:22:21 +02:00
Martin Willi
c238e8ea86
Added an equals function to backtrace_t
2011-05-16 15:22:21 +02:00
Martin Willi
79edee7422
Migrated backtrace_t to METHOD macro
2011-05-16 15:22:21 +02:00
Tobias Brunner
0e080d9b64
Don't compile login() in openssl_rsa_private_key_t if ENGINE support is disabled in OpenSSL.
2011-05-13 13:11:11 +02:00
Tobias Brunner
38a93a3cd9
fetcher.c added to Android.mk.
2011-05-13 13:09:38 +02:00
Tobias Brunner
70f918ec1d
chunk_clear not clear_chunk.
2011-05-10 15:40:46 +02:00
Martin Willi
f7812f6492
Wipe memory after using key material (incomplete, to be continued)
2011-05-09 14:36:15 +02:00
Martin Willi
7dc48bab1b
Use memwipe() in chunk_clear()
2011-05-09 14:36:14 +02:00
Martin Willi
ed678b52e2
Added a memwipe() function to safely overwrite sensitive memory
2011-05-09 14:36:14 +02:00
Andreas Steffen
51f259a82d
id of non-registered threads defaults to 0
2011-05-06 06:22:19 +02:00
Martin Willi
e7643c92d3
Migrated scheduler_t to INIT/METHOD macros
2011-05-05 11:14:51 +02:00