strongswan.git
10 years agoPEM encoding for GMP RSA public and private keys
Andreas Steffen [Sun, 4 Apr 2010 17:11:18 +0000 (19:11 +0200)]
PEM encoding for GMP RSA public and private keys

10 years agofixed short option name
Andreas Steffen [Sun, 4 Apr 2010 08:30:08 +0000 (10:30 +0200)]
fixed short option name

10 years agofixed typo
Andreas Steffen [Sun, 4 Apr 2010 08:29:36 +0000 (10:29 +0200)]
fixed typo

10 years agofixed doxygen group
Andreas Steffen [Sat, 3 Apr 2010 19:55:30 +0000 (21:55 +0200)]
fixed doxygen group

10 years agochange #define to PEM_BUILDER_H_
Andreas Steffen [Sat, 3 Apr 2010 19:43:27 +0000 (21:43 +0200)]
change #define to PEM_BUILDER_H_

10 years agoFixed use of stack local variable outside of function scope
Thomas Egerer [Wed, 31 Mar 2010 12:38:09 +0000 (14:38 +0200)]
Fixed use of stack local variable outside of function scope

10 years agoFixed undefined behavior in use of stack variable
Thomas Egerer [Wed, 31 Mar 2010 08:04:00 +0000 (10:04 +0200)]
Fixed undefined behavior in use of stack variable

10 years agoFixed handling of IKE_SAs without a virtual IP in farp plugin
Martin Willi [Tue, 30 Mar 2010 08:24:47 +0000 (10:24 +0200)]
Fixed handling of IKE_SAs without a virtual IP in farp plugin

10 years agofixed pluto crash caused by expired leftcert and rightca=%same
Andreas Steffen [Mon, 29 Mar 2010 15:44:37 +0000 (17:44 +0200)]
fixed pluto crash caused by expired leftcert and rightca=%same

10 years agocompile dhcp and farp plugins in UMLs
Andreas Steffen [Sun, 28 Mar 2010 20:40:20 +0000 (22:40 +0200)]
compile dhcp and farp plugins in UMLs

10 years agomoved attr-sql plugin to libhydra in pool scenarios
Andreas Steffen [Sun, 28 Mar 2010 20:33:30 +0000 (22:33 +0200)]
moved attr-sql plugin to libhydra in pool scenarios

10 years agoAccept messages with a "sufficient" payload if other payloads (such as V) follow
Martin Willi [Fri, 26 Mar 2010 15:25:04 +0000 (16:25 +0100)]
Accept messages with a "sufficient" payload if other payloads (such as V) follow

10 years agoRevert "Use the same formatting as in the Makefiles of the other plugins. Makes refac...
Tobias Brunner [Fri, 26 Mar 2010 09:47:09 +0000 (10:47 +0100)]
Revert "Use the same formatting as in the Makefiles of the other plugins. Makes refactorings easier."

This reverts commit e91b116a622bbfb20cd66268ca4cb91d620984ad. Missed to
notice commit 89bf11d204cb934ea9109aa077c8514515d538f6.

10 years agoUse the same formatting as in the Makefiles of the other plugins. Makes refactorings...
Tobias Brunner [Fri, 26 Mar 2010 09:40:14 +0000 (10:40 +0100)]
Use the same formatting as in the Makefiles of the other plugins. Makes refactorings easier.

10 years agoRespect line with in Makefile.am's, other cosmetics
Martin Willi [Thu, 25 Mar 2010 13:54:56 +0000 (14:54 +0100)]
Respect line with in Makefile.am's, other cosmetics

10 years agoAdded NEWS about the farp plugin
Martin Willi [Thu, 25 Mar 2010 13:47:23 +0000 (14:47 +0100)]
Added NEWS about the farp plugin

10 years agoAdded libhydra include to farp plugin
Martin Willi [Thu, 25 Mar 2010 13:41:51 +0000 (14:41 +0100)]
Added libhydra include to farp plugin

10 years agoImplemented ARP sniffing and spoofing functionality
Martin Willi [Fri, 19 Mar 2010 15:56:21 +0000 (16:56 +0100)]
Implemented ARP sniffing and spoofing functionality

