From: orbea Date: Tue, 29 Oct 2024 05:42:18 +0000 (-0700) Subject: pppd: fix build with LibreSSL 4.0.0 (#526) X-Git-Tag: v2.5.2~11 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=d72b03393a4fe14768dcf54b6cb14a6220b83aaf;p=ppp.git 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 --- diff --git a/pppd/eap-tls.c b/pppd/eap-tls.c index d70557e..4c0b99b 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 )