2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef __AUTH_AFS_INCL_
11 #define __AUTH_AFS_INCL_ 1
13 #include <rx/rxkad.h> /* to get ticket parameters/contents */
15 /* super-user pincipal used by servers when talking to other servers */
16 #define AUTH_SUPERUSER "afs"
21 struct ktc_encryptionKey sessionKey;
22 short kvno; /* XXX UNALIGNED */
24 char ticket[MAXKTCTICKETLEN];
28 extern int ktc_SetToken(
29 struct ktc_principal *server,
30 struct ktc_token *token,
31 struct ktc_principal *client,
35 extern int ktc_GetToken(
36 struct ktc_principal *server,
37 struct ktc_token *token,
39 struct ktc_principal *client
42 extern int ktc_ListTokens(
45 struct ktc_principal *serverName
48 extern int ktc_ForgetToken(
49 struct ktc_principal *server
52 extern int ktc_ForgetAllTokens(void);
54 /* Flags for the flag word sent along with a token */
55 #define PIOCTL_LOGON 0x1 /* invoked from integrated logon */
57 #endif /* AFS_NT40_ENV */
59 /* Flags for ktc_SetToken() */
60 #define AFS_SETTOK_SETPAG 0x1
61 #define AFS_SETTOK_LOGON 0x2 /* invoked from integrated logon */
63 #endif /* __AUTH_AFS_INCL_ */