Commit Graph
100 Commits
Author SHA1 Message Date
Martin Willi 6b83549d1a list assigned leases using "ipsec leases" 2008-12-10 13:00:02 +00:00
Martin Willi ed2bcd0315 added IKE_SA established timer to "ipsec statusall" 2008-12-10 09:59:35 +00:00
Martin Willi d5d5bc0f16 using rwlock to parallel build credentials 2008-12-09 15:57:51 +00:00
Martin Willi 5e5b2dc105 use thread-safe variant of gmtime 2008-12-09 15:00:30 +00:00
Martin Willi 6144daba9d fixed load-tester shared key lookup 2008-12-09 14:45:56 +00:00
Martin Willi 7023d49ee1 purge auth_info when IKE_SA is established, releases cert memory 2008-12-09 14:34:15 +00:00
Martin Willi a1466a3ec2 limit number of ADDITIONAL_IPV*_ADDR notifies 2008-12-09 14:32:57 +00:00
Martin Willi 2e03196551 list pools and usage in ipsec statusall 2008-12-09 13:24:12 +00:00
Martin Willi adf9965272 extended stroke in-memory pool to use hash-tables
supports online/offline leases
	properly reassign addresses to identities
2008-12-09 13:23:42 +00:00
Martin Willi 20fbc4277e fixed hashtable->get_count() after doubling table size 2008-12-09 11:13:52 +00:00
Martin Willi 15ed045c87 require explicit enabling of load-testing plugin 2008-12-09 09:11:37 +00:00
Martin Willi 5bdc8fc794 generating different initiator identities, configs and certificates on the fly 2008-12-08 19:18:28 +00:00
Martin Willi aa5c5d3fde removed debugging leftovers 2008-12-08 19:15:38 +00:00
Martin Willi 474998099f fixed out-of-tree build of scepclient 2008-12-08 16:00:33 +00:00
Martin Willi df68b54f4e basic x509 certificate generation 2008-12-08 15:29:36 +00:00
Martin Willi 9eb85cffe1 whitelisted another pthread_setspecific implementation 2008-12-08 15:27:24 +00:00
Martin Willi d21b3549f7 accept NULL values in hashtable enumerator 2008-12-05 12:34:17 +00:00
Martin Willi 19e0010f51 hashtable enumerator enumerates over both, key and values 2008-12-05 10:01:52 +00:00
Martin Willi a6d7a6107c added actual ikev2bis draft 2008-12-05 09:41:20 +00:00
Martin Willi 876d5c63a3 pass identity to release_address(), allows providers to do a lookup by id 2008-12-05 09:40:50 +00:00
Martin Willi 7710a286ca fixed copy-paste bug (double-free) 2008-12-04 10:10:37 +00:00
Martin Willi d0eee69822 reset pointer for a clean destruction 2008-12-04 10:09:21 +00:00
Martin Willi 3bfd0fe3f2 handling peer_match with higher priority tan ike_match to select correct config if IPs are equal 2008-12-04 10:00:03 +00:00
Martin Willi 0442562516 leak whitelisting of OPENSSL_config() 2008-12-04 09:23:53 +00:00
Martin Willi 70691c31b2 fixed double free of host in selector2ts 2008-12-03 09:15:29 +00:00
Martin Willi efd0fe21e4 ref_get()/ref_put() use atomic gcc operations if supported, thanks to Thomas Jarosch for the patch 2008-12-02 12:14:32 +00:00
Martin Willi 6905f794bb added a --disable-threads ./configure option for pluto 2008-12-02 09:01:57 +00:00
Martin Willi 2671a8fcee use DBG_ANY to set all loglevels 2008-12-02 08:52:46 +00:00
Martin Willi f464d75070 added time.h include for struct tm 2008-12-02 08:46:15 +00:00
Martin Willi 394eb35b0c some task queueing improvements:
- do not pass CHILD_SAs to task constructor, might not
	  be valid anymore during execution (late lookup)
	- use sub-tasks to delete CHILD/IKE_SA after rekeying,
	  as we want to execute the delete before additional
	  queued tasks
