snmp_v3: fix reported usmUserAuthProtocol for SHA

This commit is contained in:
Jan Breuer 2023-04-26 16:06:46 +02:00 committed by Simon Goldschmidt
parent 3aa82745c1
commit 1c5cc7bc02

View File

@ -62,7 +62,7 @@ static const struct snmp_obj_id *snmp_auth_algo_to_oid(snmpv3_auth_algo_t algo)
if (algo == SNMP_V3_AUTH_ALGO_MD5) { if (algo == SNMP_V3_AUTH_ALGO_MD5) {
return &usmHMACMD5AuthProtocol; return &usmHMACMD5AuthProtocol;
} else if (algo == SNMP_V3_AUTH_ALGO_SHA) { } else if (algo == SNMP_V3_AUTH_ALGO_SHA) {
return &usmHMACMD5AuthProtocol; return &usmHMACSHAAuthProtocol;
} }
return &usmNoAuthProtocol; return &usmNoAuthProtocol;