strongswan.git
7 years agoRemove executable flag from source files.
Tobias Brunner [Fri, 18 May 2012 07:52:52 +0000 (09:52 +0200)]
Remove executable flag from source files.

7 years agoUse separate Doxygen groups for IKEv1 and IKEv2 entities (authenticators, tasks etc.).
Tobias Brunner [Fri, 18 May 2012 07:52:15 +0000 (09:52 +0200)]
Use separate Doxygen groups for IKEv1 and IKEv2 entities (authenticators, tasks etc.).

7 years agoRemoved superfluous @param in bus.h.
Tobias Brunner [Fri, 18 May 2012 06:37:32 +0000 (08:37 +0200)]
Removed superfluous @param in bus.h.

7 years agowhitelist: Make sure listed IDs are null-terminated.
Tobias Brunner [Fri, 18 May 2012 07:27:24 +0000 (09:27 +0200)]
whitelist: Make sure listed IDs are null-terminated.

7 years agopkcs8: Initialize salt and IV properly.
Tobias Brunner [Fri, 18 May 2012 06:36:37 +0000 (08:36 +0200)]
pkcs8: Initialize salt and IV properly.

7 years agoList registered nonce generators in statusall output.
Tobias Brunner [Wed, 16 May 2012 16:26:36 +0000 (18:26 +0200)]
List registered nonce generators in statusall output.

7 years agoAdd enumerator for registered nonce generators.
Tobias Brunner [Wed, 16 May 2012 16:25:25 +0000 (18:25 +0200)]
Add enumerator for registered nonce generators.

7 years agoUse nonce_gen instead of rng to generate nonces
Adrian-Ken Rueegsegger [Wed, 2 May 2012 15:49:41 +0000 (17:49 +0200)]
Use nonce_gen instead of rng to generate nonces

Replace usage of rng plugin with nonce generator to create nonces in
IKE_INIT, CHILD_CREATE and QUICK_MODE tasks and the IKEv1 phase 1 helper.

7 years agoAdd create_nonce_gen function to keymat interface
Adrian-Ken Rueegsegger [Wed, 2 May 2012 15:49:35 +0000 (17:49 +0200)]
Add create_nonce_gen function to keymat interface

This function returns a nonce generator object.

7 years agoAdd nonce plugin implementation
Adrian-Ken Rueegsegger [Wed, 2 May 2012 15:49:32 +0000 (17:49 +0200)]
Add nonce plugin implementation

This nonce generator uses an RNG to generate nonces. The RNG quality is
currently set to RNG_WEAK which is the same value used in IKE init.

The plugin is enabled and thus built by default.

7 years agoAdd nonce generator interface
Adrian-Ken Rueegsegger [Wed, 2 May 2012 15:49:26 +0000 (17:49 +0200)]
Add nonce generator interface

Nonce generators (nonce_gen_t) can be used to get or allocate nonces.

Users can request nonce generators from the crypto factory while nonce
plugins register/remove themselves to/from the crypto factory.

7 years agomake IKEv1 DPD timeout configurable in charon
Andreas Steffen [Thu, 17 May 2012 17:49:22 +0000 (19:49 +0200)]
make IKEv1 DPD timeout configurable in charon

7 years agoMoved IKEv1 DPD processing to task manager, fix sequence issues
Martin Willi [Tue, 15 May 2012 14:10:47 +0000 (16:10 +0200)]
Moved IKEv1 DPD processing to task manager, fix sequence issues

7 years agoConsider inbound ESP as a sign of liveness for DPD timeout
Martin Willi [Tue, 15 May 2012 12:58:28 +0000 (14:58 +0200)]
Consider inbound ESP as a sign of liveness for DPD timeout

7 years agoSchedule a DPD timeout job that enforces the IKE message timeout policy
Martin Willi [Tue, 15 May 2012 12:44:30 +0000 (14:44 +0200)]
Schedule a DPD timeout job that enforces the IKE message timeout policy