10 years agoUse message hook to catch virtual IP, as it is not yet set in ike_updown
Martin Willi [Fri, 19 Mar 2010 15:54:21 +0000 (16:54 +0100)]
Use message hook to catch virtual IP, as it is not yet set in ike_updown

10 years agoAdded locking to farp listener
Martin Willi [Fri, 19 Mar 2010 12:49:37 +0000 (13:49 +0100)]
Added locking to farp listener

10 years agoAdded a listener to the farp plugin that keeps track of active virtual IPs
Martin Willi [Fri, 19 Mar 2010 12:29:28 +0000 (13:29 +0100)]
Added a listener to the farp plugin that keeps track of active virtual IPs

10 years agoAdded a farp plugin stop to spoof ARP requests
Martin Willi [Fri, 19 Mar 2010 11:08:41 +0000 (11:08 +0000)]
Added a farp plugin stop to spoof ARP requests

10 years agoAdded NEWS for dhcp plugin
Martin Willi [Thu, 25 Mar 2010 13:39:10 +0000 (14:39 +0100)]
Added NEWS for dhcp plugin

10 years agoMigrated dhcp plugin to moved attribute manager
Martin Willi [Thu, 25 Mar 2010 13:33:05 +0000 (14:33 +0100)]
Migrated dhcp plugin to moved attribute manager

10 years agoInclude configuration payloads for DNS/WINS server received via DHCP
Martin Willi [Wed, 24 Mar 2010 14:28:14 +0000 (15:28 +0100)]
Include configuration payloads for DNS/WINS server received via DHCP

10 years agoSend DHCP RELEASE on virtual IP release
Martin Willi [Wed, 24 Mar 2010 13:52:11 +0000 (14:52 +0100)]
Send DHCP RELEASE on virtual IP release

10 years agoRelease virtual IPs with the same identity as we acquired it
Martin Willi [Wed, 24 Mar 2010 13:23:56 +0000 (14:23 +0100)]
Release virtual IPs with the same identity as we acquired it

10 years agoAdded identity_lease option to create random or identity based DHCP leases
Martin Willi [Wed, 24 Mar 2010 10:22:54 +0000 (11:22 +0100)]
Added identity_lease option to create random or identity based DHCP leases

10 years agoAdded DHCP request construction, ACK processing
Martin Willi [Wed, 24 Mar 2010 10:08:59 +0000 (11:08 +0100)]
Added DHCP request construction, ACK processing

10 years agoAdded reception of DHCP responses via PACKET socket
Martin Willi [Wed, 24 Mar 2010 09:21:30 +0000 (10:21 +0100)]
Added reception of DHCP responses via PACKET socket

10 years agoDHCP plugin framework, send DHCP Discover upon IP request
Martin Willi [Tue, 23 Mar 2010 16:18:18 +0000 (17:18 +0100)]
DHCP plugin framework, send DHCP Discover upon IP request

10 years agoAdded DHCP plugin stub.
Martin Willi [Mon, 22 Mar 2010 13:39:33 +0000 (14:39 +0100)]
Added DHCP plugin stub.

10 years agoAdded libhydra include to scepclient
Martin Willi [Thu, 25 Mar 2010 10:24:58 +0000 (11:24 +0100)]
Added libhydra include to scepclient

10 years agoLink libhydra to checksum_builder so the hydra object is defined.
Tobias Brunner [Wed, 24 Mar 2010 16:46:56 +0000 (17:46 +0100)]
Link libhydra to checksum_builder so the hydra object is defined.

10 years agoChanged all usages of lib->attributes to hydra->attributes.
Tobias Brunner [Wed, 24 Mar 2010 16:46:29 +0000 (17:46 +0100)]
Changed all usages of lib->attributes to hydra->attributes.

10 years agoAttributes moved from libstrongswan to libhydra.
Tobias Brunner [Wed, 24 Mar 2010 16:40:15 +0000 (17:40 +0100)]
Attributes moved from libstrongswan to libhydra.

The attribute_manager_t instance is now located on the new hydra object
instead of the lib object.

10 years agoFixing Doxygen for libhydra.
Tobias Brunner [Wed, 24 Mar 2010 14:39:02 +0000 (15:39 +0100)]
Fixing Doxygen for libhydra.

