snmpv3_mbedtls.c: snmpv3_crypt() is only needed when LWIP_SNMP_V3_CRYPTO is enabled

This commit is contained in:
Dirk Ziegelmeier 2016-04-14 08:26:29 +02:00
parent 0b6370b9b8
commit 87354abf0f

View File

@ -102,6 +102,8 @@ free_md:
return ERR_ARG;
}
#if LWIP_SNMP_V3_CRYPTO
err_t
snmpv3_crypt(struct snmp_pbuf_stream* stream, u16_t length,
const u8_t* key, const u8_t* priv_param, const u32_t engine_boots,
@ -218,6 +220,8 @@ error:
return ERR_OK;
}
#endif /* LWIP_SNMP_V3_CRYPTO */
/* A.2.1. Password to Key Sample Code for MD5 */
void
snmpv3_password_to_key_md5(