7 years agoSend unanswered follow up R_U_THERE messages with the same DPD seq
Martin Willi [Tue, 15 May 2012 12:27:16 +0000 (14:27 +0200)]
Send unanswered follow up R_U_THERE messages with the same DPD seq

7 years agoDo not send IKEv1 DPD retransmit, but create a new INFORMATIONAL
Martin Willi [Tue, 15 May 2012 12:26:09 +0000 (14:26 +0200)]
Do not send IKEv1 DPD retransmit, but create a new INFORMATIONAL

7 years agoFree name of application using libcharon.
Tobias Brunner [Tue, 15 May 2012 09:37:07 +0000 (11:37 +0200)]
Free name of application using libcharon.

7 years agostarter: Initialize thread pool so kernel events are consumed.
Tobias Brunner [Tue, 15 May 2012 06:55:19 +0000 (08:55 +0200)]
starter: Initialize thread pool so kernel events are consumed.

7 years agoExplicitly cast from strict_t to crl_policy_t
Martin Willi [Mon, 14 May 2012 12:11:54 +0000 (14:11 +0200)]
Explicitly cast from strict_t to crl_policy_t

7 years agoUse correct integrity_algorithm_t enum type in bench_signer()
Martin Willi [Mon, 14 May 2012 12:11:22 +0000 (14:11 +0200)]
Use correct integrity_algorithm_t enum type in bench_signer()

7 years agoMake function pointer defined with METHOD() macro non-const
Martin Willi [Mon, 14 May 2012 12:10:00 +0000 (14:10 +0200)]
Make function pointer defined with METHOD() macro non-const

clang complains about it being const, and the object code
generated from gcc is the same.

7 years agoRemove unused return value of INIT(), making clang happy
Martin Willi [Mon, 14 May 2012 12:07:00 +0000 (14:07 +0200)]
Remove unused return value of INIT(), making clang happy

7 years agoRegister load-tester faked kernel interface before other kernel interfaces
Martin Willi [Mon, 14 May 2012 11:21:09 +0000 (13:21 +0200)]
Register load-tester faked kernel interface before other kernel interfaces

7 years agoLoad tester can enforce a local IP to use
Martin Willi [Mon, 14 May 2012 08:03:05 +0000 (10:03 +0200)]
Load tester can enforce a local IP to use

7 years agoAdd plugin features support to load-tester plugin
Martin Willi [Mon, 14 May 2012 07:52:53 +0000 (09:52 +0200)]
Add plugin features support to load-tester plugin

7 years agocheck for ESP in UDP encapsulation
Andreas Steffen [Sat, 12 May 2012 10:15:58 +0000 (12:15 +0200)]
check for ESP in UDP encapsulation

7 years agoupgraded ikev2 scenarios to 5.0.0
Andreas Steffen [Fri, 11 May 2012 09:00:32 +0000 (11:00 +0200)]
upgraded ikev2 scenarios to 5.0.0

7 years agosuppress leak detective output
Andreas Steffen [Fri, 11 May 2012 03:48:11 +0000 (05:48 +0200)]
suppress leak detective output

7 years agoFix route reinstallation if preferred source IP is not on outgoing interface.
Tobias Brunner [Mon, 7 May 2012 09:24:07 +0000 (11:24 +0200)]
Fix route reinstallation if preferred source IP is not on outgoing interface.

7 years agoFixed #include in tnc-ifmap plugin.
Tobias Brunner [Mon, 7 May 2012 09:22:51 +0000 (11:22 +0200)]
Fixed #include in tnc-ifmap plugin.

7 years agoupgraded ha scenario for 5.0.0
Andreas Steffen [Sun, 6 May 2012 13:03:26 +0000 (15:03 +0200)]
upgraded ha scenario for 5.0.0

7 years agoadded gcrypt-ikev1 pluto interoperability tests
Andreas Steffen [Sun, 6 May 2012 07:51:19 +0000 (09:51 +0200)]
added gcrypt-ikev1 pluto interoperability tests

