*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
-
-#if defined(UKERNEL)
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "afs/stds.h"
-#include "afs/pthread_glock.h"
-#include "rx/rxkad.h"
-#include "rx/rx.h"
-#include "afs/cellconfig.h"
-#include "afs/keys.h"
-#include "afs/auth.h"
-#include "afs/pthread_glock.h"
-#include "des.h"
-#include "des_prototypes.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <afs/pthread_glock.h>
#include <sys/types.h>
#include "cellconfig.h"
#include "keys.h"
#include "auth.h"
-#endif /* defined(UKERNEL) */
/* return a null security object if nothing else can be done */
static afs_int32
#include <afs/stds.h>
#include <afs/pthread_glock.h>
-#ifdef UKERNEL
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "des/des.h"
-#include "rx/rxkad.h"
-#include <netdb.h>
-#include <ctype.h>
-#else /* UKERNEL */
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#endif
#include <rx/rxkad.h>
#include <rx/rx.h>
-#endif /* UKERNEL */
+
#include <afs/afsutil.h>
#include "cellconfig.h"
#include "keys.h"
/* ticket caching code */
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
-
#if defined(UKERNEL)
-#include "afs/sysincludes.h"
#include "afsincludes.h"
-#include "afs/stds.h"
-#include "afs/pthread_glock.h"
-#include "afs/vice.h"
-#include "afs/auth.h"
-#include "afs/venus.h"
-#include "afs/pthread_glock.h"
-#include "afs/dirpath.h"
-#include <ctype.h>
-
-#if !defined(min)
-#define min(a,b) ((a)<(b)?(a):(b))
-#endif /* !defined(min) */
-
-#else /* defined(UKERNEL) */
+#endif
#ifdef AFS_SUN5_ENV
#include <unistd.h>
#include <afs/auth.h>
#include <afs/venus.h>
#include <afs/afsutil.h>
-#include <afs/sys_prototypes.h>
-#endif /* defined(UKERNEL) */
+#if !defined(UKERNEL)
+#include <afs/sys_prototypes.h>
+#endif
#if defined(LINUX_KEYRING_SUPPORT) && defined(HAVE_SESSION_TO_PARENT)
#include <sys/syscall.h>
#ifndef DES_DEFS
#define DES_DEFS
-#if defined(UKERNEL)
-#include "des/mit-cpyright.h"
-#else /* defined(UKERNEL) */
#include "mit-cpyright.h"
-#endif /* defined(UKERNEL) */
typedef unsigned char des_cblock[8]; /* crypto-block size */
/* Key schedule */
*/
#include <afsconfig.h>
-#ifdef KERNEL
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
#ifdef KERNEL
/* These routines provide a convenient interface to the AuthServer. */
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
#ifdef IGNORE_SOME_GCC_WARNINGS
# pragma GCC diagnostic warning "-Wstrict-prototypes"
#define UBIK_LEGACY_CALLITER 1
-#if defined(UKERNEL)
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "afs_usrops.h"
-#include "afs/stds.h"
-#include "afs/pthread_glock.h"
-#include "des.h"
-#include "des_prototypes.h"
-#include "rx/rxkad.h"
-#include "afs/cellconfig.h"
-#include "ubik.h"
-#include "afs/auth.h"
-#include "afs/afsutil.h"
-
-#include "afs/kauth.h"
-#include "afs/kautils.h"
-#include "afs/pthread_glock.h"
-
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <afs/pthread_glock.h>
#include <sys/types.h>
#include <afs/afsutil.h>
#include "kauth.h"
#include "kautils.h"
-#endif /* defined(UKERNEL) */
+#ifdef UKERNEL
+#include "afs_usrops.h"
+#endif
static struct afsconf_dir *conf = 0;
static struct afsconf_cell explicit_cell_server_list;
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
-
-#if defined(UKERNEL)
-#if defined(HAVE_UNISTD_H) && !defined(__USE_XOPEN)
-#define __USE_XOPEN
-#endif
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "afs/stds.h"
-#include "afs/pthread_glock.h"
-#include "afs/cellconfig.h"
-#include "afs/afsutil.h"
-#include "afs/auth.h"
-#include "afs/kauth.h"
-#include "afs/kautils.h"
-#include "afs/pthread_glock.h"
-#include "des/des.h"
-#include "des/des_prototypes.h"
-
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <afs/pthread_glock.h>
#include <stdio.h>
#include <des_prototypes.h>
#include "kauth.h"
#include "kautils.h"
-#endif /* defined(UKERNEL) */
/* This defines the Andrew string_to_key function. It accepts a password
#include <afs/param.h>
-#if defined(UKERNEL)
-#include "rx/xdr.h"
-#include "afs/kauth.h"
-#else /* defined(UKERNEL) */
#include <rx/xdr.h>
#include <afs/kauth.h>
-#endif /* defined(UKERNEL) */
#define MAXBS 2048 /* try to avoid horrible allocs */
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
-
-#if defined(UKERNEL)
-#include "afs/pthread_glock.h"
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "afs_usrops.h"
-#include "afs/cellconfig.h"
-#include "afs/pthread_glock.h"
-#include "rx/xdr.h"
-#include "rx/rx.h"
-#include "afs/kauth.h"
-#include "afs/kautils.h"
-#include "afs/afsutil.h"
-#else /* defined(UKERNEL) */
#include <afs/pthread_glock.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include "kauth.h"
#include "kautils.h"
#include <afs/afsutil.h>
-#endif /* defined(UKERNEL) */
+
+#ifdef UKERNEL
+#include "afs_usrops.h"
+#endif
/* This is a utility routine that many parts of kauth use but it invokes the
afsconf package so its best to have it in a separate .o file to make the
#ifndef __KAUTILS__
#define __KAUTILS__
-#if !defined(UKERNEL)
#include <des.h>
#include <afs/auth.h>
#include <afs/cellconfig.h>
#include <afs/afsutil.h>
-#else
-#include "ubik.h"
-#include "afs/auth.h"
-#include "afs/cellconfig.h"
-#endif /* !defined(UKERNEL) */
-
#define KA_TIMESTR_LEN 30
#define Date afs_uint32
from the AuthServer. */
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
+#ifdef UKERNEL
+# include "afsincludes.h"
+#endif
-#if defined(UKERNEL)
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "afs/stds.h"
-#include "rx/xdr.h"
-#include "afs/pthread_glock.h"
-#include "afs/lock.h"
-#include "ubik.h"
-#include "afs/kauth.h"
-#include "afs/kautils.h"
-#include "afs/auth.h"
-#include "afs/pthread_glock.h"
-#include "afs/afsutil.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <sys/types.h>
#include <rx/xdr.h>
#include "kauth.h"
#include "kautils.h"
#include <afs/auth.h>
-#endif /* defined(UKERNEL) */
afs_int32
* package. */
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
-#if defined(UKERNEL)
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "afs/stds.h"
-#include "afs/com_err.h"
-#include "afs/cellconfig.h"
-#include "afs/auth.h"
-#include "afs/ptint.h"
-#include "afs/pterror.h"
-#include "afs/ptserver.h"
-#include "rx/rx.h"
-#include "rx/rx_globals.h"
-#include "rx/rxkad.h"
-#include "afs/kauth.h"
-#include "afs/kautils.h"
-#include "afs/afsutil.h"
-#include "afs/ptuser.h"
-#include "des.h"
-#include "des_prototypes.h"
-#include "afs/ktc.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <signal.h>
#include <afs/com_err.h>
#include <afs/ptuser.h>
#include <afs/ptserver.h>
#include <afs/afsutil.h>
+
+#ifndef UKERNEL
#include <afs/sys_prototypes.h>
+#endif
+
#include <des.h>
#include <des_prototypes.h>
#include <rx/rx.h>
#include "kauth.h"
#include "kautils.h"
#include <afs/ktc.h>
-#endif /* defined(UKERNEL) */
afs_int32
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#if defined(UKERNEL)
-#include "afs/lock.h"
-#include "ubik.h"
-#include "afs/ptint.h"
-#include "afs/ptserver.h"
-#else /* defined(UKERNEL) */
#include <lock.h>
#include <ubik.h>
#include "ptint.h"
#include "ptserver.h"
-#endif /* defined(UKERNEL) */
#define pr_ErrorMsg afs_error_message
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#if defined(UKERNEL)
-#include "afs/ptint.h"
-#else /* defined(UKERNEL) */
#include "ptint.h"
-#endif /* defined(UKERNEL) */
#define PRSRV 73
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
-
-#if defined(UKERNEL)
-#include "afs/sysincludes.h"
-#include "afs_usrops.h"
-#include "afsincludes.h"
-#include "afs/stds.h"
-#include "rx/rx.h"
-#include "rx/xdr.h"
-#include "afs/auth.h"
-#include "afs/cellconfig.h"
-#include "afs/afsutil.h"
-#include "afs/ptclient.h"
-#include "afs/ptuser.h"
-#include "afs/pterror.h"
-#include "afs/com_err.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <ctype.h>
#include <sys/types.h>
#include "ptclient.h"
#include "ptuser.h"
#include "pterror.h"
-#endif /* defined(UKERNEL) */
+#ifdef UKERNEL
+# include "afs_usrops.h"
+#endif
struct ubik_client *pruclient = 0;
static afs_int32 lastLevel; /* security level pruclient, if any */
*/
#include <afsconfig.h>
-#ifdef UKERNEL
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
-
-#ifdef UKERNEL
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "rx/rx.h"
-#else /* ! UKERNEL */
#include <sys/types.h>
#include <errno.h>
#include <assert.h>
#include "rx.h"
-#endif /* UKERNEL */
/*
* We initialize rxi_connectionCache at compile time, so there is no
/* RCSID("$Heimdal: crc.c,v 1.9 2000/08/03 01:45:14 assar Exp $"); */
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "../afs/param.h"
-#else
#include <afs/param.h>
-#endif
-#if defined(UKERNEL)
-#include "../afs/sysincludes.h"
-#include "../afs/afsincludes.h"
-#include "../afs/stds.h"
-#include "../rx/xdr.h"
-#include "../rx/rx.h"
-#include "../des/des.h"
-#include "../afs/lifetimes.h"
-#include "../afs/rxkad.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include <rx/rxkad.h>
#include <des.h>
#include "lifetimes.h"
-#endif /* defined(UKERNEL) */
static u_long table[256];
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "../afs/param.h"
-#else
#include <afs/param.h>
-#endif
-#if defined(UKERNEL)
-#include "../afs/sysincludes.h"
-#include "../afs/afsincludes.h"
-#include "../afs/stds.h"
-#include "../rx/xdr.h"
-#include "../rx/rx.h"
-#include "../des/des.h"
-#include "../afs/lifetimes.h"
-#include "../afs/rxkad.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include <rx/rxkad.h>
#include <des.h>
#include "lifetimes.h"
-#endif /* defined(UKERNEL) */
-
-
-
-
-
-
-
#include "md4.h"
#include "hash.h"
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "../afs/param.h"
-#else
#include <afs/param.h>
-#endif
-#if defined(UKERNEL)
-#include "../afs/sysincludes.h"
-#include "../afs/afsincludes.h"
-#include "../afs/stds.h"
-#include "../rx/xdr.h"
-#include "../rx/rx.h"
-#include "../des/des.h"
-#include "../afs/lifetimes.h"
-#include "../afs/rxkad.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include <rx/rxkad.h>
#include <des.h>
#include "lifetimes.h"
-#endif /* defined(UKERNEL) */
-
-
-
-
-
-
#include "md5.h"
#include "hash.h"
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
#include <stdio.h>
-#if defined(UKERNEL)
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "afs/stds.h"
-#include "rx/xdr.h"
-#include "rx/rx.h"
-#include "rxkad/lifetimes.h"
-#include "des.h"
-#include "des/des_prototypes.h"
-#include "rx/rxkad.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include <rx/rx.h>
#include "lifetimes.h"
#include "rxkad.h"
-#endif /* defined(UKERNEL) */
/* This union is used to insure we allocate enough space for a key
* schedule even if we are linked against a library that uses OpenSSL's
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "../afs/param.h"
-#else
#include <afs/param.h>
-#endif
#ifdef IGNORE_SOME_GCC_WARNINGS
# pragma GCC diagnostic warning "-Wimplicit-function-declaration"
#endif
-#if defined(UKERNEL)
-#include "../afs/sysincludes.h"
-#include "../afs/afsincludes.h"
-#include "../afs/stds.h"
-#include "../rx/xdr.h"
-#include "../rx/rx.h"
-#include "../afs/lifetimes.h"
-#include "../afs/rxkad.h"
-#else /* defined(UKERNEL) */
#include <afs/stds.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include <rx/rx.h>
#include "lifetimes.h"
#include "rxkad.h"
-#endif /* defined(UKERNEL) */
#include "v5gen-rewrite.h"
#include "asn1-common.h"
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifdef UKERNEL
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
#include <afsconfig.h>
-#ifdef UKERNEL
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include <rx/rxstat.h>
-#else /* UKERNEL */
#include <afs/stds.h>
#include <rx/rx.h>
#include <rx/rxstat.h>
-#ifdef KERNEL
+#if defined(KERNEL) && !defined(UKERNEL)
#include "sys/errno.h"
-#else /* KERNEL */
+#else /* KERNEL && !UKERNEL */
#include <errno.h>
-#endif /* KERNEL */
-#endif /* UKERNEL */
+#endif /* KERNEL && !UKERNEL */
/*
* This file creates a centralized mechanism for implementing the rpc
#endif
-#if defined(UKERNEL)
-#include "ubik_int.h"
-#else /* defined(UKERNEL) */
#include <ubik_int.h>
-#endif /* defined(UKERNEL) */
/*! \name ubik_trans types */
#define UBIK_READTRANS 0
*/
#include <afsconfig.h>
-#if defined(UKERNEL)
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
#ifdef IGNORE_SOME_GCC_WARNINGS
# pragma GCC diagnostic warning "-Wstrict-prototypes"
#endif
-#if defined(UKERNEL)
-#include "afs/sysincludes.h"
+#ifdef UKERNEL
#include "afsincludes.h"
-#include "afs/stds.h"
-#include "rx/xdr.h"
-#include "rx/rx.h"
-#include "afs/lock.h"
-#include "afs/rxgen_consts.h"
-#define UBIK_LEGACY_CALLITER 1
-#include "ubik.h"
-#include "afs/pthread_glock.h"
-#include <netdb.h>
-#else /* defined(UKERNEL) */
+#endif
+
#include <afs/stds.h>
#include <afs/pthread_glock.h>
#include <stdio.h>
#include <netinet/in.h>
#endif
#include <afs/rxgen_consts.h>
+#define UBIK_LEGACY_CALLITER
#include "ubik.h"
-#endif /* defined(UKERNEL) */
#ifdef HAVE_STDINT_H
# include <stdint.h>
extern size_t strlcpy(char *dst, const char *src, size_t siz);
#endif
-#ifndef UKERNEL
-#include "afs/ktime.h"
-#endif
+#include <afs/ktime.h>
#include "afsutil_prototypes.h"
#endif /* _AFSUTIL_H_ */
#include <afs/param.h>
-#ifdef UKERNEL
-#include "afs/sysincludes.h"
-#include "afs/afsutil.h"
-#include <netdb.h>
-#include <ctype.h>
-#else /* UKERNEL */
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "afsutil.h"
-#endif /* UKERNEL */
/* also parse a.b.c.d addresses */