and added files
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / library / snmpksm.h
diff --git a/userapps/opensource/net-snmp/include/net-snmp/library/snmpksm.h b/userapps/opensource/net-snmp/include/net-snmp/library/snmpksm.h
new file mode 100644 (file)
index 0000000..0284727
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Header file for Kerberos Security Model support
+ */
+
+#ifndef SNMPKSM_H
+#define SNMPKSM_H
+
+#ifdef __cplusplus
+extern          "C" {
+#endif
+
+    int             ksm_rgenerate_out_msg(struct
+                                          snmp_secmod_outgoing_params *);
+    int             ksm_process_in_msg(struct snmp_secmod_incoming_params
+                                       *);
+    void            init_usm(void);
+
+    /*
+     * This is the "key usage" that is used by the new crypto API.  It's used
+     * generally only if you are using derived keys.  The specifical says that
+     * 1024-2047 are to be used by applications, and that even usage numbers are
+     * to be used for encryption and odd numbers are to be used for checksums.
+     */
+
+#define KSM_KEY_USAGE_ENCRYPTION       1030
+#define KSM_KEY_USAGE_CHECKSUM         1031
+
+#ifdef __cplusplus
+}
+#endif
+#endif                          /* SNMPKSM_H */