usmUser.h
资源名称:snmp.src.rar [点击查看]
上传用户:cxs890
上传日期:2021-05-22
资源大小:347k
文件大小:2k
源码类别:
SNMP编程
开发平台:
C/C++
- /*
- * usmUser.h
- *
- */
- #ifndef _MIBGROUP_USMUSER_H
- #define _MIBGROUP_USMUSER_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "snmpusm.h"
- /* <...prefix>.<engineID_length>.<engineID>.<user_name_length>.<user_name>
- = 1 + 32 + 1 + 32 */
- #define USM_LENGTH_OID_MAX 66
- /* we use header_generic and checkmib from the util_funcs module */
- config_require(util_funcs)
- config_add_mib(SNMP-USER-BASED-SM-MIB)
- /* Magic number definitions: */
- #define USMUSERSPINLOCK 1
- #define USMUSERSECURITYNAME 2
- #define USMUSERCLONEFROM 3
- #define USMUSERAUTHPROTOCOL 4
- #define USMUSERAUTHKEYCHANGE 5
- #define USMUSEROWNAUTHKEYCHANGE 6
- #define USMUSERPRIVPROTOCOL 7
- #define USMUSERPRIVKEYCHANGE 8
- #define USMUSEROWNPRIVKEYCHANGE 9
- #define USMUSERPUBLIC 10
- #define USMUSERSTORAGETYPE 11
- #define USMUSERSTATUS 12
- /* function definitions */
- extern void init_usmUser(void);
- extern FindVarMethod var_usmUser;
- void shutdown_usmUser(void);
- int store_usmUser(int majorID, int minorID, void *serverarg, void *clientarg);
- oid *usm_generate_OID(oid *prefix, int prefixLen, struct usmUser *uptr,
- int *length);
- int usm_parse_oid(oid *oidIndex, int oidLen,
- unsigned char **engineID, int *engineIDLen,
- unsigned char **name, int *nameLen);
- WriteMethod write_usmUserSpinLock;
- WriteMethod write_usmUserCloneFrom;
- WriteMethod write_usmUserAuthProtocol;
- WriteMethod write_usmUserAuthKeyChange;
- WriteMethod write_usmUserPrivProtocol;
- WriteMethod write_usmUserPrivKeyChange;
- WriteMethod write_usmUserPublic;
- WriteMethod write_usmUserStorageType;
- WriteMethod write_usmUserStatus;
- #ifdef __cplusplus
- }
- #endif
- #endif /* _MIBGROUP_USMUSER_H */