net-snmp 5.7
snmptsm.h
00001 /*
00002  * Header file for Transport Security Model support
00003  */
00004 
00005 #ifndef SNMPTSM_H
00006 #define SNMPTSM_H
00007 
00008 #define TSM_SEC_MODEL_NUMBER            SNMP_SEC_MODEL_TSM
00009 
00010 #ifdef __cplusplus
00011 extern          "C" {
00012 #endif
00013 
00014     int             tsm_rgenerate_out_msg(struct
00015                                           snmp_secmod_outgoing_params *);
00016     int             tsm_process_in_msg(struct snmp_secmod_incoming_params
00017                                        *);
00018     void            init_tsm(void);
00019 
00020     void            shutdown_tsm(void);
00021 
00022     #define NETSNMP_TM_SAME_SECURITY_NOT_REQUIRED 0
00023     #define NETSNMP_TM_USE_SAME_SECURITY          1
00024 
00025     /* basically we store almost nothing else but a tm ref */
00026     typedef struct netsnmp_tsmSecurityReference_s {
00027        netsnmp_tmStateReference *tmStateRef;
00028     } netsnmp_tsmSecurityReference;
00029 
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033 #endif                          /* SNMPTSM_H */