2008-12-01 18:38:28 +00:00
Martin Willi 405cc1d924 schedule rekeying when activating passive IKE_SAs 2008-11-28 16:19:19 +00:00
Martin Willi dd6b7af3f7 do not delete passive IKE_SAs 2008-11-28 15:44:25 +00:00
Martin Willi c610f42430 added a PASSIVE IKE_SA state to manage it externally 2008-11-28 10:49:14 +00:00
Martin Willi ddef455219 pass SKd to derive_ike_keys() to have a more interoperable API 2008-11-28 09:51:44 +00:00
Martin Willi 9a1263c3c1 fixed a double-unlock bug, showed up when using rwlocks in backend manager 2008-11-28 08:22:55 +00:00
Martin Willi ced41695dc use rwlocks in backend manager to allow simultaneous access 2008-11-27 15:34:17 +00:00
Martin Willi 96eb7b44a0 use a rwlock in attribute manager to allow simultaneous access 2008-11-27 15:22:41 +00:00
Martin Willi c50ad6f613 remove attribute provider in SQL plugin destruction 2008-11-27 14:33:41 +00:00
Martin Willi ac812491aa added an include hack to build starter without gmp.h 2008-11-27 10:20:25 +00:00
Martin Willi 140d0081bf fixed pluto out-of-tree builds 2008-11-27 10:18:38 +00:00
Martin Willi 9413628b87 token enumerator missed the last token if it contains only a single char 2008-11-27 09:21:52 +00:00
Martin Willi d2de674b9a checkin of non-existing IKE_SAs
removed unneeded checkin() return values
2008-11-26 14:32:55 +00:00
Martin Willi 09f407a14f removed private parser function pointers, allows compiler to inline 2008-11-26 10:54:08 +00:00
Martin Willi 98bcdfe2c9 removed private generator function pointers, allows compiler to inline 2008-11-26 10:42:54 +00:00
Martin Willi e2cb07d713 inlined some short chunk functions, showed up in the profiler 2008-11-26 10:08:36 +00:00
Martin Willi 4fd233a73e memxor() tweaks, as it is heavily used in xcbc 2008-11-26 10:06:59 +00:00
Martin Willi f1f09810fb fixed set_message_id() on IKE_SA
added missing bus->message() hook invocation
whitespace cleanups
2008-11-24 13:59:30 +00:00
Martin Willi b09ca74720 set message IDs on IKE_SAs 2008-11-24 12:46:06 +00:00
Martin Willi addfea95df moved the IPV6_IPSEC_POLICY definition to the ipsec plugins, fixes uClibc build 2008-11-24 08:22:05 +00:00
Martin Willi 18e2788fbe added a "load_tester.auth" option: "pubkey" (default) or "psk" 2008-11-23 11:58:41 +00:00
Martin Willi 88d4acd4de proper cancellation of load-testing initiators 2008-11-23 11:17:30 +00:00
Martin Willi a20abb81e9 added a MODP_NULL Diffie Hellman group to avoid calculation overhead in load-testing 2008-11-22 16:14:55 +00:00
Martin Willi 8f45ece098 expecting int sized length arguments to chunk_split, as vararg functions use integers 2008-11-21 08:11:24 +00:00
Martin Willi fc3ef71fa7 fixed lock-profiler help message 2008-11-19 15:37:46 +00:00
Martin Willi 3aaf7908d1 refactored and cleaned up child_sa interface
replaced add/update calls by a install() call
	allocating SPIs always externally
	support installation of non-allocated CHILD_SAs
	some other cleanups
2008-11-19 15:31:27 +00:00
Martin Willi 0d1a57e496 setting default port of own address to have a proper fallback if src addr lookup fails 2008-11-18 10:10:36 +00:00
Martin Willi 32f59c56f1 consider interfaces we do not monitor as up (e.g. lo)
fixes load-testing against 127.0.0.1
2008-11-18 09:52:28 +00:00
Martin Willi 49653b6bc3 separated updown listener to its own class
caching interface names to properly remove rules if interface has changed
2008-11-17 09:29:27 +00:00
Martin Willi 21bf86f740 using aligned buffers for netlink 2008-11-14 14:23:11 +00:00
Martin Willi 32ec3c1a8b fallback to reauthentication if peer does not support CHILD_SA rekeying 2008-11-14 14:05:47 +00:00
Martin Willi dad8eceea3 fall back to reauthentication if IKE rekeying fails with NO_ADDITIONAL_SAS 2008-11-14 13:58:16 +00:00
Martin Willi 8d50c19833 also use correct encap parameter in PF_KEY 2008-11-14 13:15:26 +00:00
Martin Willi fd2ebf0cf9 fixed encap enabling in xfrm (using new encap state, not the old one) 2008-11-14 13:12:07 +00:00
Martin Willi fb6c8591a3 do not use a route if outgoing interface is down
other cleanups
2008-11-14 13:04:22 +00:00
Martin Willi a65e1c5c3a rta->rta_len is NOT the payload data length, use RTA_PAYLOAD(rta) instead! 2008-11-14 10:30:26 +00:00
Martin Willi f5812086f8 do not use public interface for functions which are local anyway 2008-11-14 09:38:49 +00:00
Martin Willi 65c907cd71 reset IKE_SA on bus during child_sa destruction 2008-11-14 08:38:53 +00:00
Martin Willi bbbe605fe3 updated API doc for socket.h 2008-11-13 07:48:27 +00:00
Martin Willi 8120943583 ported socket enumerator to raw-socket.c
some cleanups in socket.c
2008-11-13 07:15:45 +00:00
Martin Willi ce42db0921 BEET mode might want forwarding policies 2008-11-12 16:47:19 +00:00
Martin Willi e09481fb91 removed some obsolete includes 2008-11-12 16:10:34 +00:00
Martin Willi faf9569fdb moved ike_initiator flag to IKE_SAs condition bitfield 2008-11-12 16:07:17 +00:00
Martin Willi b8cbb6451c ported some hard-to-merge cherries back to trunk :-/
shame, svn, shame: this was ways to complicated
	we should consider a switch to git...
