]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Support for wolfSSL in OpenVPN
authorJuliusz Sosinowicz <juliusz@wolfssl.com>
Wed, 17 Mar 2021 18:11:53 +0000 (19:11 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 18 Mar 2021 13:07:15 +0000 (14:07 +0100)
commitf6dca235ae560597a0763f0c98fcc9130b80ccf4
treef32e73084749ca1f7d1c86bd95369bc4a2674bf4
parent4524feb2bbbb6d1bd463a0c5c2d53aae5bdf360a
Support for wolfSSL in OpenVPN

This patch adds support for wolfSSL in OpenVPN. Support is added by using
wolfSSL's OpenSSL compatibility layer. Function calls are left unchanged
and instead the OpenSSL includes point to wolfSSL headers and OpenVPN is
linked against the wolfSSL library. The wolfSSL installation directory is
detected using pkg-config.

As requested by OpenVPN maintainers, this patch does not include
wolfssl/options.h on its own. By defining the macro EXTERNAL_OPTS_OPENVPN
in the configure script wolfSSL will include wolfssl/options.h on its own
(change added in https://github.com/wolfSSL/wolfssl/pull/2825). The patch
adds an option `--disable-wolfssl-options-h` in case the user would like
to supply their own settings file for wolfSSL.

wolfSSL:
Support added in: https://github.com/wolfSSL/wolfssl/pull/2503
```
git clone https://github.com/wolfSSL/wolfssl.git
cd wolfssl
./autogen.sh
./configure --enable-openvpn
make
sudo make install
```

OpenVPN:
```
autoreconf -i -v -f
./configure --with-crypto-library=wolfssl
make
make check
sudo make install
```

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20210317181153.83716-1-juliusz@wolfssl.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21686.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac
src/openvpn/syshead.h