~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to include/net-snmp/library/snmpksm.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

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