summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/openhpi/files/no-md2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/openhpi/files/no-md2.patch')
-rw-r--r--meta-networking/recipes-daemons/openhpi/files/no-md2.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/files/no-md2.patch b/meta-networking/recipes-daemons/openhpi/files/no-md2.patch
new file mode 100644
index 000000000..c4dd23e79
--- /dev/null
+++ b/meta-networking/recipes-daemons/openhpi/files/no-md2.patch
@@ -0,0 +1,37 @@
1Description: Fix FTBFS with OpenSSL 1.1 by honouring OPENSSL_NO_MD2
2Author: Adrian Bunk <bunk@debian.org>
3Bug-Debian: https://bugs.debian.org/859543
4
5Upstream-Status: Pending
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8Index: openhpi-3.8.0/plugins/ipmidirect/ipmi_auth.cpp
9===================================================================
10--- openhpi-3.8.0.orig/plugins/ipmidirect/ipmi_auth.cpp
11+++ openhpi-3.8.0/plugins/ipmidirect/ipmi_auth.cpp
12@@ -21,6 +21,7 @@
13 #include "ipmi_auth.h"
14 #include <string.h>
15 #include <errno.h>
16+#include <openssl/opensslconf.h>
17
18
19 cIpmiAuth *
20@@ -32,7 +33,7 @@ IpmiAuthFactory( tIpmiAuthType type )
21 return new cIpmiAuthNone;
22
23 case eIpmiAuthTypeMd2:
24-#ifdef HAVE_OPENSSL_MD2_H
25+#if defined(HAVE_OPENSSL_MD2_H) && !defined(OPENSSL_NO_MD2)
26 return new cIpmiAuthMd2;
27 #else
28 break;
29@@ -78,7 +79,7 @@ cIpmiAuthNone::Check( cIpmiAuthSg /*d*/[
30 }
31
32
33-#ifdef HAVE_OPENSSL_MD2_H
34+#if defined(HAVE_OPENSSL_MD2_H) && !defined(OPENSSL_NO_MD2)
35 #include <openssl/md2.h>
36
37