net-snmp 5.7
|
00001 /* 00002 * Header file for Kerberos Security Model support 00003 */ 00004 00005 #ifndef SNMPKSM_H 00006 #define SNMPKSM_H 00007 00008 #ifdef __cplusplus 00009 extern "C" { 00010 #endif 00011 00012 int ksm_rgenerate_out_msg(struct 00013 snmp_secmod_outgoing_params *); 00014 int ksm_process_in_msg(struct snmp_secmod_incoming_params 00015 *); 00016 void init_ksm(void); 00017 00018 void shutdown_ksm(void); 00019 00020 /* 00021 * This is the "key usage" that is used by the new crypto API. It's used 00022 * generally only if you are using derived keys. The specifical says that 00023 * 1024-2047 are to be used by applications, and that even usage numbers are 00024 * to be used for encryption and odd numbers are to be used for checksums. 00025 */ 00026 00027 #define KSM_KEY_USAGE_ENCRYPTION 1030 00028 #define KSM_KEY_USAGE_CHECKSUM 1031 00029 00030 #define KSM_SEC_MODEL_NUMBER SNMP_SEC_MODEL_KSM 00031 00032 #ifdef __cplusplus 00033 } 00034 #endif 00035 #endif /* SNMPKSM_H */