2008-11-12 15:09:24 +00:00
Martin Willi 9fa5c75f48 fixing keylength bug at the right place:
we usually don't touch output parameters if operations fails
2008-11-12 08:27:48 +00:00
Martin Willi 479f295049 fixed compiler warnings issued by:
gcc 4.3
	curl.h gcc type-checking
	glibc with enabled FORTIFY_SOURCE checking
2008-11-11 18:37:19 +00:00
Martin Willi 3d2dbebd70 #defing out compress algs to avoid compiler warning 2008-11-11 18:35:10 +00:00
Martin Willi d94cadd69a updated method signature of add_policy 2008-11-11 18:33:48 +00:00
Martin Willi 4a537c9011 fixed compilation of medcli plugin 2008-11-11 15:20:25 +00:00
Martin Willi b252024c3e added missing include for ULONG_MAX 2008-11-11 15:19:13 +00:00
Martin Willi 73937bd838 added some NEWS for 4.2.9 2008-11-11 12:52:55 +00:00
Martin Willi 4252938811 dynamic logging configuration through strongswan.conf
fallback to existing ipsec.conf/stroke loglevel configuration
2008-11-11 10:52:37 +00:00
Martin Willi dbb24102d4 fixed compiler warning 2008-11-11 10:29:31 +00:00
Martin Willi c198fc5548 whitelisting localtime_r 2008-11-10 16:44:27 +00:00
Martin Willi a9f081e5ad make load_tester more strict to use it along stroke 2008-11-10 16:43:15 +00:00
Martin Willi f821bfb2b3 fixed leak in host_create_from_string("%any") 2008-11-10 16:42:05 +00:00
Martin Willi ae42288a81 fixed some minor issues found when using -DFORTIFY_SOURCE=2 2008-11-10 15:45:19 +00:00
Martin Willi e9a0d3a339 iterations = 0 for infinite iterations 2008-11-10 10:10:51 +00:00
Martin Willi 6c3f40f9a0 added PEM version of keys 2008-11-10 10:09:44 +00:00
Martin Willi c9ef4cee46 settings section enumeration
printf style key lookup
2008-11-07 15:08:53 +00:00
Martin Willi 89d05ab5fb fixed copy/paste error 2008-11-07 14:48:54 +00:00
Martin Willi a70df08c9b added delete_after_established option 2008-11-06 14:07:46 +00:00
Martin Willi ebf0e20ae7 fixed leak
fixed build if !HAVE_BACKTRACE
2008-11-06 14:05:58 +00:00
Martin Willi e76078e877 use read-write locks in crypto factory for parallelization 2008-11-05 16:21:57 +00:00
Martin Willi 27ed987ef7 wrapped all pthread_rwlock_t in profilable rwlock_t 2008-11-05 16:12:54 +00:00
Martin Willi c1be64eaff wrapped rwlock with profiling support 2008-11-05 15:51:57 +00:00
Martin Willi 0214012508 threshhold and ./configure option for lock profiler 2008-11-05 14:36:57 +00:00
Martin Willi ac29400e34 added missing includes 2008-11-05 14:22:58 +00:00
Martin Willi f7237cf37a separated backtrace functionality from leak_detective, used in
leak_detective
	mutex profiling
	signal handler
2008-11-05 13:58:19 +00:00
Martin Willi 2abc66b977 proper cleanup of openssl locking code 2008-11-05 12:37:37 +00:00
Martin Willi 465fe85ee1 fixed sender destruction order 2008-11-05 12:24:36 +00:00