7 years agoupgraded gcrypt-ikev1 scenarios to 5.0.0
Andreas Steffen [Sun, 6 May 2012 07:25:31 +0000 (09:25 +0200)]
upgraded gcrypt-ikev1 scenarios to 5.0.0

7 years agoupgraded gcrypt-ikev2 scenarios to 5.0.0
Andreas Steffen [Sun, 6 May 2012 07:23:09 +0000 (09:23 +0200)]
upgraded gcrypt-ikev2 scenarios to 5.0.0

7 years agoallow private algorithms
Andreas Steffen [Sat, 5 May 2012 21:25:51 +0000 (23:25 +0200)]
allow private algorithms

7 years agofixed mapping of IKEv1 algorithms
Andreas Steffen [Sat, 5 May 2012 21:25:34 +0000 (23:25 +0200)]
fixed mapping of IKEv1 algorithms

7 years agovendor ID cosmetics
Andreas Steffen [Sat, 5 May 2012 16:13:05 +0000 (18:13 +0200)]
vendor ID cosmetics

7 years agoinserted space
Andreas Steffen [Sat, 5 May 2012 13:51:24 +0000 (15:51 +0200)]
inserted space

7 years agoupgraded pfkey scenarios to 5.0.0
Andreas Steffen [Sat, 5 May 2012 09:55:48 +0000 (11:55 +0200)]
upgraded pfkey scenarios to 5.0.0

7 years agomissing references to daemon.h
Andreas Steffen [Sat, 5 May 2012 09:36:38 +0000 (11:36 +0200)]
missing references to daemon.h

7 years agoremoved leftover ipsec.conf parameters
Andreas Steffen [Sat, 5 May 2012 07:20:42 +0000 (09:20 +0200)]
removed leftover ipsec.conf parameters

7 years agoupgraded sql scenarios to 5.0.0
Andreas Steffen [Sat, 5 May 2012 07:16:15 +0000 (09:16 +0200)]
upgraded sql scenarios to 5.0.0

7 years agofixed feature dependencies for CERT_TRUSTED_PUBKEY
Andreas Steffen [Sat, 5 May 2012 06:54:36 +0000 (08:54 +0200)]
fixed feature dependencies for CERT_TRUSTED_PUBKEY

7 years agoupgrade p2pnat scenarios to 5.0.0
Andreas Steffen [Fri, 4 May 2012 12:56:09 +0000 (14:56 +0200)]
upgrade p2pnat scenarios to 5.0.0

7 years agoupdated af-alg scenarios to 5.0.0
Andreas Steffen [Fri, 4 May 2012 10:15:30 +0000 (12:15 +0200)]
updated af-alg scenarios to 5.0.0

7 years agoadded openssl-ikev1 pluto interoperability tests
Andreas Steffen [Fri, 4 May 2012 10:12:39 +0000 (12:12 +0200)]
added openssl-ikev1 pluto interoperability tests

7 years agodeleted unneeded openssl-ikev1 files
Andreas Steffen [Fri, 4 May 2012 10:11:57 +0000 (12:11 +0200)]
deleted unneeded openssl-ikev1 files

7 years agoupgraded openssl-ikev1 scenarios to 5.0.0
Andreas Steffen [Fri, 4 May 2012 10:06:45 +0000 (12:06 +0200)]
upgraded openssl-ikev1 scenarios to 5.0.0

7 years agoupgraded openssl-ikev2 scenarios to 5.0.0
Andreas Steffen [Fri, 4 May 2012 10:03:05 +0000 (12:03 +0200)]
upgraded openssl-ikev2 scenarios to 5.0.0

7 years agoupgraded tnc scenarios to 5.0.0
Andreas Steffen [Fri, 4 May 2012 09:57:31 +0000 (11:57 +0200)]
upgraded tnc scenarios to 5.0.0

7 years agocharon is now an IKE daemon
Andreas Steffen [Thu, 3 May 2012 18:48:01 +0000 (20:48 +0200)]
charon is now an IKE daemon

7 years agoIt seems charon-nm has to be linked against libnm-util.
Tobias Brunner [Thu, 3 May 2012 13:16:08 +0000 (15:16 +0200)]
It seems charon-nm has to be linked against libnm-util.

