OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/auth/auth.h
00001 /*
00002  * auth.h:
00003  * This file is automatically generated; please do not edit it.
00004  */
00005 /* Including ./auth.p.h at beginning of auth.h file. */
00006 
00007 /*
00008  * Copyright 2000, International Business Machines Corporation and others.
00009  * All Rights Reserved.
00010  *
00011  * This software has been released under the terms of the IBM Public
00012  * License.  For details, see the LICENSE file in the top-level source
00013  * directory or online at http://www.openafs.org/dl/license10.html
00014  */
00015 
00016 #ifndef __AUTH_AFS_INCL_
00017 #define __AUTH_AFS_INCL_    1
00018 
00019 #include <rx/rxkad.h>           /* to get ticket parameters/contents */
00020 
00021 /* super-user pincipal used by servers when talking to other servers */
00022 #define AUTH_SUPERUSER        "afs"
00023 
00024 struct ktc_token {
00025     afs_int32 startTime;
00026     afs_int32 endTime;
00027     struct ktc_encryptionKey sessionKey;
00028     short kvno;                 /* XXX UNALIGNED */
00029     int ticketLen;
00030     char ticket[MAXKTCTICKETLEN];
00031 };
00032 
00033 int ktc_SetToken(struct ktc_principal *, struct ktc_token *,
00034     struct ktc_principal *, afs_int32);
00035 int ktc_GetToken(struct ktc_principal *, struct ktc_token *,
00036     int, struct ktc_principal *);
00037 
00038 struct ktc_setTokenData;
00039 int ktc_SetTokenEx(struct ktc_setTokenData *);
00040 int ktc_GetTokenEx(char *, struct ktc_setTokenData **);
00041 int ktc_ListTokensEx(int, int *, char **cellName);
00042 
00043 int ktc_ListTokens(int, int *, struct ktc_principal *);
00044 int ktc_ForgetToken(struct ktc_principal *);
00045 int ktc_ForgetAllTokens(void);
00046 afs_uint32 ktc_curpag(void);
00047 
00048 #ifdef AFS_KERBEROS_ENV
00049 int ktc_newpag(void);
00050 #endif
00051 
00052 #ifdef AFS_NT40_ENV
00053 
00054 /* Flags for the flag word sent along with a token */
00055 #define PIOCTL_LOGON            0x1     /* invoked from integrated logon */
00056 
00057 #endif /* AFS_NT40_ENV */
00058 
00059 /* Flags for ktc_SetToken() */
00060 #define AFS_SETTOK_SETPAG       0x1
00061 #define AFS_SETTOK_LOGON        0x2     /* invoked from integrated logon */
00062 
00063 #endif /* __AUTH_AFS_INCL_ */
00064 
00065 /* End of prolog file ./auth.p.h. */
00066 
00067 #define KTC_ERROR                                (11862784L)
00068 #define KTC_TOOBIG                               (11862785L)
00069 #define KTC_INVAL                                (11862786L)
00070 #define KTC_NOENT                                (11862787L)
00071 #define KTC_PIOCTLFAIL                           (11862788L)
00072 #define KTC_NOPIOCTL                             (11862789L)
00073 #define KTC_NOCELL                               (11862790L)
00074 #define KTC_NOCM                                 (11862791L)
00075 #define KTC_RPC                                  (11862792L)
00076 #define KTC_NOCMRPC                              (11862793L)
00077 #define KTC_TOKEN_MUTEX_FAIL                     (11862794L)
00078 extern void initialize_KTC_error_table(void);
00079 #define ERROR_TABLE_BASE_KTC (11862784L)
00080 
00081 /* for compatibility with older versions... */
00082 #define init_KTC_err_tbl initialize_KTC_error_table
00083 #define KTC_err_base ERROR_TABLE_BASE_KTC
00084 
00085 /* for compatibility with other users... */
00086 #define ERROR_TABLE_BASE_ktc (11862784L)
00087 #define init_ktc_err_tbl initialize_KTC_error_table
00088 #define initialize_ktc_error_table initialize_KTC_error_table
00089 #define ktc_err_base ERROR_TABLE_BASE_ktc
 All Data Structures Files Functions Variables