10 years agoSegment check added for libhydra.
Tobias Brunner [Wed, 24 Mar 2010 14:25:35 +0000 (15:25 +0100)]
Segment check added for libhydra.

10 years agoFixed deinit for charon --version.
Tobias Brunner [Wed, 24 Mar 2010 14:24:50 +0000 (15:24 +0100)]
Fixed deinit for charon --version.

10 years agoInit/deinit libhydra in charon and pluto.
Tobias Brunner [Wed, 24 Mar 2010 14:22:10 +0000 (15:22 +0100)]
Init/deinit libhydra in charon and pluto.

10 years agoAdding libhydra_init, which is currently only needed for integrity checks.
Tobias Brunner [Wed, 24 Mar 2010 14:18:12 +0000 (15:18 +0100)]
Adding libhydra_init, which is currently only needed for integrity checks.

10 years agoLink pluto and charon to libhydra, fixes monolithic build.
Tobias Brunner [Wed, 24 Mar 2010 10:58:44 +0000 (11:58 +0100)]
Link pluto and charon to libhydra, fixes monolithic build.

10 years agoMoving attr-sql config in strongswan.conf to libhydra.
Tobias Brunner [Wed, 24 Mar 2010 10:26:37 +0000 (11:26 +0100)]
Moving attr-sql config in strongswan.conf to libhydra.

10 years agoFixing integrity-checks after moving the attr-sql plugin and adding libhydra.
Tobias Brunner [Wed, 24 Mar 2010 10:00:11 +0000 (11:00 +0100)]
Fixing integrity-checks after moving the attr-sql plugin and adding libhydra.

10 years agoMoving attr-sql plugin from libstrongswan to libhydra.
Tobias Brunner [Wed, 24 Mar 2010 09:59:31 +0000 (10:59 +0100)]
Moving attr-sql plugin from libstrongswan to libhydra.

10 years agoAdding libhydra stub.
Tobias Brunner [Wed, 24 Mar 2010 09:37:01 +0000 (10:37 +0100)]
Adding libhydra stub.

10 years agoAdapted test_pool to the libstrongswan threading.
Tobias Brunner [Wed, 24 Mar 2010 17:51:52 +0000 (18:51 +0100)]
Adapted test_pool to the libstrongswan threading.

10 years agoLink libcharon to checksum_builder in order to get rid of the fake symbols.
Tobias Brunner [Wed, 24 Mar 2010 16:54:07 +0000 (17:54 +0100)]
Link libcharon to checksum_builder in order to get rid of the fake symbols.

10 years agoFixed some Doxygen warnings.
Tobias Brunner [Wed, 24 Mar 2010 14:45:06 +0000 (15:45 +0100)]
Fixed some Doxygen warnings.

10 years agoFixed compiler warning.
Tobias Brunner [Wed, 24 Mar 2010 11:03:08 +0000 (12:03 +0100)]
Fixed compiler warning.

10 years agoFixed ipsec pool --batch command
Heiko Hund [Tue, 23 Mar 2010 21:30:01 +0000 (22:30 +0100)]
Fixed ipsec pool --batch command

--batch mode has shown to be buggy in very obscure ways in the first real
life tests. For example a batch file

       --del pool1
       --replace pool2 --addresses file1

returned the error "/usr/libexec/ipsec/pool: unrecognized option '--lace'"
which was gone after moving the --del behind --replace. With the patch
from below applied everything works like a charm. From the info on the
man page it seem to be unrelated to this problem, though:

       A program that scans multiple  argument  vectors,  or
       rescans  the same vector more than once, and wants to
       make use of GNU extensions such as '+' and '-' at the
       start   of   optstring,   or  changes  the  value  of
       POSIXLY_CORRECT  between  scans,  must   reinitialize
       getopt()  by  resetting  optind to 0, rather than the
       traditional value of 1.  (Resetting to 0  forces  the
       invocation of an internal initialization routine that
       rechecks POSIXLY_CORRECT and checks  for  GNU  exten-
       sions in optstring.)

Signed-off-by: Heiko Hund <hhund@astaro.com>
10 years agoUse vstr/gmp as shared libraries in the Android build.
Tobias Brunner [Tue, 23 Mar 2010 10:39:58 +0000 (11:39 +0100)]
Use vstr/gmp as shared libraries in the Android build.

