powerman/Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch

29 lines
1.1 KiB
Diff

From: Egbert Eich <eich@suse.com>
Date: Sat Mar 4 07:59:09 2023 +0100
Subject: Replace deprecated usmHMACMD5AuthProtocol Protocol by SNMP_DEFAULT_AUTH_PROTO
Patch-mainline: Not yet
Git-commit: 01428c387fc149489536ba9a9ea17095f5a20bc5
References:
Signed-off-by: Egbert Eich <eich@suse.com>
Signed-off-by: Egbert Eich <eich@suse.de>
---
src/snmppower/snmppower.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: b/src/snmppower/snmppower.c
===================================================================
--- a/src/snmppower/snmppower.c
+++ b/src/snmppower/snmppower.c
@@ -192,9 +192,9 @@ start_v3 (char **av, char *hostname, str
session.securityNameLen = strlen (av[1]);
session.securityLevel = SNMP_SEC_LEVEL_AUTHNOPRIV;
- session.securityAuthProto = usmHMACMD5AuthProtocol;
+ session.securityAuthProto = SNMP_DEFAULT_AUTH_PROTO;
session.securityAuthProtoLen =
- sizeof (usmHMACMD5AuthProtocol) / sizeof (oid);
+ sizeof (SNMP_DEFAULT_AUTH_PROTO) / sizeof (oid);
session.securityAuthKeyLen = USM_AUTH_KU_LEN;
if (generate_Ku (session.securityAuthProto,