Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / library / snmpv3.h
1 /*
2  * snmpv3.h
3  */
4
5 #ifndef SNMPV3_H
6 #define SNMPV3_H
7
8 #ifdef __cplusplus
9 extern          "C" {
10 #endif
11
12 #define MAX_ENGINEID_LENGTH 128
13
14 #define ENGINEID_TYPE_IPV4    1
15 #define ENGINEID_TYPE_IPV6    2
16 #define ENGINEID_TYPE_MACADDR 3
17 #define ENGINEID_TYPE_TEXT    4
18 #define ENGINEID_TYPE_UCD_RND 128
19
20 #define DEFAULT_NIC "eth0"
21
22     int             setup_engineID(u_char ** eidp, const char *text);
23     void            engineID_conf(const char *word, char *cptr);
24     void            engineBoots_conf(const char *, char *);
25     void            engineIDType_conf(const char *, char *);
26     void            engineIDNic_conf(const char *, char *);
27     void            snmpv3_authtype_conf(const char *word, char *cptr);
28     void            snmpv3_privtype_conf(const char *word, char *cptr);
29     void            usm_parse_create_usmUser(const char *token,
30                                              char *line);
31     void            init_snmpv3(const char *);
32     int             init_snmpv3_post_config(int majorid, int minorid,
33                                             void *serverarg,
34                                             void *clientarg);
35     int             init_snmpv3_post_premib_config(int majorid,
36                                                    int minorid,
37                                                    void *serverarg,
38                                                    void *clientarg);
39     void            shutdown_snmpv3(const char *type);
40     int             snmpv3_store(int majorID, int minorID, void *serverarg,
41                                  void *clientarg);
42     u_long          snmpv3_local_snmpEngineBoots(void);
43     int             snmpv3_clone_engineID(u_char **, size_t *, u_char *,
44                                           size_t);
45     size_t          snmpv3_get_engineID(u_char * buf, size_t buflen);
46     u_char         *snmpv3_generate_engineID(size_t *);
47     u_long          snmpv3_local_snmpEngineTime(void);
48     int             get_default_secLevel(void);
49     const oid      *get_default_authtype(size_t *);
50     const oid      *get_default_privtype(size_t *);
51     void            snmpv3_set_engineBootsAndTime(int boots, int ttime);
52
53 #ifdef __cplusplus
54 }
55 #endif
56 #endif                          /* SNMPV3_H */