diff options
author | Arne Schwabe | 2024-01-22 14:09:09 +0100 |
---|---|---|
committer | Gert Doering | 2024-01-22 14:12:23 +0100 |
commit | dc4fde8052639ffbc29ccc87130a0ce25f6dcd6c (patch) | |
tree | ebf94371121a904da7065ccd32115b233c1dbfbb | |
parent | a634cc5eccd55f1d14197da7376bb819bdf72cb6 (diff) | |
download | openvpn-dc4fde8052639ffbc29ccc87130a0ce25f6dcd6c.zip openvpn-dc4fde8052639ffbc29ccc87130a0ce25f6dcd6c.tar.gz |
Fix ssl unit tests on OpenSSL 1.0.2
OpenSSL 1.1.1 will initialise itself using clever linker magic. For
OpenSSL 1.0.2 we need to manually initialise the library. For other
unit tests just doing the OpenSSL_add_all_algorithms is enough but
this unit test needs a more complete initialisation.
Change-Id: I378081f391ad755d0a6fd5613de5c2a8bacc389a
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20240122130909.10706-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28112.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
-rw-r--r-- | tests/unit_tests/openvpn/test_ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/openvpn/test_ssl.c b/tests/unit_tests/openvpn/test_ssl.c index fd2049f..d0c3df7 100644 --- a/tests/unit_tests/openvpn/test_ssl.c +++ b/tests/unit_tests/openvpn/test_ssl.c @@ -127,13 +127,13 @@ main(void) }; #if defined(ENABLE_CRYPTO_OPENSSL) - OpenSSL_add_all_algorithms(); + tls_init_lib(); #endif int ret = cmocka_run_group_tests_name("crypto tests", tests, NULL, NULL); #if defined(ENABLE_CRYPTO_OPENSSL) - EVP_cleanup(); + tls_free_lib(); #endif return ret; |