[Openvpn-devel] [PATCH] Wipe Socks5 credentials after use

2021-03-19 Thread Max Fillinger
Plaintext authentication is not exactly high security, but we might as well memzero the credentials before leaving the function. --- src/openvpn/socks.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/openvpn/socks.c b/src/openvpn/socks.c index

Re: [Openvpn-devel] [Patch] Wipe Socks5 credentials after use

2021-03-19 Thread Maximilian Fillinger via Openvpn-devel
Sorry about that! I'll send it again from my personal account later. -Original Message- From: Gert Doering [mailto:g...@greenie.muc.de] Sent: vrijdag 19 maart 2021 18:30 To: Maximilian Fillinger Cc: openvpn-devel@lists.sourceforge.net Subject: Re: [Openvpn-devel] [Patch] Wipe Socks5

Re: [Openvpn-devel] [Patch] Wipe Socks5 credentials after use

2021-03-19 Thread Gert Doering
Hi, On Fri, Mar 19, 2021 at 04:45:18PM +, Maximilian Fillinger via Openvpn-devel wrote: [..] The patch itself is OK (I think), but actually applying it will mess up the Author: information in git, because you are sending from a domain that has DMARC p=reject. So mailman is massacring your

[Openvpn-devel] [Patch] Wipe Socks5 credentials after use

2021-03-19 Thread Maximilian Fillinger via Openvpn-devel
Socks5 plaintext authentication is not exactly high security, but we might as well memzero the credentials before leaving the function. --- src/openvpn/socks.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/openvpn/socks.c b/src/openvpn/socks.c

Re: [Openvpn-devel] [PATCH v2 1/5] Extend verify-hash to allow multiple hashes

2021-03-19 Thread Antonio Quartulli
Hi, On 19/03/2021 15:19, Arne Schwabe wrote: > This patch introduces support for verify-hash inlining. > When inlined, this options now allows to specify multiple fingerprints, > one per line. > > Since this is a new syntax, there is no backwards compatibility to take > care of, therefore we can

[Openvpn-devel] [PATCH 2/2] Implement '--compress migrate' to migrate to non-compression setup

2021-03-19 Thread Arne Schwabe
This option allow migration to a non compression server config while still retraining compatibility with client that have a compression setting in their config. For existing setups that used to have comp-lzo no or another compression setting in their configs it is a difficult to migrate to a

[Openvpn-devel] [PATCH 1/2] Move extract_iv_proto to ssl_util.c/h

2021-03-19 Thread Arne Schwabe
This function is used by both NCP and push, so move it to a more proper place. Signed-off-by: Arne Schwabe --- src/openvpn/multi.c| 1 + src/openvpn/push.c | 18 +- src/openvpn/push.h | 10 -- src/openvpn/ssl_util.c | 16

Re: [Openvpn-devel] [PATCH 4/4] Document the simple self-signed certificate setup in examples

2021-03-19 Thread Antonio Quartulli
Hi, Minor change below On 08/09/2020 17:41, Arne Schwabe wrote: > Also remove the static key setup example as it is less secure and we > want to avoid it for new setups as we want to slowly deprecate these. > > Signed-off-by: Arne Schwabe > --- > Changes.rst | 5 >

[Openvpn-devel] [PATCH applied] Re: Fix multiple problems when compiling with LLVM/Windows (clang-cl)

2021-03-19 Thread Gert Doering
Acked-by: Gert Doering I've stared at the code changes (look fine) and sanity checked by a compile on Ubuntu 18/MinGW. According to the IRC discussions, Arne tested MSVC with "microsoft C" as well, so no need to have that tested again. Your patch has been applied to the master branch. commit

[Openvpn-devel] [PATCH applied] Re: README.wolfssl Update

2021-03-19 Thread Gert Doering
Acked-by: Gert Doering Thanks. Documentation is always good. Your patch has been applied to the master branch. commit 1480903e1c52b3064250672c5221f71f95d8b5a5 Author: Juliusz Sosinowicz Date: Fri Mar 19 14:43:22 2021 +0100 README.wolfssl Update Signed-off-by: Juliusz Sosinowicz

[Openvpn-devel] [PATCH v2 1/5] Extend verify-hash to allow multiple hashes

2021-03-19 Thread Arne Schwabe
This patch introduces support for verify-hash inlining. When inlined, this options now allows to specify multiple fingerprints, one per line. Since this is a new syntax, there is no backwards compatibility to take care of, therefore we can drop support for SHA1. Inlined fingerprints are assumed

[Openvpn-devel] [PATCH v2 3/5] Support fingerprint authentication without CA certificate

2021-03-19 Thread Arne Schwabe
From: "Jason A. Donenfeld" OpenVPN traditionally works around CAs. However many TLS-based protocols also allow an alternative simpler mode in which rather than verify certificates against CAs, the certificate itself is hashed and compared against a pre-known set of acceptable hashes. This is

[Openvpn-devel] [PATCH v2 2/5] Implement peer-fingerprint to check fingerprint of peer certificate