That's at least the case for NetworkManager 0.9.4 in Ubuntu 12.04.

7 years agoUse proper getter for settings in sender and receiver.
Tobias Brunner [Tue, 24 Apr 2012 13:06:31 +0000 (15:06 +0200)]
Use proper getter for settings in sender and receiver.

7 years agoUse name from initialization to access settings in libcharon.
Tobias Brunner [Tue, 24 Apr 2012 12:10:06 +0000 (14:10 +0200)]
Use name from initialization to access settings in libcharon.

Also fixes several whitespace errors.

7 years agoStore the name of the binary using libcharon to enable specific settings.
Tobias Brunner [Tue, 24 Apr 2012 09:07:56 +0000 (11:07 +0200)]
Store the name of the binary using libcharon to enable specific settings.

7 years agoChanged default path to charon for NM frontend.
Tobias Brunner [Thu, 19 Apr 2012 15:23:48 +0000 (17:23 +0200)]
Changed default path to charon for NM frontend.

7 years agoIntegrate nm plugin directly in charon-nm.
Tobias Brunner [Thu, 19 Apr 2012 14:40:21 +0000 (16:40 +0200)]
Integrate nm plugin directly in charon-nm.

7 years agoAdded a small libcharon wrapper intended to directly host the nm plugin.
Tobias Brunner [Thu, 19 Apr 2012 14:35:44 +0000 (16:35 +0200)]
Added a small libcharon wrapper intended to directly host the nm plugin.

For this reason it reclaims the --enable-nm configure option.

7 years agoProvide plugin list from charon, not internally in libcharon.
Tobias Brunner [Thu, 19 Apr 2012 11:32:51 +0000 (13:32 +0200)]
Provide plugin list from charon, not internally in libcharon.

7 years agodisplay (soft) same as (not loaded)
Andreas Steffen [Thu, 3 May 2012 09:54:56 +0000 (11:54 +0200)]
display (soft) same as (not loaded)

7 years agocharon is now an IKE daemon
Andreas Steffen [Thu, 3 May 2012 09:49:30 +0000 (11:49 +0200)]
charon is now an IKE daemon

7 years agoIf we load new features from a plugin, restart loading from first plugin
Martin Willi [Thu, 3 May 2012 09:08:09 +0000 (11:08 +0200)]
If we load new features from a plugin, restart loading from first plugin

7 years agostroke plugin sdepends on building CERT_ANY certificates
Martin Willi [Thu, 3 May 2012 09:07:21 +0000 (11:07 +0200)]
stroke plugin sdepends on building CERT_ANY certificates

7 years agoBuilding CERT_ANY through PEM requires either a CERT_X509 or a CERT_PGP builder
Martin Willi [Thu, 3 May 2012 07:39:35 +0000 (09:39 +0200)]
Building CERT_ANY through PEM requires either a CERT_X509 or a CERT_PGP builder

7 years agoUpdated Android.mk for 5.0 (no IKEv1 support yet).
Tobias Brunner [Thu, 3 May 2012 07:37:35 +0000 (09:37 +0200)]
Updated Android.mk for 5.0 (no IKEv1 support yet).

7 years agoupdated tnc-pdp plugin for 5.0.0
Andreas Steffen [Wed, 2 May 2012 20:53:45 +0000 (22:53 +0200)]
updated tnc-pdp plugin for 5.0.0

7 years agoupdated testing.conf for 5.0.0
Andreas Steffen [Wed, 2 May 2012 20:53:11 +0000 (22:53 +0200)]
updated testing.conf for 5.0.0

7 years agotwo new options for 5.0.0 UML testing
Andreas Steffen [Wed, 2 May 2012 19:13:14 +0000 (21:13 +0200)]
two new options for 5.0.0 UML testing

7 years agoNEWS about route reinstallation added.
Tobias Brunner [Wed, 1 Feb 2012 15:02:33 +0000 (16:02 +0100)]
NEWS about route reinstallation added.

