Skip to content

Commit

Permalink
pppd: fix build with LibreSSL 4.0.0 (#526)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
orbea authored Oct 29, 2024
1 parent f7120b5 commit d72b033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pppd/eap-tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit d72b033

Please sign in to comment.