OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/auth/token.h
00001 /* Machine generated file -- Do NOT edit */
00002 
00003 #ifndef _RXGEN_TOKEN_
00004 #define _RXGEN_TOKEN_
00005 
00006 #ifdef  KERNEL
00007 /* The following 'ifndefs' are not a good solution to the vendor's omission of surrounding all system includes with 'ifndef's since it requires that this file is included after the system includes...*/
00008 #include <afsconfig.h>
00009 #include "afs/param.h"
00010 #ifdef  UKERNEL
00011 #include "afs/sysincludes.h"
00012 #include "rx/xdr.h"
00013 #include "rx/rx.h"
00014 #include "rx/rx_globals.h"
00015 #include <ubik.h>
00016 #else   /* UKERNEL */
00017 #include "h/types.h"
00018 #ifndef SOCK_DGRAM  /* XXXXX */
00019 #include "h/socket.h"
00020 #endif
00021 struct ubik_client;
00022 #ifndef DTYPE_SOCKET  /* XXXXX */
00023 #ifndef AFS_LINUX22_ENV
00024 #include "h/file.h"
00025 #endif
00026 #endif
00027 #ifndef S_IFMT  /* XXXXX */
00028 #include "h/stat.h"
00029 #endif
00030 #if defined (AFS_OBSD_ENV) && !defined (MLEN)
00031 #include "sys/mbuf.h"
00032 #endif
00033 #ifndef IPPROTO_UDP /* XXXXX */
00034 #include "netinet/in.h"
00035 #endif
00036 #ifndef DST_USA  /* XXXXX */
00037 #include "h/time.h"
00038 #endif
00039 #ifndef AFS_LINUX22_ENV
00040 #include "rpc/types.h"
00041 #endif /* AFS_LINUX22_ENV */
00042 #ifndef XDR_GETLONG /* XXXXX */
00043 #ifdef AFS_LINUX22_ENV
00044 #ifndef quad_t
00045 #define quad_t __quad_t
00046 #define u_quad_t __u_quad_t
00047 #endif
00048 #endif
00049 #include "rx/xdr.h"
00050 #endif /* XDR_GETLONG */
00051 #endif   /* UKERNEL */
00052 #include "afs/rxgen_consts.h"
00053 #include "afs_osi.h"
00054 #include "rx/rx.h"
00055 #include "rx/rx_globals.h"
00056 #else   /* KERNEL */
00057 #include <afs/param.h>
00058 #include <afs/stds.h>
00059 #include <sys/types.h>
00060 #include <rx/xdr.h>
00061 #include <rx/rx.h>
00062 #include <rx/rx_globals.h>
00063 #include <afs/rxgen_consts.h>
00064 #include <ubik.h>
00065 #endif  /* KERNEL */
00066 
00067 #ifdef AFS_NT40_ENV
00068 #ifndef AFS_RXGEN_EXPORT
00069 #define AFS_RXGEN_EXPORT __declspec(dllimport)
00070 #endif /* AFS_RXGEN_EXPORT */
00071 #else /* AFS_NT40_ENV */
00072 #define AFS_RXGEN_EXPORT
00073 #endif /* AFS_NT40_ENV */
00074 
00075 #define AFSTOKEN_RK_TIX_MAX 12000
00076 
00077 struct token_rxkad {
00078         afs_int32 rk_viceid;
00079         afs_int32 rk_kvno;
00080         char rk_key[8];
00081         afs_int32 rk_begintime;
00082         afs_int32 rk_endtime;
00083         afs_int32 rk_primary_flag;
00084         struct rk_ticket {
00085                 u_int rk_ticket_len;
00086                 char *rk_ticket_val;
00087         } rk_ticket;
00088 };
00089 typedef struct token_rxkad token_rxkad;
00090 bool_t xdr_token_rxkad(XDR *xdrs, token_rxkad *objp);
00091 
00092 #define AFSTOKEN_UNION_NOAUTH 0
00093 #define AFSTOKEN_UNION_KAD 2
00094 
00095 struct ktc_tokenUnion {
00096         afs_int32 at_type;
00097         union {
00098                 token_rxkad at_kad;
00099         } ktc_tokenUnion_u;
00100 };
00101 typedef struct ktc_tokenUnion ktc_tokenUnion;
00102 bool_t xdr_ktc_tokenUnion(XDR *xdrs, ktc_tokenUnion *objp);
00103 
00104 #define AFSTOKEN_LENGTH_MAX 16384
00105 
00106 typedef struct token_opaque {
00107         u_int token_opaque_len;
00108         char *token_opaque_val;
00109 } token_opaque;
00110 bool_t xdr_token_opaque(XDR *xdrs, token_opaque *objp);
00111 
00112 #define AFSTOKEN_EX_SETPAG 0x00000001
00113 #define AFSTOKEN_MAX 8
00114 #define AFSTOKEN_CELL_MAX 64
00115 
00116 struct ktc_setTokenData {
00117         afs_int32 flags;
00118         char *cell;
00119         struct tokens {
00120                 u_int tokens_len;
00121                 token_opaque *tokens_val;
00122         } tokens;
00123 };
00124 typedef struct ktc_setTokenData ktc_setTokenData;
00125 bool_t xdr_ktc_setTokenData(XDR *xdrs, ktc_setTokenData *objp);
00126 
00127 #endif  /* _RXGEN_TOKEN_ */
 All Data Structures Files Functions Variables