summaryrefslogtreecommitdiffstats
path: root/src/lib/cryptolink
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2022-05-21 09:59:52 +0200
committerTomek Mrugalski <tomek@isc.org>2022-06-23 19:55:49 +0200
commit1c8c1dc7fc068edbea6d13a7c9f4ac54e5930741 (patch)
tree0c72221003651d33c454382843a5e73470a0dc18 /src/lib/cryptolink
parent[#1706] ChangeLog tabulation fixed (diff)
downloadkea-1c8c1dc7fc068edbea6d13a7c9f4ac54e5930741.tar.xz
kea-1c8c1dc7fc068edbea6d13a7c9f4ac54e5930741.zip
[#2411] Added libreSSL >= 3.5.2 support
Diffstat (limited to 'src/lib/cryptolink')
-rw-r--r--src/lib/cryptolink/openssl_compat.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/cryptolink/openssl_compat.h b/src/lib/cryptolink/openssl_compat.h
index c24ec3c9fb..992fe031f1 100644
--- a/src/lib/cryptolink/openssl_compat.h
+++ b/src/lib/cryptolink/openssl_compat.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -6,7 +6,9 @@
#include <openssl/opensslv.h>
-#if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)
+#if (defined(LIBRESSL_VERSION_NUMBER) && \
+ (LIBRESSL_VERSION_NUMBER < 0x3050200fL)) || \
+ (OPENSSL_VERSION_NUMBER < 0x10100000L)
// This file is included by hash and hmac codes so KEA_H* macros
// avoid to define unused inlines.
@@ -19,7 +21,7 @@ inline EVP_MD_CTX* EVP_MD_CTX_new() {
return (EVP_MD_CTX_create());
}
-// EVP_MD_CTX_free(ctx) is EVP_MD_CTX_destroy(ctx) in OpenSSL < 1.1
+// EVP_MD_CTX_free(ctx) is EVP_MD_CTX_destroy(ctx) in OpenSSL < 1.1
inline void EVP_MD_CTX_free(EVP_MD_CTX* ctx) {
EVP_MD_CTX_destroy(ctx);