diff --git a/lib/isc/openssl_shim.c b/lib/isc/openssl_shim.c index d8e9fc2250..9a428ea366 100644 --- a/lib/isc/openssl_shim.c +++ b/lib/isc/openssl_shim.c @@ -32,6 +32,7 @@ OPENSSL_zalloc(size_t size) return (ret); } +#if OPENSSL_VERSION_NUMBER < 0x10001000L || defined(LIBRESSL_VERSION_NUMBER) EVP_CIPHER_CTX * EVP_CIPHER_CTX_new(void) { @@ -47,6 +48,7 @@ EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) OPENSSL_free(ctx); } } +#endif EVP_MD_CTX * EVP_MD_CTX_new(void) diff --git a/lib/isc/openssl_shim.h b/lib/isc/openssl_shim.h index 6088e05b46..5c9dbdc7ec 100644 --- a/lib/isc/openssl_shim.h +++ b/lib/isc/openssl_shim.h @@ -21,8 +21,10 @@ #include void *OPENSSL_zalloc(size_t size); +#if OPENSSL_VERSION_NUMBER < 0x10001000L || defined(LIBRESSL_VERSION_NUMBER) EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void); void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx); +#endif EVP_MD_CTX *EVP_MD_CTX_new(void); void EVP_MD_CTX_free(EVP_MD_CTX *ctx); int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);