10 years agoMissed to include charon's Android.mk in the distribution.
Tobias Brunner [Mon, 22 Mar 2010 10:32:20 +0000 (11:32 +0100)]
Missed to include charon's Android.mk in the distribution.

10 years agoAdded charon to .gitignore
Martin Willi [Fri, 19 Mar 2010 16:17:54 +0000 (17:17 +0100)]
Added charon to .gitignore

10 years agoDo not indent the source file lists in Android.mk files so we can easily compare...
Tobias Brunner [Tue, 16 Mar 2010 16:31:13 +0000 (17:31 +0100)]
Do not indent the source file lists in Android.mk files so we can easily compare them to the lists in the Makefile.am files.

10 years agoUse wildcards to gather plugin source files.
Tobias Brunner [Tue, 16 Mar 2010 16:20:03 +0000 (17:20 +0100)]
Use wildcards to gather plugin source files.

10 years agoAdding support for the build of libcharon (and charon) on Android.
Tobias Brunner [Tue, 16 Mar 2010 16:18:58 +0000 (17:18 +0100)]
Adding support for the build of libcharon (and charon) on Android.

10 years agoDo not link libcharon to libstrongswan.
Tobias Brunner [Tue, 16 Mar 2010 10:06:39 +0000 (11:06 +0100)]
Do not link libcharon to libstrongswan.

Linking to libstrongswan breaks the integrity-tests because libtool
relinks libcharon to libstrongswan on install, thus changing the
checksum.

10 years agoExplicitly link charon to libstrongswan.
Tobias Brunner [Tue, 16 Mar 2010 10:05:01 +0000 (11:05 +0100)]
Explicitly link charon to libstrongswan.

Also fixed the reference to the pthread library.

10 years agoDon't indirectly link dependent libraries.
Gerd von Egidy [Sun, 14 Mar 2010 21:01:17 +0000 (22:01 +0100)]
Don't indirectly link dependent libraries.

The default behaviour for ld allows users to 'indirectly' link to required
objects/libraries through intermediate objects/libraries. While this is
convenient, it can also be dangerous because it makes your program's
dependencies tied to the dependencies of other objects.

Beginning with Fedora 13 this will be changed and you need to explicitly
link all dependent libraries.

More details can be found here:
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

This patch fixes all such cases in strongSwan.

10 years agoMake integrity tests compatible with libcharon.
Tobias Brunner [Fri, 12 Mar 2010 16:20:36 +0000 (17:20 +0100)]
Make integrity tests compatible with libcharon.

This does currently not work because libtool relinks libcharon on
install, thus changing the checksum.

10 years agoReplacing the original charon with a small wrapper around libcharon.
Tobias Brunner [Fri, 12 Mar 2010 16:12:05 +0000 (17:12 +0100)]
Replacing the original charon with a small wrapper around libcharon.

10 years agoConvert charon into libcharon.
Tobias Brunner [Fri, 12 Mar 2010 15:56:54 +0000 (16:56 +0100)]
Convert charon into libcharon.

10 years agoMoving charon to libcharon.
Tobias Brunner [Fri, 12 Mar 2010 15:45:46 +0000 (16:45 +0100)]
Moving charon to libcharon.

10 years agoRemoved strayed code fragment
Martin Willi [Fri, 19 Mar 2010 09:25:12 +0000 (10:25 +0100)]
Removed strayed code fragment

10 years agoipsec pool --batch command
Heiko Hund [Tue, 16 Mar 2010 20:11:52 +0000 (21:11 +0100)]
ipsec pool --batch command

Introduce the --batch command which reads several ipsec pool commands
and their arguments from a file or STDIN. Useful if you need to run
serveral commands atomically from a configuration daemon or likewise.

Signed-off-by: Heiko Hund <hhund@astaro.com>
10 years agoipsec pool error return status
Heiko Hund [Tue, 16 Mar 2010 20:11:51 +0000 (21:11 +0100)]
ipsec pool error return status

Fix the error return status of the ipsec pool command. Also make --del for
attributes succeed if no --server option was given.