7 years agoRoute reinstallation in kernel_ipsec_t implementations is not needed anymore.
Tobias Brunner [Tue, 20 Dec 2011 14:01:06 +0000 (15:01 +0100)]
Route reinstallation in kernel_ipsec_t implementations is not needed anymore.

7 years agoReinstall routes in kernel-netlink plugin, if interfaces get reactivated or IPs reappear.
Tobias Brunner [Tue, 20 Dec 2011 13:59:21 +0000 (14:59 +0100)]
Reinstall routes in kernel-netlink plugin, if interfaces get reactivated or IPs reappear.

7 years agoKeep track of installed source routes in kernel-netlink plugin.
Tobias Brunner [Tue, 20 Dec 2011 13:30:10 +0000 (14:30 +0100)]
Keep track of installed source routes in kernel-netlink plugin.

7 years agoNEWS about bus_t refactorings added.
Tobias Brunner [Wed, 1 Feb 2012 15:23:47 +0000 (16:23 +0100)]
NEWS about bus_t refactorings added.

7 years agoLoggers specify what log messages they want to receive during registration.
Tobias Brunner [Mon, 23 Jan 2012 12:51:21 +0000 (13:51 +0100)]
Loggers specify what log messages they want to receive during registration.

This also allows us to generate the log message only once for all
loggers that need it (avoids calls to custom printf specifier callbacks).

To update the log levels loggers can simply be registered again.

7 years agoEnsure that multi-line log messages are not torn apart.
Tobias Brunner [Mon, 23 Jan 2012 12:38:48 +0000 (13:38 +0100)]
Ensure that multi-line log messages are not torn apart.

7 years agoAdded recursive read_lock support to our own implementation of rwlock_t.
Tobias Brunner [Sat, 21 Jan 2012 15:11:28 +0000 (16:11 +0100)]
Added recursive read_lock support to our own implementation of rwlock_t.

7 years agoUse a separate interface for loggers.
Tobias Brunner [Sat, 21 Jan 2012 13:47:13 +0000 (14:47 +0100)]
Use a separate interface for loggers.

The new interface does not allow loggers to unregister themselves from
the bus.  This allows us to use a rwlock_t for them.

The latter also means that loggers can now be called concurrently by
multiple threads.

7 years agoUse a separate list and mutex for loggers.
Tobias Brunner [Thu, 29 Dec 2011 18:13:08 +0000 (19:13 +0100)]
Use a separate list and mutex for loggers.

This avoids deadlocks caused by extensive listener_t implementations
which might want to acquire a lock which is currently held by another
thread wanting to log messages. Since the latter requires that thread
to acquire the same lock the initial thread currently holds this
previously resulted in a deadlock.

With this change logging messages does not require threads to acquire
the main lock in bus_t and thus avoids the deadlock.

7 years agoFixed return value of controller_t functions if callback returns FALSE.
Tobias Brunner [Thu, 22 Dec 2011 12:54:30 +0000 (13:54 +0100)]
Fixed return value of controller_t functions if callback returns FALSE.

7 years agoUse wrapped semaphore in callback_job_t.
Tobias Brunner [Thu, 22 Dec 2011 09:59:47 +0000 (10:59 +0100)]
Use wrapped semaphore in callback_job_t.

7 years agoRemoved remaining parts of controller_t.listen() implementation.
Tobias Brunner [Thu, 22 Dec 2011 09:47:44 +0000 (10:47 +0100)]
Removed remaining parts of controller_t.listen() implementation.

7 years agoRemove obsolete bus_t.listen() method.
Tobias Brunner [Wed, 21 Dec 2011 17:27:10 +0000 (18:27 +0100)]
Remove obsolete bus_t.listen() method.

7 years agoImplement wait_for_listener in controller_t with semaphores.
Tobias Brunner [Wed, 21 Dec 2011 17:23:56 +0000 (18:23 +0100)]
Implement wait_for_listener in controller_t with semaphores.

This eliminates even the slightest chance of a deadlock.

