Skip to content

OpenSSL 3.0 improvements for OpenVPN

Arne Schwabe openvpn-devel 3 versions – In review

Get series with b4
b4 am [email protected]...

Versions newest first · linked by author and title

  1. v3 Latest21 patches 53 repliesIn review
  2. v220 patches 1 replySuperseded
  3. v18 patches 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21Use new EVP_MAC API for HMAC implementationsrc/openvpn/crypto_backend.h src/openvpn/crypto_mbedtls.c src/openvpn/crypto_openssl.c +1 more+104 -42 replies
2/21Add --with-openssl-engine autoconf option (auto|yes|no)configure.ac+51 -172 replies
3/21Implement DES ECB encrypt via EVP_CIPHER apisrc/openvpn/crypto_openssl.c+19 -36 replies
4/21Remove DES check with OpenSSL 3.0src/openvpn/crypto_openssl.c+8 -02 replies
5/21Use EVP_PKEY based API for loading DH keyssrc/openvpn/ssl_openssl.c+21 -23 replies
6/21Deprecate --ecdh-curve with OpenSSL 3.0 and adjust mbed TLS messagesrc/openvpn/ssl_mbedtls.c src/openvpn/ssl_openssl.c+12 -52 replies
7/21Remove DES key fixup codesrc/openvpn/crypto.c src/openvpn/crypto.h src/openvpn/crypto_backend.h +4 more+0 -1272 replies
8/21Use EVP_PKEY_get_group_name to query group namesrc/openvpn/openssl_compat.h src/openvpn/ssl_openssl.c+50 -62 replies
9/21Refactor early initialisation and uninitialisation into methodssrc/openvpn/openvpn.c+18 -52 replies
10/21Replace EVP_get_cipherbyname with EVP_CIPHER_fetchsrc/openvpn/crypto_openssl.c src/openvpn/openssl_compat.h+20 -35 replies
11/21USe EVP_MD_get0_name instead EV_MD_namesrc/openvpn/crypto_openssl.c src/openvpn/openssl_compat.h+3 -12 replies
12/21Allow loading of non default providersdoc/man-sections/generic-options.rst src/openvpn/crypto_backend.h src/openvpn/crypto_mbedtls.c +4 more+63 -07 replies
13/21Remove dependency on BF-CBC existance from test_ncptests/unit_tests/openvpn/test_ncp.c+10 -32 replies
14/21Use TYPE_do_all_provided function for listing cipher/digestsrc/openvpn/crypto_openssl.c+61 -342 replies
15/21Do not allow CTS cipherssrc/openvpn/crypto_openssl.c+3 -03 replies
16/21Add message when decoding PKCS12 file fails.src/openvpn/ssl_openssl.c+2 -02 replies
17/21Add small unit test for testing HMACtests/unit_tests/openvpn/test_crypto.c+54 -71 reply
18/21Fix error when BF-CBC is not availablesrc/openvpn/options.c+3 -02 replies
19/21Add insecure tls-cert-profile optionsdoc/man-sections/tls-options.rst src/openvpn/ssl_mbedtls.c src/openvpn/ssl_openssl.c+13 -21 reply
20/21Add macos OpenSSL 3.0 and ASAN builds.github/workflows/build.yaml+25 -31 reply
21/21Always use 8192 bytes for ERR_BUF_SIZEsrc/openvpn/error.h+1 -52 replies

Reviews trailers per patch

14 of 21 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMax FillingerGert DoeringSelva Nair
SeriesA-b A-b A-b
1/21A-b
2/21
3/21
4/21A-b
5/21A-b
6/21A-b
7/21A-b
8/21
9/21A-b
10/21A-b
11/21A-b
12/21
13/21A-b
14/21
15/21A-b
16/21A-b
17/21A-b
18/21A-b
19/21
20/21A-b
21/21

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [Openvpn-devel] [PATCH v3 00/21] OpenSSL 3.0 improvements for OpenVPN

This patchset removes almost all deprecation warnings from OpenVPN that related to OpenSSL 3.0. The patchset has already been tested with users and OpenSSL 3.0 as part of my OpenVPN for Android client.

Some patches also improve interaction with new features of OpenSSL 3.0, mainly with providers.

The patchset does not address using a provider to replace the RSA_method/EC_method. This is a separate patchset currently prepared by Selva.

Arne Schwabe (21):
[OSSL 3.0] Use new EVP_MAC API for HMAC implementation [OSSL 3.0] Add --with-openssl-engine autoconf option (auto|yes|no) [OSSL 3.0] Implement DES ECB encrypt via EVP_CIPHER api [OSSL 3.0] Remove DES check with OpenSSL 3.0
[OSSL 3.0] Use EVP_PKEY based API for loading DH keys [OSSL 3.0] Deprecate --ecdh-curve with OpenSSL 3.0 and adjust mbed TLS
message
[OSSL 3.0] Remove DES key fixup code
[OSSL 3.0] Use EVP_PKEY_get_group_name to query group name Refactor early initialisation and uninitialisation into methods [OSSL 3.0] Replace EVP_get_cipherbyname with EVP_CIPHER_fetch [OSSL 3.0] USe EVP_MD_get0_name instead EV_MD_name
[OSSL 3.0] Allow loading of non default providers
[OSSL 3.0] Remove dependency on BF-CBC existance from test_ncp [OSSL 3.0] Use TYPE_do_all_provided function for listing cipher/digest [OSSL 3.0] Do not allow CTS ciphers
Add message when decoding PKCS12 file fails.
Add small unit test for testing HMAC
Fix error when BF-CBC is not available
Add insecure tls-cert-profile options
Add macos OpenSSL 3.0 and ASAN builds
Always use 8192 bytes for ERR_BUF_SIZE

 .github/workflows/build.yaml           |  28 ++-
 configure.ac                           |  68 ++++--
 doc/man-sections/generic-options.rst   |  10 +
 doc/man-sections/tls-options.rst       |   6 +
 src/openvpn/crypto.c                   |  46 ----
 src/openvpn/crypto.h                   |   2 -
 src/openvpn/crypto_backend.h           |  18 +-
 src/openvpn/crypto_mbedtls.c           |  34 +--
 src/openvpn/crypto_openssl.c           | 288 +++++++++++++++++++------
 src/openvpn/crypto_openssl.h           |   8 +
 src/openvpn/error.h                    |   6 +-
 src/openvpn/ntlm.c                     |   1 -
 src/openvpn/openssl_compat.h           |  61 ++++++
 src/openvpn/openvpn.c                  |  27 ++-
 src/openvpn/options.c                  |   7 +
 src/openvpn/options.h                  |   1 +
 src/openvpn/ssl.c                      |  18 --
 src/openvpn/ssl_mbedtls.c              |   8 +-
 src/openvpn/ssl_openssl.c              |  57 +++--
 tests/unit_tests/openvpn/test_crypto.c |  61 +++++-
 tests/unit_tests/openvpn/test_ncp.c    |  13 +-
 21 files changed, 541 insertions(+), 227 deletions(-)
Signature · 1 line
2.33.0