Signed-off-by: Heiko Hund <hhund@astaro.com>
10 years agoipsec pool --replace command
Heiko Hund [Tue, 16 Mar 2010 20:11:50 +0000 (21:11 +0100)]
ipsec pool --replace command

Introduce the pool --replace command as an alternative to --add. Also change
the current behavior of allowing duplicate pool names so that, --add with
an existing name fails and --replace removes the existing pool before
adding the new one.

Signed-off-by: Heiko Hund <hhund@astaro.com>
10 years ago--addresses option for ipsec pool --add command
Heiko Hund [Tue, 16 Mar 2010 20:11:49 +0000 (21:11 +0100)]
--addresses option for ipsec pool --add command

Introduce the --addresses option for --add that can be used to add a pool
containing non-contiguous addresses. Additionally it allows to preclaim
certain addresses for certain roadwarrior IDs. See the second chunk of
the patch for a more detailed description.

Signed-off-by: Heiko Hund <hhund@astaro.com>
10 years agoIntroduced ipsec.conf NTLM keyword for NT hashes
Martin Willi [Wed, 17 Mar 2010 17:48:25 +0000 (18:48 +0100)]
Introduced ipsec.conf NTLM keyword for NT hashes

10 years agoEAP-MSCHAPv2 can use stored NT hashes in addition to plaintext passwords
Martin Willi [Wed, 17 Mar 2010 15:58:22 +0000 (16:58 +0100)]
EAP-MSCHAPv2 can use stored NT hashes in addition to plaintext passwords

10 years agolookup exclusion for several arbitrary routing tables
Thomas Egerer [Fri, 12 Mar 2010 08:37:51 +0000 (09:37 +0100)]
lookup exclusion for several arbitrary routing tables

10 years agoFixing a compiler warning when building with -Wextra.
Tobias Brunner [Tue, 16 Mar 2010 11:42:58 +0000 (12:42 +0100)]
Fixing a compiler warning when building with -Wextra.

10 years agosetting the two most significant bits assures an RSA modulus of maximum bit size
Andreas Steffen [Mon, 15 Mar 2010 14:13:26 +0000 (15:13 +0100)]
setting the two most significant bits assures an RSA modulus of maximum bit size

10 years agowe don't accept a serial number with leading zeroes
Andreas Steffen [Sun, 14 Mar 2010 18:41:40 +0000 (19:41 +0100)]
we don't accept a serial number with leading zeroes

10 years agoReordered the name and sname construction.
Tobias Brunner [Tue, 9 Mar 2010 08:01:28 +0000 (09:01 +0100)]
Reordered the name and sname construction.

10 years agoFixed a bug in pluto's x509 handling.
Tobias Brunner [Fri, 12 Mar 2010 16:27:05 +0000 (17:27 +0100)]
Fixed a bug in pluto's x509 handling.

This bug would have lead to a segmentation fault, if no public key could
have been extracted from a certificate.

10 years agodeleted old strongSwan VIDs
Andreas Steffen [Fri, 12 Mar 2010 02:29:18 +0000 (03:29 +0100)]
deleted old strongSwan VIDs

10 years agoenable build of socket-default plugin
Andreas Steffen [Thu, 11 Mar 2010 20:53:18 +0000 (21:53 +0100)]
enable build of socket-default plugin

10 years agomixed IKEv1/IKEv2 scenarios require socket-raw
Andreas Steffen [Thu, 11 Mar 2010 20:32:36 +0000 (21:32 +0100)]
mixed IKEv1/IKEv2 scenarios require socket-raw

10 years agoAdded a very minimalistic SMTP client to send mails via a local Exim
Martin Willi [Thu, 11 Mar 2010 09:51:16 +0000 (10:51 +0100)]
Added a very minimalistic SMTP client to send mails via a local Exim

10 years agoDo not disable the default-socket if it was enabled explicitly
Martin Willi [Thu, 11 Mar 2010 07:52:48 +0000 (08:52 +0100)]
Do not disable the default-socket if it was enabled explicitly

10 years agoSet a xy_given variable for a --enable/disable-xy option
Martin Willi [Thu, 11 Mar 2010 07:50:12 +0000 (08:50 +0100)]
Set a xy_given variable for a --enable/disable-xy option

