From d72b03393a4fe14768dcf54b6cb14a6220b83aaf Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 28 Oct 2024 22:42:18 -0700 Subject: [PATCH] pppd: fix build with LibreSSL 4.0.0 (#526) Starting with LibreSSL 4.0.0 the OPENSSL_load_builtin_modules() function was removed. It is obsolete after automatic library initialization and now an internal API. Signed-off-by: orbea --- pppd/eap-tls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pppd/eap-tls.c b/pppd/eap-tls.c index d70557ee7..4c0b99b33 100644 --- a/pppd/eap-tls.c +++ b/pppd/eap-tls.c @@ -171,7 +171,9 @@ CONF *eaptls_ssl_load_config( void ) #ifndef OPENSSL_NO_ENGINE ENGINE_load_builtin_engines(); #endif +#if !defined(LIBRESSL_VERSION_NUMBER) || (LIBRESSL_VERSION_NUMBER < 0x4000000fL) OPENSSL_load_builtin_modules(); +#endif dbglog( "Loading OpenSSL configured modules" ); if (CONF_modules_load( config, NULL, 0 ) <= 0 )