OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/auth/ktc.h
00001 /*
00002  * Copyright 2000, International Business Machines Corporation and others.
00003  * All Rights Reserved.
00004  *
00005  * This software has been released under the terms of the IBM Public
00006  * License.  For details, see the LICENSE file in the top-level source
00007  * directory or online at http://www.openafs.org/dl/license10.html
00008  */
00009 
00010 #ifndef AFS_SRC_AUTH_KTC_H
00011 #define AFS_SRC_AUTH_KTC_H
00012 
00013 extern char * ktc_tkt_string(void);
00014 extern char * ktc_tkt_string_uid(afs_uint32);
00015 extern void ktc_set_tkt_string(char *);
00016 extern int ktc_OldPioctl(void);
00017 
00018 struct ktc_setTokenData;
00019 struct ktc_tokenUnion;
00020 extern int token_findByType(struct ktc_setTokenData *, int,
00021                             struct ktc_tokenUnion *);
00022 extern struct ktc_setTokenData *token_buildTokenJar(char *);
00023 extern int token_addToken(struct ktc_setTokenData *, struct ktc_tokenUnion *);
00024 extern int token_replaceToken(struct ktc_setTokenData *,
00025                               struct ktc_tokenUnion *);
00026 extern int token_SetsEquivalent(struct ktc_setTokenData *,
00027                                 struct ktc_setTokenData *);
00028 extern void token_setPag(struct ktc_setTokenData *, int);
00029 extern void token_FreeSet(struct ktc_setTokenData **);
00030 extern void token_freeToken(struct ktc_tokenUnion **);
00031 extern void token_freeTokenContents(struct ktc_tokenUnion *);
00032 
00033 struct ktc_token;
00034 struct ktc_principal;
00035 extern int token_extractRxkad(struct ktc_setTokenData *, struct ktc_token *,
00036                               int *, struct ktc_principal *);
00037 extern int token_importRxkadViceId(struct ktc_tokenUnion **,
00038                                    struct ktc_token *,
00039                                    afs_int32);
00040 extern int token_setRxkadViceId(struct ktc_tokenUnion *, afs_int32);
00041 #endif /* AFS_SRC_AUTH_KTC_H */
 All Data Structures Files Functions Variables