mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-14 18:36:27 +00:00
snmp_v3: fix reported usmUserAuthProtocol for SHA
This commit is contained in:
parent
3aa82745c1
commit
1c5cc7bc02
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user