aklog: Add support for the new SetToken pioctl
[openafs.git] / src / auth / ktc.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
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
8  */
9
10 #ifndef AFS_SRC_AUTH_KTC_H
11 #define AFS_SRC_AUTH_KTC_H
12
13 extern char * ktc_tkt_string(void);
14 extern char * ktc_tkt_string_uid(afs_uint32);
15 extern void ktc_set_tkt_string(char *);
16 extern int ktc_OldPioctl(void);
17
18 struct ktc_setTokenData;
19 struct ktc_tokenUnion;
20 extern int token_findByType(struct ktc_setTokenData *, int,
21                             struct ktc_tokenUnion *);
22 extern struct ktc_setTokenData *token_buildTokenJar(char *);
23 extern int token_addToken(struct ktc_setTokenData *, struct ktc_tokenUnion *);
24 extern int token_replaceToken(struct ktc_setTokenData *,
25                               struct ktc_tokenUnion *);
26 extern void token_setPag(struct ktc_setTokenData *, int);
27
28 struct ktc_token;
29 struct ktc_principal;
30 extern int token_extractRxkad(struct ktc_setTokenData *, struct ktc_token *,
31                               int *, struct ktc_principal *);
32 #endif /* AFS_SRC_AUTH_KTC_H */