powerman/Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
Antonio Teixeira 59a0432830 Accepting request 1174075 from home:ateixeira:branches:hardware
- Update to version 2.4.2:
  * New features
    * redfishpower: cache host resolution lookups (#190)
    * redfishpower: support new --resolve-hosts option (#188)
    * redfishpower: support message timeout config (#186)
  * Fixes
    * redfishpower: increase default message timeout (#191)
    * redfishpower: output more detailed error messages (#183)
- Changelog for 2.4.1 and 2.4.0:
  * Too many changes, see NEWS.md
- Removed patches:
  * service-dynamic-user-autofiles.patch
  * service-dynamic-user-configure.patch
- Refreshed patches:
  * Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
  * harden_powerman.service.patch

OBS-URL: https://build.opensuse.org/request/show/1174075
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=52
2024-05-20 17:13:20 +00:00

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,