]> andersk Git - moira.git/blob - include/afs/auth.h
#define MR_INGRES_ERR and MR_INGRES_SOFTFAIL for backward compatibility
[moira.git] / include / afs / auth.h
1 /*
2  * auth.h:
3  * This file is automatically generated; please do not edit it.
4  */
5 /* Including auth.p.h at beginning of auth.h file. */
6
7 #ifndef __AUTH_AFS_INCL_
8 #define __AUTH_AFS_INCL_    1
9
10                 /* no ticket good for longer than 30 days */
11 #define MAXKTCTICKETLIFETIME (30*24*3600)
12 #define MINKTCTICKETLEN       32
13 #define MAXKTCTICKETLEN       344
14 #define MAXKTCNAMELEN         64        /* name & inst should be 256 */
15 #define MAXKTCREALMLEN        64        /* should be 256 */
16 #define KTC_TIME_UNCERTAINTY (15*60)    /* max skew separating machines' clocks */
17
18 struct ktc_encryptionKey {
19     char data[8];
20 };
21
22 struct ktc_token {
23     long startTime;
24     long endTime;
25     struct ktc_encryptionKey sessionKey;
26     short kvno;
27     int ticketLen;
28     char ticket[MAXKTCTICKETLEN];
29 };
30
31 struct ktc_principal {
32     char name[MAXKTCNAMELEN];
33     char instance[MAXKTCNAMELEN];
34     char cell[MAXKTCREALMLEN];
35 };
36
37 #if 0
38 #define KTC_ERROR       1       /* an unexpected error was encountered */
39 #define KTC_TOOBIG      2       /* a buffer was too small for the response */
40 #define KTC_INVAL       3       /* an invalid argument was passed in */
41 #define KTC_NOENT       4       /* no such entry */
42 #endif
43
44 #endif __AUTH_AFS_INCL_
45
46 /* End of prolog file auth.p.h. */
47
48 #define KTC_ERROR                                (11862784L)
49 #define KTC_TOOBIG                               (11862785L)
50 #define KTC_INVAL                                (11862786L)
51 #define KTC_NOENT                                (11862787L)
52 extern void initialize_ktc_error_table ();
53 #define ERROR_TABLE_BASE_ktc (11862784L)
54
55 /* for compatibility with older versions... */
56 #define init_ktc_err_tbl initialize_ktc_error_table
57 #define ktc_err_base ERROR_TABLE_BASE_ktc
This page took 0.046017 seconds and 5 git commands to generate.