blob: 2941a36092b5a868e17b85b91c9a436baaeba44b [file] [log] [blame]
Andrew Geisslerd688a012020-09-18 13:36:00 -05001From 3ca4335ec1d6b7b384c134fc85d7a9e513c68376 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Jackie Huang <jackie.huang@windriver.com>
3Date: Thu, 22 Jun 2017 10:25:08 +0800
4Subject: [PATCH] net-snmp: fix for --disable-des
5
6Include des.h only if it's found in openssl so that
7the --disable-des works correctly.
8
9Upstream-Status: Submitted [net-snmp-coders@lists.sourceforge.net]
10
11Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013---
14 snmplib/scapi.c | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/snmplib/scapi.c b/snmplib/scapi.c
Andrew Geisslerd688a012020-09-18 13:36:00 -050018index 00c9174..c6875e1 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019--- a/snmplib/scapi.c
20+++ b/snmplib/scapi.c
Andrew Geisslerd688a012020-09-18 13:36:00 -050021@@ -85,7 +85,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support);
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022 #include <openssl/hmac.h>
23 #include <openssl/evp.h>
24 #include <openssl/rand.h>
25+#ifdef HAVE_OPENSSL_DES_H
26 #include <openssl/des.h>
27+#endif
28 #ifdef HAVE_AES
29 #include <openssl/aes.h>
30 #endif