Update Archive-Tar Perl distribution to 3.02 for Perl 5.36 and 5.38
[oi-userland.git] / components / sysutils / powerman / patches / 01-md5-to-sha1.patch
blob3497c18827281b933e848fb7d0c9ffb42ec04b0e
1 --- powerman-2.3.25/snmppower/snmppower.c.orig 2019-01-10 23:49:55.000000000 +0100
2 +++ powerman-2.3.25/snmppower/snmppower.c 2023-02-11 09:36:10.635554323 +0100
3 @@ -34,6 +34,7 @@
5 #include <net-snmp/net-snmp-config.h>
6 #include <net-snmp/net-snmp-includes.h>
7 +#include <net-snmp/library/snmp_api.h>
9 #include "xtypes.h"
10 #include "xmalloc.h"
11 @@ -207,9 +208,9 @@
12 session.securityNameLen = strlen (av[1]);
14 session.securityLevel = SNMP_SEC_LEVEL_AUTHNOPRIV;
15 - session.securityAuthProto = usmHMACMD5AuthProtocol;
16 + session.securityAuthProto = SNMP_DEFAULT_AUTH_PROTO;
17 session.securityAuthProtoLen =
18 - sizeof (usmHMACMD5AuthProtocol) / sizeof (oid);
19 + sizeof (SNMP_DEFAULT_AUTH_PROTO) / sizeof (oid);
20 session.securityAuthKeyLen = USM_AUTH_KU_LEN;
22 if (generate_Ku (session.securityAuthProto,