Browse Source

[master] Added libreSSL as old (< 1.1) OpenSSL API

Francis Dupont 8 years ago
parent
commit
7c08bdc379
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/cryptolink/openssl_compat.h

+ 2 - 2
src/lib/cryptolink/openssl_compat.h

@@ -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.