Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 1 | From aa1f157c675da248ed186e020d17cb2528d0be12 Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
| 3 | Date: Thu, 22 Jun 2017 10:25:08 +0800 |
| 4 | Subject: [PATCH] net-snmp: fix for --disable-des |
| 5 | |
| 6 | Include des.h only if it's found in openssl so that |
| 7 | the --disable-des works correctly. |
| 8 | |
| 9 | Upstream-Status: Submitted [net-snmp-coders@lists.sourceforge.net] |
| 10 | |
| 11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 12 | --- |
| 13 | snmplib/scapi.c | 2 ++ |
| 14 | 1 file changed, 2 insertions(+) |
| 15 | |
| 16 | diff --git a/snmplib/scapi.c b/snmplib/scapi.c |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 17 | index ac77004..7545bfa 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | --- a/snmplib/scapi.c |
| 19 | +++ b/snmplib/scapi.c |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 20 | @@ -86,7 +86,9 @@ netsnmp_feature_child_of(usm_scapi, usm_support); |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 30 | -- |
| 31 | 2.25.1 |
| 32 | |