]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Added libreSSL as old (< 1.1) OpenSSL API
authorFrancis Dupont <fdupont@isc.org>
Wed, 15 Feb 2017 12:22:19 +0000 (13:22 +0100)
committerFrancis Dupont <fdupont@isc.org>
Wed, 15 Feb 2017 12:22:19 +0000 (13:22 +0100)
src/lib/cryptolink/openssl_compat.h

index 886d951df106649c410c82b271f0871c4c443c75..c24ec3c9fb7a00178de18914009216fa00503dd4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2017 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,7 @@
 
 #include <openssl/opensslv.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)
 
 // This file is included by hash and hmac codes so KEA_H* macros
 // avoid to define unused inlines.