[Openvpn-devel] Series of patches to fix Windows builds and other errors

2011-10-31 Thread Adriaan de Jong
Hi, The following series of patches enables Windows builds and fixes a few bugs to boot. Most of it I'm quite comfortable with. The only unfortunate thing in these patches is switching between OpenSSL and PolarSSL. This currently requires changing two flags instead of one, due to the build system

[Openvpn-devel] [PATCH 2/8] Moved CryptoAPI header include to the ssl_openssl.c

2011-10-31 Thread Adriaan de Jong
Signed-off-by: Adriaan de Jong --- ssl.c |4 ssl_openssl.c |4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ssl.c b/ssl.c index 955a0d1..c26756e 100644 --- a/ssl.c +++ b/ssl.c @@ -62,10 +62,6 @@ #include "ssl_verify.h" #include "ssl_backend.h" -#ifde

[Openvpn-devel] [PATCH 4/8] Reordered functions to ensure warning-free Windows build

2011-10-31 Thread Adriaan de Jong
Signed-off-by: Adriaan de Jong --- plugin.h | 21 ++--- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/plugin.h b/plugin.h index 7aacb47..948ab88 100644 --- a/plugin.h +++ b/plugin.h @@ -122,6 +122,16 @@ void plugin_list_open (struct plugin_list *pl, struct p

[Openvpn-devel] [PATCH 1/8] Moved prng_uninit out of crypto_uninit_lib

2011-10-31 Thread Adriaan de Jong
Since prng_uninit is SSL-library agnostic, but crypto_uninit_lib isn't, the function was moved up a level. Signed-off-by: Adriaan de Jong --- crypto.c |1 + crypto_openssl.c |2 -- crypto_polarssl.c |1 - ssl.c |4 ++-- 4 files changed, 3 insertions(+), 5 d

[Openvpn-devel] [PATCH 3/8] Fixed missing comma in plugin.h

2011-10-31 Thread Adriaan de Jong
Fixed a bug where the wrong value was being passed to plugin_call_ssl, due to a missing comma. Signed-off-by: Adriaan de Jong --- plugin.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugin.h b/plugin.h index 8782751..7aacb47 100644 --- a/plugin.h +++ b/plugin.h @@

[Openvpn-devel] [PATCH 6/8] Moved from strsep to strtok, for Windows compatibility

2011-10-31 Thread Adriaan de Jong
Signed-off-by: Adriaan de Jong --- ssl_polarssl.c | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ssl_polarssl.c b/ssl_polarssl.c index 9a8c49c..60d99a8 100644 --- a/ssl_polarssl.c +++ b/ssl_polarssl.c @@ -164,7 +164,7 @@ tls_ctx_set_options (struct tls_root_

[Openvpn-devel] [PATCH 5/8] Added options to switch between OpenSSL and PolarSSL and PKCS11...

2011-10-31 Thread Adriaan de Jong
at compile time. Also included the option to enable/disable PKCS11. Signed-off-by: Adriaan de Jong --- win/config.h.in | 18 +++--- win/msvc.mak.in | 18 +++--- win/settings.in | 13 + 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/win/c

[Openvpn-devel] [PATCH 8/8] Fixed a typo when initialising cryptoapi certs

2011-10-31 Thread Adriaan de Jong
Signed-off-by: Adriaan de Jong --- ssl_openssl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ssl_openssl.c b/ssl_openssl.c index 391968a..b95944c 100644 --- a/ssl_openssl.c +++ b/ssl_openssl.c @@ -339,7 +339,7 @@ tls_ctx_load_cryptoapi(struct tls_root_ctx *ctx, const

[Openvpn-devel] [PATCH 7/8] Minor cleanup to enable warning-free Windows build:

2011-10-31 Thread Adriaan de Jong
- Changed int32_t to size_t - Removed some unused variables - Added missing include files - changed ordering to ensure variable declarations are before asserts Signed-off-by: Adriaan de Jong --- crypto.c |3 +-- pkcs11_polarssl.c |1 - ssl_openssl.c |6 +++---

[Openvpn-devel] [PATCH] adding support for systemd tty console wrapper

2011-10-31 Thread Frederic Crozat
Hi, as part of openSUSE switching to systemd by default, openVPN was made compatible with the systemd way of querying passphrase during boot (directly opening tty isn't supported). -- Frederic Crozat SUSE >From 02a9e6b213eba6dbb90b92b4d51e907718e46a56 Mon Sep 17 00:00:00 2001 From: Frederic Cr

Re: [Openvpn-devel] [PATCH] adding support for systemd tty console wrapper

2011-10-31 Thread David Sommerseth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31/10/11 16:30, Frederic Crozat wrote: > Hi, > > as part of openSUSE switching to systemd by default, openVPN was made > compatible with the systemd way of querying passphrase during boot > (directly opening tty isn't supported). > Thanks a lot