summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_snmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index d0f01721..6c672793 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -69,7 +69,7 @@ const char DEFAULT_COMMUNITY[] = "public";
69const char DEFAULT_MIBLIST[] = "ALL"; 69const char DEFAULT_MIBLIST[] = "ALL";
70#define DEFAULT_AUTH_PROTOCOL "MD5" 70#define DEFAULT_AUTH_PROTOCOL "MD5"
71 71
72#ifdef usmDESPrivProtocol 72#ifdef HAVE_USM_DES_PRIV_PROTOCOL
73# define DEFAULT_PRIV_PROTOCOL "DES" 73# define DEFAULT_PRIV_PROTOCOL "DES"
74#else 74#else
75# define DEFAULT_PRIV_PROTOCOL "AES" 75# define DEFAULT_PRIV_PROTOCOL "AES"
@@ -623,7 +623,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) {
623 break; 623 break;
624 case 'x': /* priv protocol */ 624 case 'x': /* priv protocol */
625 if (strcasecmp("DES", optarg) == 0) { 625 if (strcasecmp("DES", optarg) == 0) {
626#ifdef usmDESPrivProtocol 626#ifdef HAVE_USM_DES_PRIV_PROTOCOL
627 config.snmp_session.securityAuthProto = usmDESPrivProtocol; 627 config.snmp_session.securityAuthProto = usmDESPrivProtocol;
628 config.snmp_session.securityAuthProtoLen = OID_LENGTH(usmDESPrivProtocol); 628 config.snmp_session.securityAuthProtoLen = OID_LENGTH(usmDESPrivProtocol);
629#else 629#else
@@ -997,7 +997,7 @@ void print_help(void) {
997 printf(" %s\n", _("SNMPv3 securityLevel")); 997 printf(" %s\n", _("SNMPv3 securityLevel"));
998 printf(" %s\n", "-a, --authproto=[MD5|SHA]"); 998 printf(" %s\n", "-a, --authproto=[MD5|SHA]");
999 printf(" %s\n", _("SNMPv3 auth proto")); 999 printf(" %s\n", _("SNMPv3 auth proto"));
1000#ifdef usmDESPrivProtocol 1000#ifdef HAVE_USM_DES_PRIV_PROTOCOL
1001 printf(" %s\n", "-x, --privproto=[DES|AES]"); 1001 printf(" %s\n", "-x, --privproto=[DES|AES]");
1002 printf(" %s\n", _("SNMPv3 priv proto (default DES)")); 1002 printf(" %s\n", _("SNMPv3 priv proto (default DES)"));
1003#else 1003#else