Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / auth / token.xg
CommitLineData
805e021f
CE
1/*
2 * afstoken - pioctl interface for new common token data structures.
3 *
4 * revised following suggestions from lha@kth.se 20070511, 20070513
5 */
6
7/* this file is in the public domain. Do what thou wilt. */
8
9const AFSTOKEN_RK_TIX_MAX = 12000; /* Matches entry in rxkad.h */
10
11struct token_rxkad {
12 afs_int32 rk_viceid;
13 afs_int32 rk_kvno;
14 opaque rk_key[8];
15 afs_int32 rk_begintime;
16 afs_int32 rk_endtime;
17 afs_int32 rk_primary_flag;
18 opaque rk_ticket<AFSTOKEN_RK_TIX_MAX>;
19};
20
21const AFSTOKEN_UNION_NOAUTH = 0;
22const AFSTOKEN_UNION_KAD = 2;
23union ktc_tokenUnion switch (afs_int32 at_type) {
24 case AFSTOKEN_UNION_KAD:
25 token_rxkad at_kad;
26};
27
28const AFSTOKEN_LENGTH_MAX = 16384;
29typedef opaque token_opaque<AFSTOKEN_LENGTH_MAX>;
30
31const AFSTOKEN_EX_SETPAG = 0x00000001; /* set tokens in new pag */
32const AFSTOKEN_MAX = 8;
33const AFSTOKEN_CELL_MAX = 64;
34
35struct ktc_setTokenData {
36 afs_int32 flags;
37 string cell<AFSTOKEN_CELL_MAX>;
38 token_opaque tokens<AFSTOKEN_MAX>;
39};