2021-03-19 Thread Arne Schwabe
This option allows to pin one or more more peer certificates. It also prepares for doing TLS authentication without a CA and just self-signed certificates. Patch V2: Allow peer-fingerprint to be specified multiple times to allow multiple peers without needing to use inline

[Openvpn-devel] [PATCH v2 5/5] Deprecate the --verify-hash option

2021-03-19 Thread Arne Schwabe
Despite trying to figure out with multiple people what the use case for this option is, we could not come up with a good one. Checking that only a specific CA is used can be also done by only using that CA in the --ca directive. Although it feels a bit strange to deprecate the option after

[Openvpn-devel] [PATCH applied] Re: Remove compat-lz4 references from VS project files

2021-03-19 Thread Gert Doering
Acked-by: Gert Doering Yeah, thanks for cleaning up behind us, when needed... Your patch has been applied to the master branch. commit 9b2e80340d247bc7c73752d542be4d15511eb04e Author: Lev Stipakov Date: Fri Mar 19 04:33:17 2021 +0200 Remove compat-lz4 references from VS project files

[Openvpn-devel] [PATCH] Remove compat-lz4 references from VS project files

2021-03-19 Thread Lev Stipakov
From: Lev Stipakov Commit 24596b25 ("build: Remove compat-lz4") removed lz4 compat layer, but didn't remove references from VS project files. Signed-off-by: Lev Stipakov --- src/compat/compat.vcxproj | 3 +-- src/compat/compat.vcxproj.filters | 2 +- 2 files changed, 2 insertions(+),

[Openvpn-devel] [PATCH] README.wolfssl Update

2021-03-19 Thread Juliusz Sosinowicz
Updates for the wolfSSL README file: - fix typos - correct wolfSSL company spelling - add a point of contact for users having problems using OpenVPN + wolfSSL Signed-off-by: Juliusz Sosinowicz --- README.wolfssl | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

Re: [Openvpn-devel] [PATCH applied] Re: Add README.wolfssl documentating the state of WolfSSL in OpenVPN

2021-03-19 Thread Gert Doering
Hi, On Fri, Mar 19, 2021 at 01:36:13PM +0100, Juliusz Sosinowicz wrote: > Could we get something like > "For issues with using OpenVPN with wolfSSL, please contact > supp...@wolfssl.com." > in the README.wolfssl? This would help streamline comms for users and > improve user experience. I can

Re: [Openvpn-devel] [PATCH applied] Re: Add README.wolfssl documentating the state of WolfSSL in OpenVPN

2021-03-19 Thread Juliusz Sosinowicz
Could we get something like "For issues with using OpenVPN with wolfSSL, please contact supp...@wolfssl.com." in the README.wolfssl? This would help streamline comms for users and improve user experience. I can prepare a patch with this change. Thanks. Sincerely Juliusz On 18/03/2021 14:22,

[Openvpn-devel] [PATCH] Fix multiple problems when compiling with LLVM/Windows (clang-cl)

2021-03-19 Thread Arne Schwabe
When using the LLVM clang compiler instead the MSVC cl.exe but with the same build environment as MSVC, clang encounters a few errors: src\openvpn\socket.c(3550,23): warning: assigning to 'CHAR *' (aka 'char *') from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types

Re: [Openvpn-devel] [PATCH 2/4] Implement peer-fingerprint to check fingerprint of peer certificate

2021-03-19 Thread Antonio Quartulli
Hi, This patch currently only applies with "git am -3" We currently have "verify-hash" that accepts fingerprints as argument. For consistency I would suggest to either: 1) rename this option to peer-hash; or 2) add an alias for "verify-hash" named "verify-fingerprint", so that we can then get

Re: [Openvpn-devel] [PATCH 1/4] Extend verify-hash to allow multiple hashes

2021-03-19 Thread Antonio Quartulli
Hi, This patch conflicts a bit with current master, but can be applied using "git am -3". Intro: it's not easy to understand what "verify-hash" was really meant for, but I am happy to see it being restructured to actually become useful :-) On 08/09/2020 17:41, Arne Schwabe wrote: > For a new

[Openvpn-devel] [PATCH applied] Re: build: Add support for pkg-config < 0.28 for old autoconf versions

2021-03-19 Thread Gert Doering
Your patch has been applied to the master branch. I have amended the commit message to point out what David found out, that this is related to pkg-config version and not autoconf itself. The patch itself is unchanged. I have thrown this branch towards all our buildbots first, and everything

Re: [Openvpn-devel] [PATCH] Add PKG_CHECK_VAR compatibility definition for old autoconf versions

2021-03-19 Thread Gert Doering
Hi, On Fri, Mar 19, 2021 at 12:16:28AM +0100, David Sommerseth wrote: > On 19/03/2021 00:00, Juliusz Sosinowicz wrote: > > For reference, the version of pkg-config shipped on my Ubuntu 14 vm is > > 0.26-1ubuntu4. It looks like the default packages are very outdated. > > Thanks for checking.