snmpksm.h 1008 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Header file for Kerberos Security Model support
  3. */
  4. #ifndef SNMPKSM_H
  5. #define SNMPKSM_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. int ksm_rgenerate_out_msg(struct
  10. snmp_secmod_outgoing_params *);
  11. int ksm_process_in_msg(struct snmp_secmod_incoming_params
  12. *);
  13. void init_ksm(void);
  14. void shutdown_ksm(void);
  15. /*
  16. * This is the "key usage" that is used by the new crypto API. It's used
  17. * generally only if you are using derived keys. The specifical says that
  18. * 1024-2047 are to be used by applications, and that even usage numbers are
  19. * to be used for encryption and odd numbers are to be used for checksums.
  20. */
  21. #define KSM_KEY_USAGE_ENCRYPTION 1030
  22. #define KSM_KEY_USAGE_CHECKSUM 1031
  23. #define KSM_SEC_MODEL_NUMBER SNMP_SEC_MODEL_KSM
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* SNMPKSM_H */