forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
botan-1.10.17-libressl.patch
40 lines (33 loc) · 1.31 KB
/
botan-1.10.17-libressl.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From e61a5f56fb404db3655909be4ce23c3a816cbb60 Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <[email protected]>
Date: Wed, 4 Oct 2017 22:16:31 +0300
Subject: [PATCH] openssl: support libressl
Signed-off-by: Alon Bar-Lev <[email protected]>
---
src/engine/openssl/ossl_bc.cpp | 2 +-
src/engine/openssl/ossl_md.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/engine/openssl/ossl_bc.cpp b/src/engine/openssl/ossl_bc.cpp
index 74660c7b5..cb184c202 100644
--- a/src/engine/openssl/ossl_bc.cpp
+++ b/src/engine/openssl/ossl_bc.cpp
@@ -8,7 +8,7 @@
#include <botan/internal/openssl_engine.h>
#include <openssl/evp.h>
-#if OPENSSL_VERSION_NUMBER >= 0x10100000
+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
#error "OpenSSL 1.1 API not supported in Botan 1.10, upgrade to 2.x"
#endif
diff --git a/src/engine/openssl/ossl_md.cpp b/src/engine/openssl/ossl_md.cpp
index 2fcb2b0e5..9c43d616e 100644
--- a/src/engine/openssl/ossl_md.cpp
+++ b/src/engine/openssl/ossl_md.cpp
@@ -8,7 +8,7 @@
#include <botan/internal/openssl_engine.h>
#include <openssl/evp.h>
-#if OPENSSL_VERSION_NUMBER >= 0x10100000
+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
#error "OpenSSL 1.1 API not supported in Botan 1.10, upgrade to 2.x"
#endif
--
2.13.6