SNMPv3: Missed two locations where the new enums can be used

This commit is contained in:
Dirk Ziegelmeier 2017-03-03 13:21:22 +01:00
parent c961ac70b6
commit 9719c52e62
2 changed files with 5 additions and 4 deletions

View File

@ -50,7 +50,7 @@
err_t
snmpv3_auth(struct snmp_pbuf_stream* stream, u16_t length,
const u8_t* key, u8_t algo, u8_t* hmac_out)
const u8_t* key, snmpv3_auth_algo_t algo, u8_t* hmac_out)
{
u32_t i;
u8_t key_len;
@ -107,7 +107,7 @@ free_md:
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,
const u32_t engine_time, u8_t algo, snmpv3_priv_mode_t mode)
const u32_t engine_time, snmpv3_priv_algo_t algo, snmpv3_priv_mode_t mode)
{
size_t i;
mbedtls_cipher_context_t ctx;

View File

@ -39,6 +39,7 @@
#if LWIP_SNMP && LWIP_SNMP_V3
#include "lwip/apps/snmpv3.h"
#include "snmp_pbuf_stream.h"
/* According to RFC 3411 */
@ -67,9 +68,9 @@ typedef enum
s32_t snmpv3_get_engine_boots_internal(void);
s32_t snmpv3_get_engine_time_internal(void);
err_t snmpv3_auth(struct snmp_pbuf_stream* stream, u16_t length, const u8_t* key, u8_t algo, u8_t* hmac_out);
err_t snmpv3_auth(struct snmp_pbuf_stream* stream, u16_t length, const u8_t* key, snmpv3_auth_algo_t algo, u8_t* hmac_out);
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, const u32_t engine_time, u8_t algo, snmpv3_priv_mode_t mode);
const u8_t* priv_param, const u32_t engine_boots, const u32_t engine_time, snmpv3_priv_algo_t algo, snmpv3_priv_mode_t mode);
err_t snmpv3_build_priv_param(u8_t* priv_param);
void snmpv3_enginetime_timer(void *arg);