mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
snmpv3_mbedtls.c: snmpv3_crypt() is only needed when LWIP_SNMP_V3_CRYPTO is enabled
This commit is contained in:
parent
0b6370b9b8
commit
87354abf0f
@ -102,6 +102,8 @@ free_md:
|
|||||||
return ERR_ARG;
|
return ERR_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LWIP_SNMP_V3_CRYPTO
|
||||||
|
|
||||||
err_t
|
err_t
|
||||||
snmpv3_crypt(struct snmp_pbuf_stream* stream, u16_t length,
|
snmpv3_crypt(struct snmp_pbuf_stream* stream, u16_t length,
|
||||||
const u8_t* key, const u8_t* priv_param, const u32_t engine_boots,
|
const u8_t* key, const u8_t* priv_param, const u32_t engine_boots,
|
||||||
@ -218,6 +220,8 @@ error:
|
|||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* LWIP_SNMP_V3_CRYPTO */
|
||||||
|
|
||||||
/* A.2.1. Password to Key Sample Code for MD5 */
|
/* A.2.1. Password to Key Sample Code for MD5 */
|
||||||
void
|
void
|
||||||
snmpv3_password_to_key_md5(
|
snmpv3_password_to_key_md5(
|
||||||
|
Loading…
Reference in New Issue
Block a user