snmptsm.h 901 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Header file for Transport Security Model support
  3. */
  4. #ifndef SNMPTSM_H
  5. #define SNMPTSM_H
  6. #define TSM_SEC_MODEL_NUMBER SNMP_SEC_MODEL_TSM
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. int tsm_rgenerate_out_msg(struct
  11. snmp_secmod_outgoing_params *);
  12. int tsm_process_in_msg(struct snmp_secmod_incoming_params
  13. *);
  14. void init_tsm(void);
  15. void shutdown_tsm(void);
  16. #define NETSNMP_TM_SAME_SECURITY_NOT_REQUIRED 0
  17. #define NETSNMP_TM_USE_SAME_SECURITY 1
  18. /* basically we store almost nothing else but a tm ref */
  19. typedef struct netsnmp_tsmSecurityReference_s {
  20. netsnmp_tmStateReference *tmStateRef;
  21. } netsnmp_tsmSecurityReference;
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* SNMPTSM_H */