diff options
author | markm <markm@FreeBSD.org> | 2000-01-09 08:31:47 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-01-09 08:31:47 +0000 |
commit | ca616c603d9e06e51c9e23fab7536acbdac58331 (patch) | |
tree | 20a735799ecd3b90df122d0a8042762dd62c6b0e /crypto/kerberosIV/include | |
parent | fe83e8abf357ee11114856a5278bb38431a9517c (diff) | |
download | FreeBSD-src-ca616c603d9e06e51c9e23fab7536acbdac58331.zip FreeBSD-src-ca616c603d9e06e51c9e23fab7536acbdac58331.tar.gz |
Clean import of KTH Kerberos (eBones) v1.0.
Diffstat (limited to 'crypto/kerberosIV/include')
-rw-r--r-- | crypto/kerberosIV/include/Makefile.in | 7 | ||||
-rw-r--r-- | crypto/kerberosIV/include/bits.c | 11 | ||||
-rw-r--r-- | crypto/kerberosIV/include/config.h.in | 89 | ||||
-rw-r--r-- | crypto/kerberosIV/include/netdb.x | 7 | ||||
-rw-r--r-- | crypto/kerberosIV/include/protos.H | 9 | ||||
-rw-r--r-- | crypto/kerberosIV/include/win32/config.h | 1185 | ||||
-rw-r--r-- | crypto/kerberosIV/include/win32/ktypes.h | 11 | ||||
-rw-r--r-- | crypto/kerberosIV/include/win32/roken.h | 214 | ||||
-rw-r--r-- | crypto/kerberosIV/include/win32/version.h | 2 | ||||
-rw-r--r-- | crypto/kerberosIV/include/win32/winconf.sh | 37 |
10 files changed, 1537 insertions, 35 deletions
diff --git a/crypto/kerberosIV/include/Makefile.in b/crypto/kerberosIV/include/Makefile.in index b2b0547..f321f16 100644 --- a/crypto/kerberosIV/include/Makefile.in +++ b/crypto/kerberosIV/include/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.58 1999/03/10 19:01:13 joda Exp $ +# $Id: Makefile.in,v 1.59.2.1 1999/12/06 17:23:06 assar Exp $ srcdir = @srcdir@ VPATH = @srcdir@ @@ -31,7 +31,7 @@ libdir = @libdir@ HEADERS = \ acl.h com_err.h com_right.h des.h kadm.h kafs.h kdc.h \ klog.h krb.h krb-protos.h krb-archaeology.h krb_db.h \ - ktypes.h otp.h prot.h sl.h parse_time.h @EXTRA_HEADERS@ + ktypes.h otp.h prot.h sl.h @EXTRA_HEADERS@ LOCL_HEADERS = \ base64.h roken-common.h protos.h resolve.h xdbm.h \ @@ -149,6 +149,9 @@ sl.h: protos.h: $(LN_S) $(srcdir)/protos.H protos.h +netdb.h: + $(LN_S) $(srcdir)/netdb.x netdb.h + bits$(EXECSUFFIX): $(BITS_OBJECTS) $(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(BITS_OBJECTS) diff --git a/crypto/kerberosIV/include/bits.c b/crypto/kerberosIV/include/bits.c index 81c0051..a2c40bc 100644 --- a/crypto/kerberosIV/include/bits.c +++ b/crypto/kerberosIV/include/bits.c @@ -14,12 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Kungliga Tekniska - * Högskolan and its contributors. - * - * 4. Neither the name of the Institute nor the names of its contributors + * 3. Neither the name of the Institute nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -38,7 +33,7 @@ #ifdef HAVE_CONFIG_H #include <config.h> -RCSID("$Id: bits.c,v 1.5 1999/07/06 04:19:26 assar Exp $"); +RCSID("$Id: bits.c,v 1.6 1999/12/02 16:58:36 joda Exp $"); #endif #include <stdio.h> #include <string.h> @@ -147,7 +142,7 @@ int main(int argc, char **argv) } fprintf(f, "/* %s -- this file was generated for %s by\n", fn, HOST); fprintf(f, " %*s %s */\n\n", (int)strlen(fn), "", - "$Id: bits.c,v 1.5 1999/07/06 04:19:26 assar Exp $"); + "$Id: bits.c,v 1.6 1999/12/02 16:58:36 joda Exp $"); fprintf(f, "#ifndef %s\n", hb); fprintf(f, "#define %s\n", hb); fprintf(f, "\n"); diff --git a/crypto/kerberosIV/include/config.h.in b/crypto/kerberosIV/include/config.h.in index 3108078..3727ef1 100644 --- a/crypto/kerberosIV/include/config.h.in +++ b/crypto/kerberosIV/include/config.h.in @@ -71,6 +71,15 @@ /* Define if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING +/* Define if you have the XauFileName function. */ +#undef HAVE_XAUFILENAME + +/* Define if you have the XauReadAuth function. */ +#undef HAVE_XAUREADAUTH + +/* Define if you have the XauWriteAuth function. */ +#undef HAVE_XAUWRITEAUTH + /* Define if you have the _getpty function. */ #undef HAVE__GETPTY @@ -95,12 +104,18 @@ /* Define if you have the cap_set_proc function. */ #undef HAVE_CAP_SET_PROC +/* Define if you have the cgetent function. */ +#undef HAVE_CGETENT + /* Define if you have the chown function. */ #undef HAVE_CHOWN /* Define if you have the chroot function. */ #undef HAVE_CHROOT +/* Define if you have the copyhostent function. */ +#undef HAVE_COPYHOSTENT + /* Define if you have the crypt function. */ #undef HAVE_CRYPT @@ -143,6 +158,9 @@ /* Define if you have the forkpty function. */ #undef HAVE_FORKPTY +/* Define if you have the freehostent function. */ +#undef HAVE_FREEHOSTENT + /* Define if you have the frevoke function. */ #undef HAVE_FREVOKE @@ -170,6 +188,12 @@ /* Define if you have the gethostname function. */ #undef HAVE_GETHOSTNAME +/* Define if you have the getipnodebyaddr function. */ +#undef HAVE_GETIPNODEBYADDR + +/* Define if you have the getipnodebyname function. */ +#undef HAVE_GETIPNODEBYNAME + /* Define if you have the getlogin function. */ #undef HAVE_GETLOGIN @@ -200,9 +224,6 @@ /* Define if you have the getspnam function. */ #undef HAVE_GETSPNAM -/* Define if you have the getspuid function. */ -#undef HAVE_GETSPUID - /* Define if you have the gettimeofday function. */ #undef HAVE_GETTIMEOFDAY @@ -227,6 +248,12 @@ /* Define if you have the inet_aton function. */ #undef HAVE_INET_ATON +/* Define if you have the inet_ntop function. */ +#undef HAVE_INET_NTOP + +/* Define if you have the inet_pton function. */ +#undef HAVE_INET_PTON + /* Define if you have the initgroups function. */ #undef HAVE_INITGROUPS @@ -284,12 +311,21 @@ /* Define if you have the readv function. */ #undef HAVE_READV +/* Define if you have the recvmsg function. */ +#undef HAVE_RECVMSG + /* Define if you have the res_search function. */ #undef HAVE_RES_SEARCH /* Define if you have the revoke function. */ #undef HAVE_REVOKE +/* Define if you have the sa_family_t function. */ +#undef HAVE_SA_FAMILY_T + +/* Define if you have the sendmsg function. */ +#undef HAVE_SENDMSG + /* Define if you have the setegid function. */ #undef HAVE_SETEGID @@ -362,6 +398,12 @@ /* Define if you have the strftime function. */ #undef HAVE_STRFTIME +/* Define if you have the strlcat function. */ +#undef HAVE_STRLCAT + +/* Define if you have the strlcpy function. */ +#undef HAVE_STRLCPY + /* Define if you have the strlwr function. */ #undef HAVE_STRLWR @@ -374,12 +416,18 @@ /* Define if you have the strnlen function. */ #undef HAVE_STRNLEN +/* Define if you have the strptime function. */ +#undef HAVE_STRPTIME + /* Define if you have the strsep function. */ #undef HAVE_STRSEP /* Define if you have the strtok_r function. */ #undef HAVE_STRTOK_R +/* Define if you have the struct_sockaddr_storage function. */ +#undef HAVE_STRUCT_SOCKADDR_STORAGE + /* Define if you have the strupr function. */ #undef HAVE_STRUPR @@ -452,15 +500,6 @@ /* Define if you have the writev function. */ #undef HAVE_WRITEV -/* Define if you have the XauFileName function. */ -#undef HAVE_XAUFILENAME - -/* Define if you have the XauReadAuth function. */ -#undef HAVE_XAUREADAUTH - -/* Define if you have the XauWriteAuth function. */ -#undef HAVE_XAUWRITEAUTH - /* Define if you have the yp_get_default_domain function. */ #undef HAVE_YP_GET_DEFAULT_DOMAIN @@ -761,6 +800,12 @@ /* Define if you have the <wait.h> header file. */ #undef HAVE_WAIT_H +/* Define if you have the X11 library (-lX11). */ +#undef HAVE_LIBX11 + +/* Define if you have the Xau library (-lXau). */ +#undef HAVE_LIBXAU + /* Define if you have the c_r library (-lc_r). */ #undef HAVE_LIBC_R @@ -809,12 +854,6 @@ /* Define if you have the util library (-lutil). */ #undef HAVE_LIBUTIL -/* Define if you have the X11 library (-lX11). */ -#undef HAVE_LIBX11 - -/* Define if you have the Xau library (-lXau). */ -#undef HAVE_LIBXAU - /* Name of package */ #undef PACKAGE @@ -1016,6 +1055,18 @@ /* Define if struct utmpx has field ut_syslen. */ #undef HAVE_STRUCT_UTMPX_UT_SYSLEN +/* Define if struct tm has field tm_gmtoff. */ +#undef HAVE_STRUCT_TM_TM_GMTOFF + +/* Define if struct tm has field tm_zone. */ +#undef HAVE_STRUCT_TM_TM_ZONE + +/* define if you have timezone */ +#undef HAVE_TIMEZONE + +/* define if your system declares timezone */ +#undef HAVE_TIMEZONE_DECLARATION + /* define if you have struct spwd */ #undef HAVE_STRUCT_SPWD @@ -1069,6 +1120,8 @@ #define HAVE_KRB_DISABLE_DEBUG 1 +#define HAVE_KRB_GET_OUR_IP_FOR_REALM 1 + #define RCSID(msg) \ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } diff --git a/crypto/kerberosIV/include/netdb.x b/crypto/kerberosIV/include/netdb.x new file mode 100644 index 0000000..7055918 --- /dev/null +++ b/crypto/kerberosIV/include/netdb.x @@ -0,0 +1,7 @@ +/* fix for broken ultrix netdb.h. */ +#ifndef __NETDB_H__ +#define __NETDB_H__ + +#include "/usr/include/netdb.h" + +#endif /* __NETDB_H__ */ diff --git a/crypto/kerberosIV/include/protos.H b/crypto/kerberosIV/include/protos.H index c72575d..faf911e 100644 --- a/crypto/kerberosIV/include/protos.H +++ b/crypto/kerberosIV/include/protos.H @@ -14,12 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the Kungliga Tekniska - * Högskolan and its contributors. - * - * 4. Neither the name of the Institute nor the names of its contributors + * 3. Neither the name of the Institute nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -39,7 +34,7 @@ /* * Add here functions that don't have a prototype on your system. * - * $Id: protos.H,v 1.45 1998/09/26 21:01:27 joda Exp $ + * $Id: protos.H,v 1.46 1999/12/02 16:58:36 joda Exp $ */ #ifdef NEED_CRYPT_PROTO diff --git a/crypto/kerberosIV/include/win32/config.h b/crypto/kerberosIV/include/win32/config.h new file mode 100644 index 0000000..199961e --- /dev/null +++ b/crypto/kerberosIV/include/win32/config.h @@ -0,0 +1,1185 @@ +/* include/config.h.in. Generated automatically from configure.in by autoheader. */ + +/* Define if using alloca.c. */ +#undef C_ALLOCA + +/* Define to empty if the keyword does not work. */ +#undef const + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +#undef CRAY_STACKSEG_END + +/* Define to `int' if <sys/types.h> doesn't define. */ +#define gid_t int + +/* Define if you have alloca, as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +#undef HAVE_ALLOCA_H + +/* Define if you have a working `mmap' system call. */ +#undef HAVE_MMAP + +/* Define if your struct stat has st_blksize. */ +#undef HAVE_ST_BLKSIZE + +/* Define as __inline if that's what the C compiler calls it. */ +#undef inline + +/* Define to `long' if <sys/types.h> doesn't define. */ +#undef off_t + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef pid_t + +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE + +/* Define as the return type of signal handlers (int or void). */ +#undef RETSIGTYPE + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +#undef size_t + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +#undef STACK_DIRECTION + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if `sys_siglist' is declared by <signal.h>. */ +#undef SYS_SIGLIST_DECLARED + +/* Define if you can safely include both <sys/time.h> and <time.h>. */ +#undef TIME_WITH_SYS_TIME + +/* Define to `int' if <sys/types.h> doesn't define. */ +#define uid_t int + +/* Define if your processor stores words with the most significant + byte first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define if the X Window System is missing or not being used. */ +#undef X_DISPLAY_MISSING + +/* Define if you have the _getpty function. */ +#undef HAVE__GETPTY + +/* Define if you have the _scrsize function. */ +#undef HAVE__SCRSIZE + +/* Define if you have the _setsid function. */ +#undef HAVE__SETSID + +/* Define if you have the _stricmp function. */ +#define HAVE__STRICMP 1 + +/* Define if you have the asnprintf function. */ +#undef HAVE_ASNPRINTF + +/* Define if you have the asprintf function. */ +#undef HAVE_ASPRINTF + +/* Define if you have the atexit function. */ +#undef HAVE_ATEXIT + +/* Define if you have the chown function. */ +#undef HAVE_CHOWN + +/* Define if you have the chroot function. */ +#undef HAVE_CHROOT + +/* Define if you have the crypt function. */ +#undef HAVE_CRYPT + +/* Define if you have the daemon function. */ +#undef HAVE_DAEMON + +/* Define if you have the dlopen function. */ +#undef HAVE_DLOPEN + +/* Define if you have the dn_expand function. */ +#undef HAVE_DN_EXPAND + +/* Define if you have the el_init function. */ +#undef HAVE_EL_INIT + +/* Define if you have the err function. */ +#undef HAVE_ERR + +/* Define if you have the errx function. */ +#undef HAVE_ERRX + +/* Define if you have the fattach function. */ +#undef HAVE_FATTACH + +/* Define if you have the fchmod function. */ +#undef HAVE_FCHMOD + +/* Define if you have the fchown function. */ +#undef HAVE_FCHOWN + +/* Define if you have the fcntl function. */ +#undef HAVE_FCNTL + +/* Define if you have the flock function. */ +#undef HAVE_FLOCK + +/* Define if you have the fnmatch function. */ +#undef HAVE_FNMATCH + +/* Define if you have the forkpty function. */ +#undef HAVE_FORKPTY + +/* Define if you have the frevoke function. */ +#undef HAVE_FREVOKE + +/* Define if you have the getattr function. */ +#undef HAVE_GETATTR + +/* Define if you have the getcwd function. */ +#undef HAVE_GETCWD + +/* Define if you have the getdtablesize function. */ +#undef HAVE_GETDTABLESIZE + +/* Define if you have the getegid function. */ +#undef HAVE_GETEGID + +/* Define if you have the geteuid function. */ +#undef HAVE_GETEUID + +/* Define if you have the getgid function. */ +#undef HAVE_GETGID + +/* Define if you have the gethostbyname function. */ +#define HAVE_GETHOSTBYNAME 1 + +/* Define if you have the gethostname function. */ +#define HAVE_GETHOSTNAME 1 + +/* Define if you have the getlogin function. */ +#undef HAVE_GETLOGIN + +/* Define if you have the getopt function. */ +#undef HAVE_GETOPT + +/* Define if you have the getpagesize function. */ +#undef HAVE_GETPAGESIZE + +/* Define if you have the getpriority function. */ +#undef HAVE_GETPRIORITY + +/* Define if you have the getpwnam_r function. */ +#undef HAVE_GETPWNAM_R + +/* Define if you have the getrlimit function. */ +#undef HAVE_GETRLIMIT + +/* Define if you have the getservbyname function. */ +#define HAVE_GETSERVBYNAME 1 + +/* Define if you have the getsockopt function. */ +#define HAVE_GETSOCKOPT 1 + +/* Define if you have the getspnam function. */ +#undef HAVE_GETSPNAM + +/* Define if you have the getspuid function. */ +#undef HAVE_GETSPUID + +/* Define if you have the gettimeofday function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define if you have the gettosbyname function. */ +#undef HAVE_GETTOSBYNAME + +/* Define if you have the getudbnam function. */ +#undef HAVE_GETUDBNAM + +/* Define if you have the getuid function. */ +#undef HAVE_GETUID + +/* Define if you have the getusershell function. */ +#undef HAVE_GETUSERSHELL + +/* Define if you have the grantpt function. */ +#undef HAVE_GRANTPT + +/* Define if you have the hstrerror function. */ +#undef HAVE_HSTRERROR + +/* Define if you have the inet_aton function. */ +#undef HAVE_INET_ATON + +/* Define if you have the initgroups function. */ +#undef HAVE_INITGROUPS + +/* Define if you have the innetgr function. */ +#undef HAVE_INNETGR + +/* Define if you have the iruserok function. */ +#undef HAVE_IRUSEROK + +/* Define if you have the logout function. */ +#undef HAVE_LOGOUT + +/* Define if you have the logwtmp function. */ +#undef HAVE_LOGWTMP + +/* Define if you have the lstat function. */ +#undef HAVE_LSTAT + +/* Define if you have the memmove function. */ +#define HAVE_MEMMOVE 1 + +/* Define if you have the mkstemp function. */ +#undef HAVE_MKSTEMP + +/* Define if you have the mktime function. */ +#define HAVE_MKTIME 1 + +/* Define if you have the odm_initialize function. */ +#undef HAVE_ODM_INITIALIZE + +/* Define if you have the on_exit function. */ +#undef HAVE_ON_EXIT + +/* Define if you have the parsetos function. */ +#undef HAVE_PARSETOS + +/* Define if you have the ptsname function. */ +#undef HAVE_PTSNAME + +/* Define if you have the putenv function. */ +#undef HAVE_PUTENV + +/* Define if you have the rand function. */ +#define HAVE_RAND 1 + +/* Define if you have the random function. */ +#undef HAVE_RANDOM + +/* Define if you have the rcmd function. */ +#undef HAVE_RCMD + +/* Define if you have the readline function. */ +#undef HAVE_READLINE + +/* Define if you have the readv function. */ +#undef HAVE_READV + +/* Define if you have the res_search function. */ +#undef HAVE_RES_SEARCH + +/* Define if you have the revoke function. */ +#undef HAVE_REVOKE + +/* Define if you have the setegid function. */ +#undef HAVE_SETEGID + +/* Define if you have the setenv function. */ +#undef HAVE_SETENV + +/* Define if you have the seteuid function. */ +#undef HAVE_SETEUID + +/* Define if you have the setitimer function. */ +#undef HAVE_SETITIMER + +/* Define if you have the setlim function. */ +#undef HAVE_SETLIM + +/* Define if you have the setlogin function. */ +#undef HAVE_SETLOGIN + +/* Define if you have the setpcred function. */ +#undef HAVE_SETPCRED + +/* Define if you have the setpgid function. */ +#undef HAVE_SETPGID + +/* Define if you have the setpriority function. */ +#undef HAVE_SETPRIORITY + +/* Define if you have the setproctitle function. */ +#undef HAVE_SETPROCTITLE + +/* Define if you have the setregid function. */ +#undef HAVE_SETREGID + +/* Define if you have the setresgid function. */ +#undef HAVE_SETRESGID + +/* Define if you have the setresuid function. */ +#undef HAVE_SETRESUID + +/* Define if you have the setreuid function. */ +#undef HAVE_SETREUID + +/* Define if you have the setsid function. */ +#undef HAVE_SETSID + +/* Define if you have the setsockopt function. */ +#define HAVE_SETSOCKOPT 1 + +/* Define if you have the setutent function. */ +#undef HAVE_SETUTENT + +/* Define if you have the sigaction function. */ +#undef HAVE_SIGACTION + +/* Define if you have the socket function. */ +#define HAVE_SOCKET 1 + +/* Define if you have the strcasecmp function. */ +#undef HAVE_STRCASECMP + +/* Define if you have the strdup function. */ +#define HAVE_STRDUP 1 + +/* Define if you have the strerror function. */ +#undef HAVE_STRERROR + +/* Define if you have the strftime function. */ +#define HAVE_STRFTIME 1 + +/* Define if you have the strlwr function. */ +#define HAVE_STRLWR 1 + +/* Define if you have the strncasecmp function. */ +#undef HAVE_STRNCASECMP + +/* Define if you have the strnlen function. */ +#undef HAVE_STRNLEN + +/* Define if you have the strsep function. */ +#undef HAVE_STRSEP + +/* Define if you have the strtok_r function. */ +#undef HAVE_STRTOK_R + +/* Define if you have the strupr function. */ +#define HAVE_STRUPR 1 + +/* Define if you have the swab function. */ +#define HAVE_SWAB 1 + +/* Define if you have the sysconf function. */ +#undef HAVE_SYSCONF + +/* Define if you have the sysctl function. */ +#undef HAVE_SYSCTL + +/* Define if you have the syslog function. */ +#undef HAVE_SYSLOG + +/* Define if you have the tgetent function. */ +#undef HAVE_TGETENT + +/* Define if you have the ttyname function. */ +#undef HAVE_TTYNAME + +/* Define if you have the ttyslot function. */ +#undef HAVE_TTYSLOT + +/* Define if you have the ulimit function. */ +#undef HAVE_ULIMIT + +/* Define if you have the uname function. */ +#undef HAVE_UNAME + +/* Define if you have the unlockpt function. */ +#undef HAVE_UNLOCKPT + +/* Define if you have the unsetenv function. */ +#undef HAVE_UNSETENV + +/* Define if you have the vasnprintf function. */ +#undef HAVE_VASNPRINTF + +/* Define if you have the vasprintf function. */ +#undef HAVE_VASPRINTF + +/* Define if you have the verr function. */ +#undef HAVE_VERR + +/* Define if you have the verrx function. */ +#undef HAVE_VERRX + +/* Define if you have the vhangup function. */ +#undef HAVE_VHANGUP + +/* Define if you have the vsnprintf function. */ +#undef HAVE_VSNPRINTF + +/* Define if you have the vsyslog function. */ +#undef HAVE_VSYSLOG + +/* Define if you have the vwarn function. */ +#undef HAVE_VWARN + +/* Define if you have the vwarnx function. */ +#undef HAVE_VWARNX + +/* Define if you have the warn function. */ +#undef HAVE_WARN + +/* Define if you have the warnx function. */ +#undef HAVE_WARNX + +/* Define if you have the writev function. */ +#undef HAVE_WRITEV + +/* Define if you have the XauReadAuth function. */ +#undef HAVE_XAUREADAUTH + +/* Define if you have the XauWriteAuth function. */ +#undef HAVE_XAUWRITEAUTH + +/* Define if you have the yp_get_default_domain function. */ +#undef HAVE_YP_GET_DEFAULT_DOMAIN + +/* Define if you have the <arpa/ftp.h> header file. */ +#undef HAVE_ARPA_FTP_H + +/* Define if you have the <arpa/inet.h> header file. */ +#undef HAVE_ARPA_INET_H + +/* Define if you have the <arpa/nameser.h> header file. */ +#undef HAVE_ARPA_NAMESER_H + +/* Define if you have the <arpa/telnet.h> header file. */ +#undef HAVE_ARPA_TELNET_H + +/* Define if you have the <bsd/bsd.h> header file. */ +#undef HAVE_BSD_BSD_H + +/* Define if you have the <bsdsetjmp.h> header file. */ +#undef HAVE_BSDSETJMP_H + +/* Define if you have the <crypt.h> header file. */ +#undef HAVE_CRYPT_H + +/* Define if you have the <curses.h> header file. */ +#undef HAVE_CURSES_H + +/* Define if you have the <dbm.h> header file. */ +#undef HAVE_DBM_H + +/* Define if you have the <dirent.h> header file. */ +#undef HAVE_DIRENT_H + +/* Define if you have the <err.h> header file. */ +#undef HAVE_ERR_H + +/* Define if you have the <errno.h> header file. */ +#undef HAVE_ERRNO_H + +/* Define if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if you have the <fnmatch.h> header file. */ +#undef HAVE_FNMATCH_H + +/* Define if you have the <grp.h> header file. */ +#undef HAVE_GRP_H + +/* Define if you have the <inttypes.h> header file. */ +#undef HAVE_INTTYPES_H + +/* Define if you have the <io.h> header file. */ +#define HAVE_IO_H 1 + +/* Define if you have the <lastlog.h> header file. */ +#undef HAVE_LASTLOG_H + +/* Define if you have the <libutil.h> header file. */ +#undef HAVE_LIBUTIL_H + +/* Define if you have the <limits.h> header file. */ +#undef HAVE_LIMITS_H + +/* Define if you have the <login.h> header file. */ +#undef HAVE_LOGIN_H + +/* Define if you have the <maillock.h> header file. */ +#undef HAVE_MAILLOCK_H + +/* Define if you have the <ndbm.h> header file. */ +#undef HAVE_NDBM_H + +/* Define if you have the <net/if.h> header file. */ +#undef HAVE_NET_IF_H + +/* Define if you have the <net/if_tun.h> header file. */ +#undef HAVE_NET_IF_TUN_H + +/* Define if you have the <net/if_var.h> header file. */ +#undef HAVE_NET_IF_VAR_H + +/* Define if you have the <netdb.h> header file. */ +#undef HAVE_NETDB_H + +/* Define if you have the <netinet/in.h> header file. */ +#undef HAVE_NETINET_IN_H + +/* Define if you have the <netinet/in6_machtypes.h> header file. */ +#undef HAVE_NETINET_IN6_MACHTYPES_H + +/* Define if you have the <netinet/in_systm.h> header file. */ +#undef HAVE_NETINET_IN_SYSTM_H + +/* Define if you have the <netinet/ip.h> header file. */ +#undef HAVE_NETINET_IP_H + +/* Define if you have the <netinet/tcp.h> header file. */ +#undef HAVE_NETINET_TCP_H + +/* Define if you have the <paths.h> header file. */ +#undef HAVE_PATHS_H + +/* Define if you have the <pty.h> header file. */ +#undef HAVE_PTY_H + +/* Define if you have the <pwd.h> header file. */ +#undef HAVE_PWD_H + +/* Define if you have the <resolv.h> header file. */ +#undef HAVE_RESOLV_H + +/* Define if you have the <rpcsvc/dbm.h> header file. */ +#undef HAVE_RPCSVC_DBM_H + +/* Define if you have the <rpcsvc/ypclnt.h> header file. */ +#undef HAVE_RPCSVC_YPCLNT_H + +/* Define if you have the <sac.h> header file. */ +#undef HAVE_SAC_H + +/* Define if you have the <security/pam_modules.h> header file. */ +#undef HAVE_SECURITY_PAM_MODULES_H + +/* Define if you have the <shadow.h> header file. */ +#undef HAVE_SHADOW_H + +/* Define if you have the <siad.h> header file. */ +#undef HAVE_SIAD_H + +/* Define if you have the <signal.h> header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define if you have the <stropts.h> header file. */ +#undef HAVE_STROPTS_H + +/* Define if you have the <sys/bitypes.h> header file. */ +#undef HAVE_SYS_BITYPES_H + +/* Define if you have the <sys/category.h> header file. */ +#undef HAVE_SYS_CATEGORY_H + +/* Define if you have the <sys/file.h> header file. */ +#undef HAVE_SYS_FILE_H + +/* Define if you have the <sys/filio.h> header file. */ +#undef HAVE_SYS_FILIO_H + +/* Define if you have the <sys/ioccom.h> header file. */ +#undef HAVE_SYS_IOCCOM_H + +/* Define if you have the <sys/ioctl.h> header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define if you have the <sys/locking.h> header file. */ +#define HAVE_SYS_LOCKING_H 1 + +/* Define if you have the <sys/mman.h> header file. */ +#undef HAVE_SYS_MMAN_H + +/* Define if you have the <sys/param.h> header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define if you have the <sys/proc.h> header file. */ +#undef HAVE_SYS_PROC_H + +/* Define if you have the <sys/pty.h> header file. */ +#undef HAVE_SYS_PTY_H + +/* Define if you have the <sys/ptyio.h> header file. */ +#undef HAVE_SYS_PTYIO_H + +/* Define if you have the <sys/ptyvar.h> header file. */ +#undef HAVE_SYS_PTYVAR_H + +/* Define if you have the <sys/resource.h> header file. */ +#undef HAVE_SYS_RESOURCE_H + +/* Define if you have the <sys/select.h> header file. */ +#undef HAVE_SYS_SELECT_H + +/* Define if you have the <sys/socket.h> header file. */ +#undef HAVE_SYS_SOCKET_H + +/* Define if you have the <sys/sockio.h> header file. */ +#undef HAVE_SYS_SOCKIO_H + +/* Define if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define if you have the <sys/str_tty.h> header file. */ +#undef HAVE_SYS_STR_TTY_H + +/* Define if you have the <sys/stream.h> header file. */ +#undef HAVE_SYS_STREAM_H + +/* Define if you have the <sys/stropts.h> header file. */ +#undef HAVE_SYS_STROPTS_H + +/* Define if you have the <sys/strtty.h> header file. */ +#undef HAVE_SYS_STRTTY_H + +/* Define if you have the <sys/syscall.h> header file. */ +#undef HAVE_SYS_SYSCALL_H + +/* Define if you have the <sys/sysctl.h> header file. */ +#undef HAVE_SYS_SYSCTL_H + +/* Define if you have the <sys/termio.h> header file. */ +#undef HAVE_SYS_TERMIO_H + +/* Define if you have the <sys/time.h> header file. */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the <sys/timeb.h> header file. */ +#define HAVE_SYS_TIMEB_H 1 + +/* Define if you have the <sys/times.h> header file. */ +#undef HAVE_SYS_TIMES_H + +/* Define if you have the <sys/tty.h> header file. */ +#undef HAVE_SYS_TTY_H + +/* Define if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have the <sys/uio.h> header file. */ +#undef HAVE_SYS_UIO_H + +/* Define if you have the <sys/un.h> header file. */ +#undef HAVE_SYS_UN_H + +/* Define if you have the <sys/utsname.h> header file. */ +#undef HAVE_SYS_UTSNAME_H + +/* Define if you have the <sys/wait.h> header file. */ +#undef HAVE_SYS_WAIT_H + +/* Define if you have the <syslog.h> header file. */ +#undef HAVE_SYSLOG_H + +/* Define if you have the <term.h> header file. */ +#undef HAVE_TERM_H + +/* Define if you have the <termcap.h> header file. */ +#undef HAVE_TERMCAP_H + +/* Define if you have the <termio.h> header file. */ +#undef HAVE_TERMIO_H + +/* Define if you have the <termios.h> header file. */ +#undef HAVE_TERMIOS_H + +/* Define if you have the <tmpdir.h> header file. */ +#undef HAVE_TMPDIR_H + +/* Define if you have the <ttyent.h> header file. */ +#undef HAVE_TTYENT_H + +/* Define if you have the <udb.h> header file. */ +#undef HAVE_UDB_H + +/* Define if you have the <ulimit.h> header file. */ +#undef HAVE_ULIMIT_H + +/* Define if you have the <unistd.h> header file. */ +#undef HAVE_UNISTD_H + +/* Define if you have the <userpw.h> header file. */ +#undef HAVE_USERPW_H + +/* Define if you have the <usersec.h> header file. */ +#undef HAVE_USERSEC_H + +/* Define if you have the <util.h> header file. */ +#undef HAVE_UTIL_H + +/* Define if you have the <utime.h> header file. */ +#undef HAVE_UTIME_H + +/* Define if you have the <utmp.h> header file. */ +#undef HAVE_UTMP_H + +/* Define if you have the <utmpx.h> header file. */ +#undef HAVE_UTMPX_H + +/* Define if you have the <wait.h> header file. */ +#undef HAVE_WAIT_H + +/* Define if you have the c_r library (-lc_r). */ +#undef HAVE_LIBC_R + +/* Define if you have the cfg library (-lcfg). */ +#undef HAVE_LIBCFG + +/* Define if you have the crypt library (-lcrypt). */ +#undef HAVE_LIBCRYPT + +/* Define if you have the curses library (-lcurses). */ +#undef HAVE_LIBCURSES + +/* Define if you have the dl library (-ldl). */ +#undef HAVE_LIBDL + +/* Define if you have the edit library (-ledit). */ +#undef HAVE_LIBEDIT + +/* Define if you have the ncurses library (-lncurses). */ +#undef HAVE_LIBNCURSES + +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the odm library (-lodm). */ +#undef HAVE_LIBODM + +/* Define if you have the readline library (-lreadline). */ +#undef HAVE_LIBREADLINE + +/* Define if you have the resolv library (-lresolv). */ +#undef HAVE_LIBRESOLV + +/* Define if you have the s library (-ls). */ +#undef HAVE_LIBS + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define if you have the syslog library (-lsyslog). */ +#undef HAVE_LIBSYSLOG + +/* Define if you have the termcap library (-ltermcap). */ +#undef HAVE_LIBTERMCAP + +/* Define if you have the util library (-lutil). */ +#undef HAVE_LIBUTIL + +/* Define if you have the X11 library (-lX11). */ +#undef HAVE_LIBX11 + +/* Define if you have the Xau library (-lXau). */ +#undef HAVE_LIBXAU + +/* Name of package */ +#undef PACKAGE + +/* Version number of package */ +#undef VERSION + +/* Define if you have the socks package */ +#undef SOCKS + +/* Define to enable old kdestroy behavior. */ +#undef LEGACY_KDESTROY + +/* Define if you want to match subdomains. */ +#undef MATCH_SUBDOMAINS + +/* Define this to be the directory where the + dictionary for cracklib resides. */ +#undef DICTPATH + +/* Define this to the path of the mail spool directory. */ +#undef KRB4_MAILDIR + +/* Define this to the kerberos database directory. */ +#undef DB_DIR + +/* Define to enable new master key code. */ +#undef RANDOM_MKEY + +/* Define this to the location of the master key. */ +#undef MKEYFILE + +/* Define to enable basic OSF C2 support. */ +#undef HAVE_OSFC2 + +/* Define if you don't want to use mmap. */ +#undef NO_MMAP + +/* Define if you don't wan't support for AFS. */ +#undef NO_AFS + +/* Set this to the type of des-quad-cheksum to use. */ +#define DES_QUAD_DEFAULT DES_QUAD_GUESS + +/* Define if you have the readline package */ +#undef READLINE + +/* Define if you have the hesiod package */ +#undef HESIOD + +/* define if your compiler has __attribute__ */ +#undef HAVE___ATTRIBUTE__ + +/* Huh? */ +#undef HAVE_STRANGE_INT8_T + +/* Define if NDBM really is DB (creates files ending in .db). */ +#undef HAVE_NEW_DB + +/* Define if you have NDBM (and not DBM) */ +#undef NDBM + +/* define if you have a working snprintf */ +#undef HAVE_SNPRINTF + +/* define if the system is missing a prototype for snprintf() */ +#undef NEED_SNPRINTF_PROTO + +/* define if you have a glob() that groks + GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, and GLOB_TILDE */ +#undef HAVE_GLOB + +/* define if the system is missing a prototype for glob() */ +#undef NEED_GLOB_PROTO + +/* Define if getpwnam_r has POSIX flavour. */ +#undef POSIX_GETPWNAM_R + +/* Define if getlogin has POSIX flavour (and not BSD). */ +#undef POSIX_GETLOGIN + +/* define if the system is missing a prototype for hstrerror() */ +#undef NEED_HSTRERROR_PROTO + +/* define if the system is missing a prototype for gethostname() */ +#undef NEED_GETHOSTNAME_PROTO + +/* define if the system is missing a prototype for mkstemp() */ +#undef NEED_MKSTEMP_PROTO + +/* define if the system is missing a prototype for inet_aton() */ +#undef NEED_INET_ATON_PROTO + +/* Define if realloc(NULL, X) doesn't work. */ +#undef BROKEN_REALLOC + +/* Define if getcwd is broken (like in SunOS 4). */ +#undef BROKEN_GETCWD + +/* define if prototype of gethostbyname is compatible with + struct hostent *gethostbyname(const char *) */ +#undef GETHOSTBYNAME_PROTO_COMPATIBLE + +/* define if prototype of gethostbyaddr is compatible with + struct hostent *gethostbyaddr(const void *, size_t, int) */ +#undef GETHOSTBYADDR_PROTO_COMPATIBLE + +/* define if prototype of getservbyname is compatible with + struct servent *getservbyname(const char *, const char *) */ +#undef GETSERVBYNAME_PROTO_COMPATIBLE + +/* define if prototype of openlog is compatible with + void openlog(const char *, int, int) */ +#undef OPENLOG_PROTO_COMPATIBLE + +/* define if the system is missing a prototype for crypt() */ +#undef NEED_CRYPT_PROTO + +/* define if the system is missing a prototype for fclose() */ +#undef NEED_FCLOSE_PROTO + +/* define if the system is missing a prototype for strtok_r() */ +#undef NEED_STRTOK_R_PROTO + +/* define if the system is missing a prototype for getusershell() */ +#undef NEED_GETUSERSHELL_PROTO + +/* define if the system is missing a prototype for utime() */ +#undef NEED_UTIME_PROTO + +/* define if you have h_errno */ +#define HAVE_H_ERRNO 1 + +/* define if your system declares h_errno */ +#define HAVE_H_ERRNO_DECLARATION 1 + +/* define if you have h_errlist */ +#undef HAVE_H_ERRLIST + +/* define if your system declares h_errlist */ +#undef HAVE_H_ERRLIST_DECLARATION + +/* define if you have h_nerr */ +#undef HAVE_H_NERR + +/* define if your system declares h_nerr */ +#undef HAVE_H_NERR_DECLARATION + +/* define if you have __progname */ +#undef HAVE___PROGNAME + +/* define if your system declares __progname */ +#undef HAVE___PROGNAME_DECLARATION + +/* define if your system declares optarg */ +#undef HAVE_OPTARG_DECLARATION + +/* define if your system declares optind */ +#undef HAVE_OPTIND_DECLARATION + +/* define if your system declares opterr */ +#undef HAVE_OPTERR_DECLARATION + +/* define if your system declares optopt */ +#undef HAVE_OPTOPT_DECLARATION + +/* define if your system declares environ */ +#undef HAVE_ENVIRON_DECLARATION + +/* Define if RETSIGTYPE == void. */ +#define VOID_RETSIGTYPE 1 + +/* Define if struct utmp has field ut_addr. */ +#undef HAVE_STRUCT_UTMP_UT_ADDR + +/* Define if struct utmp has field ut_host. */ +#undef HAVE_STRUCT_UTMP_UT_HOST + +/* Define if struct utmp has field ut_id. */ +#undef HAVE_STRUCT_UTMP_UT_ID + +/* Define if struct utmp has field ut_pid. */ +#undef HAVE_STRUCT_UTMP_UT_PID + +/* Define if struct utmp has field ut_type. */ +#undef HAVE_STRUCT_UTMP_UT_TYPE + +/* Define if struct utmp has field ut_user. */ +#undef HAVE_STRUCT_UTMP_UT_USER + +/* Define if struct utmpx has field ut_exit. */ +#undef HAVE_STRUCT_UTMPX_UT_EXIT + +/* Define if struct utmpx has field ut_syslen. */ +#undef HAVE_STRUCT_UTMPX_UT_SYSLEN + +/* define if you have struct spwd */ +#undef HAVE_STRUCT_SPWD + +/* define if struct winsize is declared in sys/termios.h */ +#undef HAVE_STRUCT_WINSIZE + +/* define if struct winsize has ws_xpixel */ +#undef HAVE_WS_XPIXEL + +/* define if struct winsize has ws_ypixel */ +#undef HAVE_WS_YPIXEL + +/* Define this to what the type ssize_t should be. */ +#define ssize_t int + +/* Define if struct sockaddr has field sa_len. */ +#undef HAVE_STRUCT_SOCKADDR_SA_LEN + +/* Define if SIAENTITY has field ouid. */ +#undef HAVE_SIAENTITY_OUID + +/* Define if you have a working getmsg. */ +#undef HAVE_GETMSG + +/* Define if you have a readline function. */ +#undef HAVE_READLINE + +/* Define if you have working stream ptys. */ +#undef STREAMSPTY + +/* Define if /bin/ls has a `-A' flag. */ +#undef HAVE_LS_A + + +#undef HAVE_INT8_T +#undef HAVE_INT16_T +#undef HAVE_INT32_T +#undef HAVE_INT64_T +#undef HAVE_U_INT8_T +#undef HAVE_U_INT16_T +#undef HAVE_U_INT32_T +#undef HAVE_U_INT64_T + +/* This for compat with heimdal (or something) */ +#define KRB_PUT_INT(f, t, l, s) krb_put_int((f), (t), (l), (s)) + +#define RCSID(msg) \ +static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } + +/* + * Set ORGANIZATION to be the desired organization string printed + * by the 'kinit' program. It may have spaces. + */ +#define ORGANIZATION "eBones International" + +#if 0 +#undef BINDIR +#undef LIBDIR +#undef LIBEXECDIR +#undef SBINDIR +#endif + +#if 0 +#define KRB_CNF_FILES { "/etc/krb.conf", "/etc/kerberosIV/krb.conf", 0} +#define KRB_RLM_FILES { "/etc/krb.realms", "/etc/kerberosIV/krb.realms", 0} +#define KRB_EQUIV "/etc/krb.equiv" + +#define KEYFILE "/etc/srvtab" + +#define KRBDIR "/var/kerberos" +#define DBM_FILE KRBDIR "/principal" +#define DEFAULT_ACL_DIR KRBDIR + +#define KRBLOG "/var/log/kerberos.log" /* master server */ +#define KRBSLAVELOG "/var/log/kerberos_slave.log" /* slave server */ +#define KADM_SYSLOG "/var/log/admin_server.syslog" +#define K_LOGFIL "/var/log/kpropd.log" +#endif + +/* Maximum values on all known systems */ +#define MaxHostNameLen (64+4) +#define MaxPathLen (1024+4) + +/* ftp stuff -------------------------------------------------- */ + +#define KERBEROS + +/* telnet stuff ----------------------------------------------- */ + +/* define this for OTP support */ +#undef OTP + +/* define this if you have kerberos 4 */ +#define KRB4 1 + +/* define this if you want encryption */ +#undef ENCRYPTION + +/* define this if you want authentication */ +#undef AUTHENTICATION + +#if defined(ENCRYPTION) && !defined(AUTHENTICATION) +#define AUTHENTICATION 1 +#endif + +/* Set this if you want des encryption */ +#undef DES_ENCRYPTION + +/* Set this to the default system lead string for telnetd + * can contain %-escapes: %s=sysname, %m=machine, %r=os-release + * %v=os-version, %t=tty, %h=hostname, %d=date and time + */ +#undef USE_IM + +/* define this if you want diagnostics in telnetd */ +#undef DIAGNOSTICS + +/* define this if you want support for broken ENV_{VALUE,VAR} systems */ +#undef ENV_HACK + +/* */ +#undef OLD_ENVIRON + +/* Used with login -p */ +#undef LOGIN_ARGS + +/* set this to a sensible login */ +#ifndef LOGIN_PATH +#define LOGIN_PATH BINDIR "/login" +#endif + + +/* ------------------------------------------------------------ */ + +#ifdef BROKEN_REALLOC +#define realloc(X, Y) isoc_realloc((X), (Y)) +#define isoc_realloc(X, Y) ((X) ? realloc((X), (Y)) : malloc(Y)) +#endif + +#ifdef VOID_RETSIGTYPE +#define SIGRETURN(x) return +#else +#define SIGRETURN(x) return (RETSIGTYPE)(x) +#endif + +/* Temporary fixes for krb_{rd,mk}_safe */ +#define DES_QUAD_GUESS 0 +#define DES_QUAD_NEW 1 +#define DES_QUAD_OLD 2 + +/* + * All these are system-specific defines that I would rather not have at all. + */ + +/* + * AIX braindamage! + */ +#if _AIX +#define _ALL_SOURCE +/* XXX this is gross, but kills about a gazillion warnings */ +struct ether_addr; +struct sockaddr; +struct sockaddr_dl; +struct sockaddr_in; +#endif + +/* + * SunOS braindamage! (Sun include files are generally braindead) + */ +#if (defined(sun) || defined(__sun)) +#if defined(__svr4__) || defined(__SVR4) +#define SunOS 5 +#else +#define SunOS 4 +#endif +#endif + +#if defined(__sgi) || defined(sgi) +#if defined(__SYSTYPE_SVR4) || defined(_SYSTYPE_SVR4) +#define IRIX 5 +#else +#define IRIX 4 +#endif +#endif + +/* IRIX 4 braindamage */ +#if IRIX == 4 && !defined(__STDC__) +#define __STDC__ 0 +#endif + +/* some strange OS/2 stuff. From <d96-mst@nada.kth.se> */ + +#ifdef __EMX__ +#define _EMX_TCPIP +#define MAIL_USE_SYSTEM_LOCK +#endif + +#ifdef ROKEN_RENAME +#include "roken_rename.h" +#endif diff --git a/crypto/kerberosIV/include/win32/ktypes.h b/crypto/kerberosIV/include/win32/ktypes.h new file mode 100644 index 0000000..3d4af11 --- /dev/null +++ b/crypto/kerberosIV/include/win32/ktypes.h @@ -0,0 +1,11 @@ +#ifndef __KTYPES_H__ +#define __KTYPES_H__ + +typedef signed char int8_t; +typedef unsigned char u_int8_t; +typedef short int16_t; +typedef unsigned short u_int16_t; +typedef int int32_t; +typedef unsigned int u_int32_t; + +#endif /* __KTYPES_H__ */ diff --git a/crypto/kerberosIV/include/win32/roken.h b/crypto/kerberosIV/include/win32/roken.h new file mode 100644 index 0000000..9a3117f --- /dev/null +++ b/crypto/kerberosIV/include/win32/roken.h @@ -0,0 +1,214 @@ +/* This is (as usual) a generated file, + it is also machine dependent */ + +#ifndef __ROKEN_H__ +#define __ROKEN_H__ + +/* -*- C -*- */ +/* + * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan + * (Royal Institute of Technology, Stockholm, Sweden). + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the Institute nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* $Id: roken.h,v 1.8 1999/12/02 16:58:36 joda Exp $ */ + +#include <stdio.h> +#include <stdlib.h> +#include <stdarg.h> +#include <string.h> +#include <signal.h> +#include <time.h> + + + +#define ROKEN_LIB_FUNCTION + +#include <roken-common.h> + + +int putenv(const char *string); + +int setenv(const char *var, const char *val, int rewrite); + +void unsetenv(const char *name); + +char *getusershell(void); +void endusershell(void); + +int snprintf (char *str, size_t sz, const char *format, ...) + __attribute__ ((format (printf, 3, 4))); + +int vsnprintf (char *str, size_t sz, const char *format, va_list ap) + __attribute__((format (printf, 3, 0))); + +int asprintf (char **ret, const char *format, ...) + __attribute__ ((format (printf, 2, 3))); + +int vasprintf (char **ret, const char *format, va_list ap) + __attribute__((format (printf, 2, 0))); + +int asnprintf (char **ret, size_t max_sz, const char *format, ...) + __attribute__ ((format (printf, 3, 4))); + +int vasnprintf (char **ret, size_t max_sz, const char *format, va_list ap) + __attribute__((format (printf, 3, 0))); + +char * strdup(const char *old); + +char * strlwr(char *); + +int strnlen(char*, int); + +char *strsep(char**, const char*); + +int strcasecmp(const char *s1, const char *s2); + + + +char * strupr(char *); + +size_t strlcpy (char *dst, const char *src, size_t dst_sz); + +size_t strlcat (char *dst, const char *src, size_t dst_sz); + +int getdtablesize(void); + +char *strerror(int eno); + +/* This causes a fatal error under Psoriasis */ +const char *hstrerror(int herr); + +extern int h_errno; + +int inet_aton(const char *cp, struct in_addr *adr); + +char* getcwd(char *path, size_t size); + + +int seteuid(uid_t euid); + +int setegid(gid_t egid); + +int lstat(const char *path, struct stat *buf); + +int mkstemp(char *); + +int initgroups(const char *name, gid_t basegid); + +int fchown(int fd, uid_t owner, gid_t group); + +int daemon(int nochdir, int noclose); + +int innetgr(const char *netgroup, const char *machine, + const char *user, const char *domain); + +int chown(const char *path, uid_t owner, gid_t group); + +int rcmd(char **ahost, unsigned short inport, const char *locuser, + const char *remuser, const char *cmd, int *fd2p); + +int innetgr(const char*, const char*, const char*, const char*); + +int iruserok(unsigned raddr, int superuser, const char *ruser, + const char *luser); + +int gethostname(char *name, int namelen); + +ssize_t +writev(int d, const struct iovec *iov, int iovcnt); + +ssize_t +readv(int d, const struct iovec *iov, int iovcnt); + +int +mkstemp(char *template); + +#define LOCK_SH 1 /* Shared lock */ +#define LOCK_EX 2 /* Exclusive lock */ +#define LOCK_NB 4 /* Don't block when locking */ +#define LOCK_UN 8 /* Unlock */ + +int flock(int fd, int operation); + +time_t tm2time (struct tm tm, int local); + +int unix_verify_user(char *user, char *password); + +void inaddr2str(struct in_addr addr, char *s, size_t len); + +void mini_inetd (int port); + +int roken_concat (char *s, size_t len, ...); + +size_t roken_mconcat (char **s, size_t max_len, ...); + +int roken_vconcat (char *s, size_t len, va_list args); + +size_t roken_vmconcat (char **s, size_t max_len, va_list args); + +ssize_t net_write (int fd, const void *buf, size_t nbytes); + +ssize_t net_read (int fd, void *buf, size_t nbytes); + +int issuid(void); + +struct winsize { + unsigned short ws_row, ws_col; + unsigned short ws_xpixel, ws_ypixel; +}; + +int get_window_size(int fd, struct winsize *); + +void vsyslog(int pri, const char *fmt, va_list ap); + +extern char *optarg; +extern int optind; +extern int opterr; + +extern const char *__progname; + +extern char **environ; + +/* + * kludges and such + */ + +int roken_gethostby_setup(const char*, const char*); +struct hostent* roken_gethostbyname(const char*); +struct hostent* roken_gethostbyaddr(const void*, size_t, int); + +#define roken_getservbyname(x,y) getservbyname((char *)x, (char *)y) + +#define roken_openlog(a,b,c) openlog((char *)a,b,c) + +void set_progname(char *argv0); + +#endif /* __ROKEN_H__ */ diff --git a/crypto/kerberosIV/include/win32/version.h b/crypto/kerberosIV/include/win32/version.h new file mode 100644 index 0000000..07fe2eb --- /dev/null +++ b/crypto/kerberosIV/include/win32/version.h @@ -0,0 +1,2 @@ +char *krb4_long_version = "krb4-0.9.7 on Windows NT"; +char *krb4_version = "0.9.7"; diff --git a/crypto/kerberosIV/include/win32/winconf.sh b/crypto/kerberosIV/include/win32/winconf.sh new file mode 100644 index 0000000..a7d5f28 --- /dev/null +++ b/crypto/kerberosIV/include/win32/winconf.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# $Id: winconf.sh,v 1.1 1997/11/09 14:35:15 joda Exp $ + +cat ../config.h.in | sed ' +s%#undef gid_t$%#define gid_t int% +s%#undef STDC_HEADERS$%#define STDC_HEADERS 1% +s%#undef uid_t$%#define uid_t int% +s%#undef ssize_t$%#define ssize_t int% +s%#undef VOID_RETSIGTYPE$%#define VOID_RETSIGTYPE 1% +s%#undef HAVE_H_ERRNO$%#define HAVE_H_ERRNO 1% +s%#undef HAVE_H_ERRNO_DECLARATION$%#define HAVE_H_ERRNO_DECLARATION 1% +s%#undef HAVE__STRICMP$%#define HAVE__STRICMP 1% +s%#undef HAVE_GETHOSTBYNAME$%#define HAVE_GETHOSTBYNAME 1% +s%#undef HAVE_GETHOSTNAME$%#define HAVE_GETHOSTNAME 1% +s%#undef HAVE_GETSERVBYNAME$%#define HAVE_GETSERVBYNAME 1% +s%#undef HAVE_GETSOCKOPT$%#define HAVE_GETSOCKOPT 1% +s%#undef HAVE_MEMMOVE$%#define HAVE_MEMMOVE 1% +s%#undef HAVE_MKTIME$%#define HAVE_MKTIME 1% +s%#undef HAVE_RAND$%#define HAVE_RAND 1% +s%#undef HAVE_SETSOCKOPT$%#define HAVE_SETSOCKOPT 1% +s%#undef HAVE_SOCKET$%#define HAVE_SOCKET 1% +s%#undef HAVE_STRDUP$%#define HAVE_STRDUP 1% +s%#undef HAVE_STRFTIME$%#define HAVE_STRFTIME 1% +s%#undef HAVE_STRLWR$%#define HAVE_STRLWR 1% +s%#undef HAVE_STRUPR$%#define HAVE_STRUPR 1% +s%#undef HAVE_SWAB$%#define HAVE_SWAB 1% +s%#undef HAVE_FCNTL_H$%#define HAVE_FCNTL_H 1% +s%#undef HAVE_IO_H$%#define HAVE_IO_H 1% +s%#undef HAVE_SIGNAL_H$%#define HAVE_SIGNAL_H 1% +s%#undef HAVE_SYS_LOCKING_H$%#define HAVE_SYS_LOCKING_H 1% +s%#undef HAVE_SYS_STAT_H$%#define HAVE_SYS_STAT_H 1% +s%#undef HAVE_SYS_TIMEB_H$%#define HAVE_SYS_TIMEB_H 1% +s%#undef HAVE_SYS_TYPES_H$%#define HAVE_SYS_TYPES_H 1% +s%#undef HAVE_WINSOCK_H$%#define HAVE_WINSOCK_H 1% +s%#undef KRB4$%#define KRB4 1% +s%#undef DES_QUAD_DEFAULT$%#define DES_QUAD_DEFAULT DES_QUAD_GUESS%' > config.h |