| From 068952c0e0cdda5a91250b91c5fcc9b85b43daab Mon Sep 17 00:00:00 2001 |
| From: Jackie Huang <jackie.huang@windriver.com> |
| Date: Thu, 22 Jun 2017 10:25:08 +0800 |
| Subject: [PATCH] net-snmp: fix for --disable-des |
| |
| Include des.h only if it's found in openssl so that |
| the --disable-des works correctly. |
| |
| Upstream-Status: Submitted [net-snmp-coders@lists.sourceforge.net] |
| |
| Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| |
| --- |
| snmplib/scapi.c | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| diff --git a/snmplib/scapi.c b/snmplib/scapi.c |
| index 8ad1d70..43caddf 100644 |
| --- a/snmplib/scapi.c |
| +++ b/snmplib/scapi.c |
| @@ -84,7 +84,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support) |
| #include <openssl/hmac.h> |
| #include <openssl/evp.h> |
| #include <openssl/rand.h> |
| +#ifdef HAVE_OPENSSL_DES_H |
| #include <openssl/des.h> |
| +#endif |
| #ifdef HAVE_AES |
| #include <openssl/aes.h> |
| #endif |