]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: fix build with LibreSSL 4.0.0 (#526)
authororbea <orbea@riseup.net>
Tue, 29 Oct 2024 05:42:18 +0000 (22:42 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 05:42:18 +0000 (16:42 +1100)
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 <orbea@riseup.net>
pppd/eap-tls.c

index d70557ee7b189d8921ba58af0888c3c662ba4765..4c0b99b33125af1c4f9176964bb562722744121e 100644 (file)
@@ -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 )