7 years agoAdded a wrapper class around POSIX semaphores.
Tobias Brunner [Wed, 21 Dec 2011 17:22:23 +0000 (18:22 +0100)]
Added a wrapper class around POSIX semaphores.

7 years agoImplement bus_t.listen() directly in controller_t (the only user).
Tobias Brunner [Wed, 21 Dec 2011 16:15:33 +0000 (17:15 +0100)]
Implement bus_t.listen() directly in controller_t (the only user).

This will hopefully allow us to later simplify bus_t.

7 years agoAdd plugin features support to stroke plugin
Martin Willi [Thu, 1 Mar 2012 16:07:08 +0000 (17:07 +0100)]
Add plugin features support to stroke plugin

7 years agoCertificate decoding soft-depends on public key decoding of specific types
Martin Willi [Wed, 29 Feb 2012 15:09:11 +0000 (16:09 +0100)]
Certificate decoding soft-depends on public key decoding of specific types

7 years agoPEM loading plugin features depend on the same feature, they are helpers only
Martin Willi [Wed, 29 Feb 2012 15:08:07 +0000 (16:08 +0100)]
PEM loading plugin features depend on the same feature, they are helpers only

7 years agoDon't depend on a feature that has a dependency to the same feauture during unload
Martin Willi [Wed, 29 Feb 2012 15:07:16 +0000 (16:07 +0100)]
Don't depend on a feature that has a dependency to the same feauture during unload

7 years agoMerge branch 'ikev1'
Martin Willi [Wed, 2 May 2012 09:12:31 +0000 (11:12 +0200)]
Merge branch 'ikev1'

Conflicts:
configure.in
man/ipsec.conf.5.in
src/libcharon/encoding/generator.c
src/libcharon/encoding/payloads/notify_payload.c
src/libcharon/encoding/payloads/notify_payload.h
src/libcharon/encoding/payloads/payload.c
src/libcharon/network/receiver.c
src/libcharon/sa/authenticator.c
src/libcharon/sa/authenticator.h
src/libcharon/sa/ikev2/tasks/ike_init.c
src/libcharon/sa/task_manager.c
src/libstrongswan/credentials/auth_cfg.c

7 years agoAdded a dedicated sender flush method, delay sender destruction until users gone
Martin Willi [Wed, 2 May 2012 07:03:23 +0000 (09:03 +0200)]
Added a dedicated sender flush method, delay sender destruction until users gone

7 years agoDocumented strongswan.conf options for radattr plugin.
Tobias Brunner [Tue, 1 May 2012 11:32:43 +0000 (13:32 +0200)]
Documented strongswan.conf options for radattr plugin.

7 years agoadd AUTH_RULE_SUBJECT_CERT for raw public keys 4.6.3
Andreas Steffen [Mon, 30 Apr 2012 11:40:48 +0000 (13:40 +0200)]
add AUTH_RULE_SUBJECT_CERT for raw public keys

7 years agoadded missing whitespace
Andreas Steffen [Mon, 30 Apr 2012 09:42:09 +0000 (11:42 +0200)]
added missing whitespace

7 years agoProperly initialize optional subject in PEM builder.
Tobias Brunner [Mon, 30 Apr 2012 08:48:57 +0000 (10:48 +0200)]
Properly initialize optional subject in PEM builder.

7 years agoTypo fixed.
Tobias Brunner [Mon, 30 Apr 2012 08:47:42 +0000 (10:47 +0200)]
Typo fixed.

7 years agoversion bump to 4.6.3
Andreas Steffen [Mon, 30 Apr 2012 07:48:21 +0000 (09:48 +0200)]
version bump to 4.6.3

7 years agooutput validity of raw public key if available
Andreas Steffen [Mon, 30 Apr 2012 07:47:34 +0000 (09:47 +0200)]
output validity of raw public key if available

7 years agoikev2/net2net-pubkey scenario does not need dnskey plugin
Andreas Steffen [Mon, 30 Apr 2012 05:02:08 +0000 (07:02 +0200)]
ikev2/net2net-pubkey scenario does not need dnskey plugin