mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
ldns: fix compilation without deprecated APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
--- a/examples/ldns-signzone.c
|
||||
+++ b/examples/ldns-signzone.c
|
||||
@@ -535,6 +535,7 @@ init_openssl_engine ( const char * const id )
|
||||
static void
|
||||
shutdown_openssl ( ENGINE * const e )
|
||||
{
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(HAVE_LIBRESSL)
|
||||
if ( e != NULL ) {
|
||||
ENGINE_free ( e );
|
||||
ENGINE_cleanup ();
|
||||
@@ -544,6 +545,7 @@ shutdown_openssl ( ENGINE * const e )
|
||||
EVP_cleanup ();
|
||||
CRYPTO_cleanup_all_ex_data ();
|
||||
ERR_free_strings ();
|
||||
+#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user