This additional variable allows a check if an option was
explicitly given or implicitly set using the default.

10 years agoAdd a getter for the HTTP referer
Martin Willi [Tue, 9 Mar 2010 14:03:57 +0000 (15:03 +0100)]
Add a getter for the HTTP referer

10 years agofix 64bit issue with time_t from database
Andreas Steffen [Wed, 10 Mar 2010 09:46:49 +0000 (10:46 +0100)]
fix 64bit issue with time_t from database

10 years agoAdding socket-default to the plugin list in all test cases.
Tobias Brunner [Tue, 9 Mar 2010 16:41:40 +0000 (17:41 +0100)]
Adding socket-default to the plugin list in all test cases.

10 years agoProvide the Diffie Hellman parameters from a central location, so that we do not...
Tobias Brunner [Tue, 9 Mar 2010 16:15:16 +0000 (17:15 +0100)]
Provide the Diffie Hellman parameters from a central location, so that we do not have to replicate them in every plugin that implements the DH interface.

The main reason for this change is that Android's libcrypto does not
include the get_rfcX_prime_Y functions by default.  Therefore we would
have had to replicate the primes a third time.

10 years agoAdding the OpenSSL plugin to the Android build.
Tobias Brunner [Mon, 8 Mar 2010 16:18:47 +0000 (17:18 +0100)]
Adding the OpenSSL plugin to the Android build.

10 years agoFixing integrity tests after renaming the plugin constructors.
Tobias Brunner [Mon, 8 Mar 2010 14:33:42 +0000 (15:33 +0100)]
Fixing integrity tests after renaming the plugin constructors.

10 years agoAdding a helper function that translates single characters in a string.
Tobias Brunner [Mon, 8 Mar 2010 14:26:09 +0000 (15:26 +0100)]
Adding a helper function that translates single characters in a string.

10 years agoReplaced the deprecated RSA_generate_key with RSA_generate_key_ex.
Tobias Brunner [Mon, 8 Mar 2010 12:59:26 +0000 (13:59 +0100)]
Replaced the deprecated RSA_generate_key with RSA_generate_key_ex.

10 years agoImplemented the PRF_KEYED_SHA1 algorithm in the openssl plugin
Martin Willi [Mon, 8 Mar 2010 11:40:45 +0000 (12:40 +0100)]
Implemented the PRF_KEYED_SHA1 algorithm in the openssl plugin

10 years agoRemoved accidentally commited files from tree, ignore tarballs and patches
Martin Willi [Mon, 8 Mar 2010 08:36:46 +0000 (09:36 +0100)]
Removed accidentally commited files from tree, ignore tarballs and patches

10 years agoremoved unwanted commits
Andreas Steffen [Sun, 7 Mar 2010 20:11:57 +0000 (21:11 +0100)]
removed unwanted commits

10 years agocritical keyUsage extension must be parsed
Andreas Steffen [Sun, 7 Mar 2010 19:51:34 +0000 (20:51 +0100)]
critical keyUsage extension must be parsed

10 years agorecognize strongSwan VID
Andreas Steffen [Sun, 7 Mar 2010 16:52:04 +0000 (17:52 +0100)]
recognize strongSwan VID

10 years agoset Certificate Sign and CRL Sign flags in keyUsage extension if CA is true
Andreas Steffen [Sun, 7 Mar 2010 16:27:53 +0000 (17:27 +0100)]
set Certificate Sign and CRL Sign flags in keyUsage extension if CA is true

10 years agoMake Android.mk depend on configure.in, so it gets rebuilt if the version number...
Tobias Brunner [Fri, 5 Mar 2010 13:57:22 +0000 (14:57 +0100)]
Make Android.mk depend on configure.in, so it gets rebuilt if the version number got changed.

10 years agoparser.l includes y.tab.h, so it must be built first
Tobias Brunner [Fri, 5 Mar 2010 13:24:56 +0000 (14:24 +0100)]
parser.l includes y.tab.h, so it must be built first

10 years agoIgnore the generated y.output.
Tobias Brunner [Fri, 5 Mar 2010 13:19:17 +0000 (14:19 +0100)]
Ignore the generated y.output.