mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Some whitespace fixes to Marco's patches
This commit is contained in:
parent
f0605a510f
commit
fef7ce3c0d
@ -944,8 +944,8 @@ snmp_parse_inbound_frame(struct snmp_request *request)
|
||||
snmpv3_get_engine_id(&eid, &eid_len);
|
||||
|
||||
if ((request->msg_authoritative_engine_id_len == 0) ||
|
||||
(request->msg_authoritative_engine_id_len != eid_len) ||
|
||||
(memcmp(eid, request->msg_authoritative_engine_id, eid_len) != 0)) {
|
||||
(request->msg_authoritative_engine_id_len != eid_len) ||
|
||||
(memcmp(eid, request->msg_authoritative_engine_id, eid_len) != 0)) {
|
||||
snmp_stats.unknownengineids++;
|
||||
request->msg_flags = 0; // noauthnopriv
|
||||
request->error_status = SNMP_ERR_UNKNOWN_ENGINEID;
|
||||
|
@ -233,7 +233,7 @@ static snmp_err_t usmusertable_get_next_instance(const u32_t *column, struct snm
|
||||
if (row_oid->len < engineid_len + name_len + 2) {
|
||||
/* Partial name given according to oid.*/
|
||||
u8_t tmplen = row_oid->len - engineid_len - 2;
|
||||
if (!snmp_oid_in_range(&row_oid->id[name_start], tmplen, usmUserTable_oid_ranges, tmplen)) {
|
||||
if (!snmp_oid_in_range(&row_oid->id[name_start], tmplen, usmUserTable_oid_ranges, tmplen)) {
|
||||
return SNMP_ERR_NOSUCHINSTANCE;
|
||||
}
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ err_t snmpv3_set_user_priv_key(const char *username, const char *password)
|
||||
snmpv3_get_engine_id(&engineid, &engineid_len);
|
||||
switch (p->auth_algo) {
|
||||
case SNMP_V3_AUTH_ALGO_INVAL:
|
||||
return ERR_OK;
|
||||
return ERR_OK;
|
||||
#if LWIP_SNMP_V3_CRYPTO
|
||||
case SNMP_V3_AUTH_ALGO_MD5:
|
||||
snmpv3_password_to_key_md5((u8_t*)password, strlen(password), (u8_t*)engineid, engineid_len, p->priv_key);
|
||||
|
Loading…
Reference in New Issue
Block a user