35#ifndef LWIP_HDR_APPS_SNMP_V3_H
36#define LWIP_HDR_APPS_SNMP_V3_H
45#if LWIP_SNMP && LWIP_SNMP_V3
49 SNMP_V3_AUTH_ALGO_INVAL = 0,
50 SNMP_V3_AUTH_ALGO_MD5 = 1,
51 SNMP_V3_AUTH_ALGO_SHA = 2
56 SNMP_V3_PRIV_ALGO_INVAL = 0,
57 SNMP_V3_PRIV_ALGO_DES = 1,
58 SNMP_V3_PRIV_ALGO_AES = 2
63 SNMP_V3_USER_STORAGETYPE_OTHER = 1,
64 SNMP_V3_USER_STORAGETYPE_VOLATILE = 2,
65 SNMP_V3_USER_STORAGETYPE_NONVOLATILE = 3,
66 SNMP_V3_USER_STORAGETYPE_PERMANENT = 4,
67 SNMP_V3_USER_STORAGETYPE_READONLY = 5
68} snmpv3_user_storagetype_t;
75void snmpv3_get_engine_id(
const char **
id, u8_t *len);
76err_t snmpv3_set_engine_id(
const char*
id, u8_t len);
78u32_t snmpv3_get_engine_boots(
void);
79void snmpv3_set_engine_boots(u32_t boots);
81u32_t snmpv3_get_engine_time(
void);
82void snmpv3_reset_engine_time(
void);
84err_t snmpv3_get_user(
const char* username, snmpv3_auth_algo_t *auth_algo, u8_t *auth_key, snmpv3_priv_algo_t *priv_algo, u8_t *priv_key);
85u8_t snmpv3_get_amount_of_users(
void);
86err_t snmpv3_get_user_storagetype(
const char *username, snmpv3_user_storagetype_t *storagetype);
87err_t snmpv3_get_username(
char *username, u8_t index);
91void snmpv3_engine_id_changed(
void);
92s32_t snmpv3_get_engine_time_internal(
void);
94void snmpv3_password_to_key_md5(
101void snmpv3_password_to_key_sha(
102 const u8_t *password,
104 const u8_t *engineID,
s8_t err_t
Definition: err.h:96