1From aa1f157c675da248ed186e020d17cb2528d0be12 Mon Sep 17 00:00:00 2001
2From: 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>
12---
13 snmplib/scapi.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/snmplib/scapi.c b/snmplib/scapi.c
17index ac77004..7545bfa 100644
18--- a/snmplib/scapi.c
19+++ b/snmplib/scapi.c
20@@ -86,7 +86,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support);
21 #include <openssl/hmac.h>
22 #include <openssl/evp.h>
23 #include <openssl/rand.h>
24+#ifdef HAVE_OPENSSL_DES_H
25 #include <openssl/des.h>
26+#endif
27 #ifdef HAVE_AES
28 #include <openssl/aes.h>
29 #endif
30--
312.25.1
32
33