blob: 36a676fb02381737840c2f77e8ce37e76c4ff25d [file] [log] [blame]
Patrick Williams03514f12024-04-05 07:04:11 -05001From aa1f157c675da248ed186e020d17cb2528d0be12 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>
12---
13 snmplib/scapi.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/snmplib/scapi.c b/snmplib/scapi.c
Patrick Williams03514f12024-04-05 07:04:11 -050017index ac77004..7545bfa 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018--- a/snmplib/scapi.c
19+++ b/snmplib/scapi.c
Patrick Williams03514f12024-04-05 07:04:11 -050020@@ -86,7 +86,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support);
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021 #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
Patrick Williams03514f12024-04-05 07:04:11 -050030--
312.25.1
32