diff options
Diffstat (limited to 'crypto/kerberosIV/include')
-rw-r--r-- | crypto/kerberosIV/include/Makefile.in | 125 | ||||
-rw-r--r-- | crypto/kerberosIV/include/bits.c | 213 | ||||
-rw-r--r-- | crypto/kerberosIV/include/config.h.in | 607 | ||||
-rw-r--r-- | crypto/kerberosIV/include/protos.H | 282 | ||||
-rw-r--r-- | crypto/kerberosIV/include/sys/Makefile.in | 21 | ||||
-rw-r--r-- | crypto/kerberosIV/include/sys/socket.x | 7 |
6 files changed, 1003 insertions, 252 deletions
diff --git a/crypto/kerberosIV/include/Makefile.in b/crypto/kerberosIV/include/Makefile.in index 5061c08..b2b0547 100644 --- a/crypto/kerberosIV/include/Makefile.in +++ b/crypto/kerberosIV/include/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.36 1997/05/20 18:58:39 bg Exp $ +# $Id: Makefile.in,v 1.58 1999/03/10 19:01:13 joda Exp $ srcdir = @srcdir@ VPATH = @srcdir@ @@ -6,8 +6,10 @@ VPATH = @srcdir@ SHELL = /bin/sh CC = @CC@ -DEFS = @DEFS@ -CFLAGS = @CFLAGS@ +LINK = @LINK@ +DEFS = @DEFS@ -DHOST=\"@CANONICAL_HOST@\" +CFLAGS = @CFLAGS@ $(WFLAGS) +WFLAGS = @WFLAGS@ LD_FLAGS = @LD_FLAGS@ INSTALL = @INSTALL@ @@ -21,23 +23,25 @@ exec_prefix = @exec_prefix@ includedir = @includedir@ libdir = @libdir@ -HAVE_ERR_H = @ac_cv_header_err_h@ - @SET_MAKE@ .c.o: - $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $(PICFLAGS) $< + $(CC) -c $(DEFS) -I. -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $< -HEADERS = krb_err.h kadm_err.h acl.h com_err.h des.h kadm.h kafs.h \ - kdc.h klog.h krb.h krb_db.h prot.h otp.h sl.h ktypes.h +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_OBJECTS = ktypes.o +LOCL_HEADERS = \ + base64.h roken-common.h protos.h resolve.h xdbm.h \ + krb_log.h getarg.h parse_time.h @EXTRA_LOCL_HEADERS@ -SOURCES = ktypes.c +CLEAN_FILES = roken.h krb_err.h kadm_err.h -LOCL_HEADERS = roken.h protos.h resolve.h xdbm.h +BITS_OBJECTS = bits.o -MAYBE_HEADERS = err.h +SOURCES = bits.c SUBDIRS = sys @@ -48,37 +52,31 @@ all: stamp-headers Wall: $(MAKE) CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__" -ALL_INC = com_err.h des.h kadm.h kafs.h kdc.h klog.h krb.h krb_db.h otp.h - -install: - $(MKINSTALLDIRS) $(includedir) +install: all + $(MKINSTALLDIRS) $(DESTDIR)$(includedir) for x in $(HEADERS); \ - do $(INSTALL_DATA) $$x $(includedir)/$$x; done - -if test "$(HAVE_ERR_H)" != yes; then \ - $(INSTALL_DATA) err.h $(includedir)/err.h; \ - fi + do $(INSTALL_DATA) $$x $(DESTDIR)$(includedir)/$$x; done for i in $(SUBDIRS); \ do (cd $$i && $(MAKE) $(MFLAGS) install); done uninstall: for x in $(HEADERS); do \ - rm -f $(includedir)/$$x; \ + rm -f $(DESTDIR)$(includedir)/$$x; \ done - -if test "$(HAVE_ERR_H)" != yes; then \ - rm -f $(includedir)/err.h; \ - fi for i in $(SUBDIRS); \ do (cd $$i && $(MAKE) $(MFLAGS) uninstall); done clean: - rm -f $(HEADERS) $(LOCL_HEADERS) $(MAYBE_HEADERS) *.o ktypes stamp-headers + rm -f $(HEADERS) $(LOCL_HEADERS) \ + $(CLEAN_FILES) *.o bits stamp-headers for i in $(SUBDIRS); \ do (cd $$i && $(MAKE) $(MFLAGS) clean); done mostlyclean: clean distclean: - $(MAKE) clean + $(MAKE) clean + rm -f config.h version.h version.h.in for i in $(SUBDIRS); \ do (cd $$i && $(MAKE) $(MFLAGS) distclean); done rm -f Makefile config.status *~ @@ -87,61 +85,80 @@ realclean: for i in $(SUBDIRS); \ do (cd $$i && $(MAKE) $(MFLAGS) realclean); done -err.h: - if test "$(HAVE_ERR_H)" != yes; then \ - $(LN_S) $(srcdir)/../lib/roken/err.h err.h; \ - fi || true - -krb_err.h: - cd ../lib/krb && $(MAKE) krb_err.h - $(LN_S) ../lib/krb/krb_err.h . -kadm_err.h: - cd ../lib/kadm && $(MAKE) kadm_err.h - $(LN_S) ../lib/kadm/kadm_err.h . acl.h: $(LN_S) $(srcdir)/../lib/acl/acl.h . + com_err.h: - $(LN_S) $(srcdir)/../util/et/com_err.h . + $(LN_S) $(srcdir)/../lib/com_err/com_err.h . +com_right.h: + $(LN_S) $(srcdir)/../lib/com_err/com_right.h . + des.h: $(LN_S) $(srcdir)/../lib/des/des.h . + kadm.h: $(LN_S) $(srcdir)/../lib/kadm/kadm.h . + kafs.h: $(LN_S) $(srcdir)/../lib/kafs/kafs.h . + kdc.h: $(LN_S) $(srcdir)/../lib/kdb/kdc.h . + klog.h: $(LN_S) $(srcdir)/../lib/krb/klog.h . +krb-archaeology.h: + $(LN_S) $(srcdir)/../lib/krb/krb-archaeology.h . +krb-protos.h: + $(LN_S) $(srcdir)/../lib/krb/krb-protos.h . krb.h: $(LN_S) $(srcdir)/../lib/krb/krb.h . -resolve.h: - $(LN_S) $(srcdir)/../lib/krb/resolve.h . -krb_db.h: - $(LN_S) $(srcdir)/../lib/kdb/krb_db.h . prot.h: $(LN_S) $(srcdir)/../lib/krb/prot.h . -protos.h: - $(LN_S) $(srcdir)/protos.H protos.h -roken.h: - $(LN_S) $(srcdir)/../lib/roken/roken.h . -xdbm.h: - $(LN_S) $(srcdir)/../lib/roken/xdbm.h . +krb_db.h: + $(LN_S) $(srcdir)/../lib/kdb/krb_db.h . +krb_log.h: + $(LN_S) $(srcdir)/../lib/krb/krb_log.h . otp.h: $(LN_S) $(srcdir)/../lib/otp/otp.h . +base64.h: + $(LN_S) $(srcdir)/../lib/roken/base64.h . +err.h: + $(LN_S) $(srcdir)/../lib/roken/err.h . +fnmatch.h: + $(LN_S) $(srcdir)/../lib/roken/fnmatch.h . +getarg.h: + $(LN_S) $(srcdir)/../lib/roken/getarg.h . +glob.h: + $(LN_S) $(srcdir)/../lib/roken/glob.h . +parse_time.h: + $(LN_S) $(srcdir)/../lib/roken/parse_time.h . +resolve.h: + $(LN_S) $(srcdir)/../lib/roken/resolve.h . +roken-common.h: + $(LN_S) $(srcdir)/../lib/roken/roken-common.h . +xdbm.h: + $(LN_S) $(srcdir)/../lib/roken/xdbm.h . + sl.h: $(LN_S) $(srcdir)/../lib/sl/sl.h . -ktypes$(EXECSUFFIX): $(KTYPES_OBJECTS) - $(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ $(KTYPES_OBJECTS) +protos.h: + $(LN_S) $(srcdir)/protos.H protos.h + +bits$(EXECSUFFIX): $(BITS_OBJECTS) + $(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(BITS_OBJECTS) -ktypes.o: ktypes.c +bits.o: bits.c -ktypes.h: ktypes$(EXECSUFFIX) - ./ktypes$(EXECSUFFIX) > $@ +ktypes.h: bits$(EXECSUFFIX) + ./bits$(EXECSUFFIX) $@ stamp-headers: Makefile - $(MAKE) $(HEADERS) $(LOCL_HEADERS) $(MAYBE_HEADERS) + $(MAKE) $(HEADERS) $(LOCL_HEADERS) touch stamp-headers + +.PHONY: all Wall install uninstall clean mostlyclean distclean realclean diff --git a/crypto/kerberosIV/include/bits.c b/crypto/kerberosIV/include/bits.c new file mode 100644 index 0000000..81c0051 --- /dev/null +++ b/crypto/kerberosIV/include/bits.c @@ -0,0 +1,213 @@ +/* + * Copyright (c) 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. 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 + * 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. + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +RCSID("$Id: bits.c,v 1.5 1999/07/06 04:19:26 assar Exp $"); +#endif +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <ctype.h> + +#ifndef HAVE_STRUPR +static void +strupr(char *s) +{ + unsigned char *p = (unsigned char *)s; + while(*p){ + if(islower(*p)) + *p = toupper(*p); + p++; + } +} +#endif /* HAVE_STRUPR */ + +#define BITSIZE(TYPE) \ +{ \ + int b = 0; TYPE x = 1, zero = 0; char *pre = "u_"; \ + char tmp[128], tmp2[128]; \ + while(x){ x <<= 1; b++; if(x < zero) pre=""; } \ + if(b >= len){ \ + int tabs; \ + sprintf(tmp, "%sint%d_t" , pre, len); \ + sprintf(tmp2, "typedef %s %s;", #TYPE, tmp); \ + strupr(tmp); \ + tabs = 5 - strlen(tmp2) / 8; \ + fprintf(f, "%s", tmp2); \ + while(tabs-- > 0) fprintf(f, "\t"); \ + fprintf(f, "/* %2d bits */\n", b); \ + return; \ + } \ +} + +#ifndef HAVE___ATTRIBUTE__ +#define __attribute__(x) +#endif + +static void +try_signed(FILE *f, int len) __attribute__ ((unused)); + +static void +try_unsigned(FILE *f, int len) __attribute__ ((unused)); + +static void +try_signed(FILE *f, int len) +{ + BITSIZE(signed char); + BITSIZE(short); + BITSIZE(int); + BITSIZE(long); +#ifdef HAVE_LONG_LONG + BITSIZE(long long); +#endif + fprintf(f, "/* There is no %d bit type */\n", len); +} + +static void +try_unsigned(FILE *f, int len) +{ + BITSIZE(unsigned char); + BITSIZE(unsigned short); + BITSIZE(unsigned int); + BITSIZE(unsigned long); +#ifdef HAVE_LONG_LONG + BITSIZE(unsigned long long); +#endif + fprintf(f, "/* There is no %d bit type */\n", len); +} + +static int +print_bt(FILE *f, int flag) +{ + if(flag == 0){ + fprintf(f, "/* For compatibility with various type definitions */\n"); + fprintf(f, "#ifndef __BIT_TYPES_DEFINED__\n"); + fprintf(f, "#define __BIT_TYPES_DEFINED__\n"); + fprintf(f, "\n"); + } + return 1; +} + +int main(int argc, char **argv) +{ + FILE *f; + int flag; + char *fn, *hb; + + if(argc < 2){ + fn = "bits.h"; + hb = "__BITS_H__"; + f = stdout; + } else { + char *p; + fn = argv[1]; + hb = malloc(strlen(fn) + 5); + sprintf(hb, "__%s__", fn); + for(p = hb; *p; p++){ + if(!isalnum((unsigned char)*p)) + *p = '_'; + } + f = fopen(argv[1], "w"); + } + 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 $"); + fprintf(f, "#ifndef %s\n", hb); + fprintf(f, "#define %s\n", hb); + fprintf(f, "\n"); +#ifdef HAVE_SYS_TYPES_H + fprintf(f, "#include <sys/types.h>\n"); +#endif +#ifdef HAVE_INTTYPES_H + fprintf(f, "#include <inttypes.h>\n"); +#endif +#ifdef HAVE_SYS_BITYPES_H + fprintf(f, "#include <sys/bitypes.h>\n"); +#endif +#ifdef HAVE_NETINET_IN6_MACHTYPES_H + fprintf(f, "#include <netinet/in6_machtypes.h>\n"); +#endif + fprintf(f, "\n"); + + flag = 0; +#ifndef HAVE_INT8_T + flag = print_bt(f, flag); + try_signed (f, 8); +#endif /* HAVE_INT8_T */ +#ifndef HAVE_INT16_T + flag = print_bt(f, flag); + try_signed (f, 16); +#endif /* HAVE_INT16_T */ +#ifndef HAVE_INT32_T + flag = print_bt(f, flag); + try_signed (f, 32); +#endif /* HAVE_INT32_T */ +#if 0 +#ifndef HAVE_INT64_T + flag = print_bt(f, flag); + try_signed (f, 64); +#endif /* HAVE_INT64_T */ +#endif + +#ifndef HAVE_U_INT8_T + flag = print_bt(f, flag); + try_unsigned (f, 8); +#endif /* HAVE_INT8_T */ +#ifndef HAVE_U_INT16_T + flag = print_bt(f, flag); + try_unsigned (f, 16); +#endif /* HAVE_U_INT16_T */ +#ifndef HAVE_U_INT32_T + flag = print_bt(f, flag); + try_unsigned (f, 32); +#endif /* HAVE_U_INT32_T */ +#if 0 +#ifndef HAVE_U_INT64_T + flag = print_bt(f, flag); + try_unsigned (f, 64); +#endif /* HAVE_U_INT64_T */ +#endif + + if(flag){ + fprintf(f, "\n"); + fprintf(f, "#endif /* __BIT_TYPES_DEFINED__ */\n\n"); + } + fprintf(f, "#endif /* %s */\n", hb); + return 0; +} diff --git a/crypto/kerberosIV/include/config.h.in b/crypto/kerberosIV/include/config.h.in index 826dc76..3108078 100644 --- a/crypto/kerberosIV/include/config.h.in +++ b/crypto/kerberosIV/include/config.h.in @@ -25,6 +25,9 @@ /* 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 @@ -68,112 +71,6 @@ /* Define if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING -/* Define this if RETSIGTYPE == void */ -#undef VOID_RETSIGTYPE - -/* Define this if struct utmp have ut_user */ -#undef HAVE_UT_USER - -/* Define this if struct utmp have ut_host */ -#undef HAVE_UT_HOST - -/* Define this if struct utmp have ut_addr */ -#undef HAVE_UT_ADDR - -/* Define this if struct utmp have ut_type */ -#undef HAVE_UT_TYPE - -/* Define this if struct utmp have ut_pid */ -#undef HAVE_UT_PID - -/* Define this if struct utmp have ut_id */ -#undef HAVE_UT_ID - -/* Define this if struct utmpx have ut_syslen */ -#undef HAVE_UT_SYSLEN - -/* Define this if struct winsize is declared in sys/termios.h */ -#undef HAVE_STRUCT_WINSIZE - -/* Define this if struct winsize have ws_xpixel */ -#undef HAVE_WS_XPIXEL - -/* Define this if struct winsize have ws_ypixel */ -#undef HAVE_WS_YPIXEL - -/* Define this to be the directory where the dictionary for cracklib */ -/* resides */ -#undef DICTPATH - -/* Define this if you want to use SOCKS v5 */ -#undef SOCKS - -/* Define this to the path of the mail spool directory */ -#undef KRB4_MAILDIR - -/* Define this if `struct sockaddr' includes sa_len */ -#undef SOCKADDR_HAS_SA_LEN - -/* Define this if `struct siaentity' includes ouid */ -#undef SIAENTITY_HAS_OUID - -/* Define if getlogin has POSIX flavour, as opposed to BSD */ -#undef POSIX_GETLOGIN - -/* Define if getpwnam_r has POSIX flavour */ -#undef POSIX_GETPWNAM_R - -/* define if getcwd() is broken (such as in SunOS) */ -#undef BROKEN_GETCWD - -/* define if the system is missing a prototype for crypt() */ -#undef NEED_CRYPT_PROTO - -/* define if the system is missing a prototype for strtok_r() */ -#undef NEED_STRTOK_R_PROTO - -/* define if /bin/ls takes -A */ -#undef HAVE_LS_A - -/* define if you have h_errno */ -#undef HAVE_H_ERRNO - -/* define if you have h_errlist but not hstrerror */ -#undef HAVE_H_ERRLIST - -/* define if you have h_nerr but not hstrerror */ -#undef HAVE_H_NERR - -/* define if your system doesn't declare h_errlist */ -#undef HAVE_H_ERRLIST_DECLARATION - -/* define if your system doesn't declare h_nerr */ -#undef HAVE_H_NERR_DECLARATION - -/* define this if you need a declaration for h_errno */ -#undef HAVE_H_ERRNO_DECLARATION - -/* define if you need a declaration for optarg */ -#undef HAVE_OPTARG_DECLARATION - -/* define if you need a declaration for optind */ -#undef HAVE_OPTIND_DECLARATION - -/* define if you need a declaration for opterr */ -#undef HAVE_OPTERR_DECLARATION - -/* define if you need a declaration for optopt */ -#undef HAVE_OPTOPT_DECLARATION - -/* define if you need a declaration for __progname */ -#undef HAVE___PROGNAME_DECLARATION - -/* 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 @@ -192,17 +89,26 @@ /* 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 cap_set_proc function. */ +#undef HAVE_CAP_SET_PROC + /* 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 dbm_firstkey function. */ -#undef HAVE_DBM_FIRSTKEY - -/* Define if you have the dbopen function. */ -#undef HAVE_DBOPEN +/* Define if you have the dlopen function. */ +#undef HAVE_DLOPEN /* Define if you have the dn_expand function. */ #undef HAVE_DN_EXPAND @@ -216,6 +122,9 @@ /* 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 @@ -228,6 +137,9 @@ /* 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 @@ -243,6 +155,15 @@ /* 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. */ #undef HAVE_GETHOSTBYNAME @@ -252,6 +173,9 @@ /* Define if you have the getlogin function. */ #undef HAVE_GETLOGIN +/* Define if you have the getmsg function. */ +#undef HAVE_GETMSG + /* Define if you have the getopt function. */ #undef HAVE_GETOPT @@ -264,6 +188,9 @@ /* 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. */ #undef HAVE_GETSERVBYNAME @@ -279,6 +206,9 @@ /* 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 @@ -327,6 +257,12 @@ /* 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 @@ -345,6 +281,9 @@ /* 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 @@ -402,8 +341,11 @@ /* Define if you have the setutent function. */ #undef HAVE_SETUTENT -/* Define if you have the snprintf function. */ -#undef HAVE_SNPRINTF +/* Define if you have the sgi_getcapabilitybyname function. */ +#undef HAVE_SGI_GETCAPABILITYBYNAME + +/* Define if you have the sigaction function. */ +#undef HAVE_SIGACTION /* Define if you have the socket function. */ #undef HAVE_SOCKET @@ -423,9 +365,18 @@ /* Define if you have the strlwr function. */ #undef HAVE_STRLWR +/* Define if you have the strncasecmp function. */ +#undef HAVE_STRNCASECMP + +/* Define if you have the strndup function. */ +#undef HAVE_STRNDUP + /* 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 @@ -435,6 +386,12 @@ /* Define if you have the swab function. */ #undef HAVE_SWAB +/* 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 @@ -477,6 +434,9 @@ /* 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 @@ -489,6 +449,18 @@ /* 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 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 @@ -504,18 +476,24 @@ /* Define if you have the <arpa/telnet.h> header file. */ #undef HAVE_ARPA_TELNET_H -/* Define if you have the <bind/bitypes.h> header file. */ -#undef HAVE_BIND_BITYPES_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 <capability.h> header file. */ +#undef HAVE_CAPABILITY_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 <db.h> header file. */ +#undef HAVE_DB_H + /* Define if you have the <dbm.h> header file. */ #undef HAVE_DBM_H @@ -525,18 +503,33 @@ /* 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. */ #undef HAVE_FCNTL_H +/* 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. */ #undef HAVE_IO_H /* 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 @@ -588,6 +581,9 @@ /* 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 @@ -603,18 +599,21 @@ /* Define if you have the <signal.h> header file. */ #undef HAVE_SIGNAL_H +/* Define if you have the <standards.h> header file. */ +#undef HAVE_STANDARDS_H + /* 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/capability.h> header file. */ +#undef HAVE_SYS_CAPABILITY_H + /* Define if you have the <sys/category.h> header file. */ #undef HAVE_SYS_CATEGORY_H -/* Define if you have the <sys/cdefs.h> header file. */ -#undef HAVE_SYS_CDEFS_H - /* Define if you have the <sys/file.h> header file. */ #undef HAVE_SYS_FILE_H @@ -639,6 +638,9 @@ /* 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 @@ -711,6 +713,12 @@ /* 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 @@ -753,29 +761,26 @@ /* Define if you have the <wait.h> header file. */ #undef HAVE_WAIT_H -/* Define if you have the <winsock.h> header file. */ -#undef HAVE_WINSOCK_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 /* 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 gdbm library (-lgdbm). */ -#undef HAVE_LIBGDBM - -/* Define if you have the ndbm library (-lndbm). */ -#undef HAVE_LIBNDBM +/* Define if you have the ncurses library (-lncurses). */ +#undef HAVE_LIBNCURSES /* Define if you have the nsl library (-lnsl). */ #undef HAVE_LIBNSL @@ -804,6 +809,250 @@ /* 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 to what version of SunOS you are running. */ +#undef SunOS + +/* 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. */ +#undef DES_QUAD_DEFAULT + +/* 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 strsep() */ +#undef NEED_STRSEP_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 */ +#undef HAVE_H_ERRNO + +/* define if your system declares h_errno */ +#undef HAVE_H_ERRNO_DECLARATION + +/* 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. */ +#undef VOID_RETSIGTYPE + +/* 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. */ +#undef ssize_t + +/* 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 el_init takes four arguments. */ +#undef HAVE_FOUR_VALUED_EL_INIT + +/* 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 @@ -813,6 +1062,13 @@ #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 HAVE_KRB_ENABLE_DEBUG 1 + +#define HAVE_KRB_DISABLE_DEBUG 1 + #define RCSID(msg) \ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } @@ -850,20 +1106,15 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #define MaxHostNameLen (64+4) #define MaxPathLen (1024+4) -/* - * Define NDBM if you are using the 4.3 ndbm library (which is part of - * libc). If not defined, 4.2 dbm will be assumed. - */ -#if defined(HAVE_DBM_FIRSTKEY) -#define NDBM -#endif - /* ftp stuff -------------------------------------------------- */ #define KERBEROS /* telnet stuff ----------------------------------------------- */ +/* define this for OTP support */ +#undef OTP + /* define this if you have kerberos 4 */ #undef KRB4 @@ -898,9 +1149,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } /* Used with login -p */ #undef LOGIN_ARGS -/* Define if there are working stream ptys */ -#undef STREAMSPTY - /* set this to a sensible login */ #ifndef LOGIN_PATH #define LOGIN_PATH BINDIR "/login" @@ -909,27 +1157,10 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } /* ------------------------------------------------------------ */ -/* - * Define this if your ndbm-library really is berkeley db and creates - * files that ends in .db. - */ -#undef HAVE_NEW_DB - -/* Define this if you have a working getmsg */ -#undef HAVE_GETMSG - -/* Define to enable new master key code */ -#undef RANDOM_MKEY - -/* Location of the master key file, default value lives in <kdc.h> */ -#undef MKEYFILE - -/* Define if you don't want support for afs, might be a good idea on - AIX if you don't have afs */ -#undef NO_AFS - -/* Define if you have a readline compatible library */ -#undef HAVE_READLINE +#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 @@ -937,37 +1168,25 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #define SIGRETURN(x) return (RETSIGTYPE)(x) #endif -/* Define this if your compiler supports '#pragma weak' */ -#undef HAVE_PRAGMA_WEAK - /* Temporary fixes for krb_{rd,mk}_safe */ #define DES_QUAD_GUESS 0 #define DES_QUAD_NEW 1 #define DES_QUAD_OLD 2 -/* Set this to one of the constants above to specify default checksum - type to emit */ -#undef DES_QUAD_DEFAULT +/* + * All these are system-specific defines that I would rather not have at all. + */ /* * AIX braindamage! */ #if _AIX #define _ALL_SOURCE -#define _POSIX_SOURCE -/* this is left for hysteric reasons :-) */ -#define unix /* well, ok... */ -#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 +/* XXX this is gross, but kills about a gazillion warnings */ +struct ether_addr; +struct sockaddr; +struct sockaddr_dl; +struct sockaddr_in; #endif #if defined(__sgi) || defined(sgi) @@ -982,3 +1201,21 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #if IRIX == 4 && !defined(__STDC__) #define __STDC__ 0 #endif + +/* + * Defining this enables lots of useful (and used) extensions on + * glibc-based systems such as Linux + */ + +#define _GNU_SOURCE + +/* 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/protos.H b/crypto/kerberosIV/include/protos.H new file mode 100644 index 0000000..c72575d --- /dev/null +++ b/crypto/kerberosIV/include/protos.H @@ -0,0 +1,282 @@ +/* -*- C -*- + * Copyright (c) 1995, 1996, 1997 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. 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 + * 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. + */ + +/* + * 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 $ + */ + +#ifdef NEED_CRYPT_PROTO +char *crypt(const char*, const char*); +#endif + +#ifdef NEED_STRTOK_R_PROTO +char *strtok_r (char *s1, const char *s2, char **lasts); +#endif + +#ifndef HAVE_OPTARG_DECLARATION +extern char *optarg; +#endif +#ifndef HAVE_OPTERR_DECLARATION +extern int opterr; +#endif +#ifndef HAVE_OPTIND_DECLARATION +extern int optind; +#endif +#ifndef HAVE_OPTOPT_DECLARATION +extern int optopt; +#endif + +#if defined(__GNUC__) && SunOS == 4 + +/* To get type fd_set */ +#include <sys/types.h> +#include <sys/time.h> + +/* To get struct sockaddr, struct in_addr and struct hostent */ +#include <sys/socket.h> +#include <netinet/in.h> +#include <netdb.h> + +/* To get struct stat */ +#include <sys/stat.h> + +/* To get struct utimbuf */ +#include <utime.h> + +#if !defined(HAVE_ATEXIT) && defined(HAVE_ON_EXIT) +#define atexit(X) on_exit(X, NULL) +#define HAVE_ATEXIT 1 +#endif +#ifdef NEED_UTIME_PROTO +int utime(const char *, const struct utimbuf *); +#endif +int syscall(int, ...); +pid_t getpid(void); +int ftruncate(int, off_t); +int fchmod(int, mode_t); +int fchown(int fd, int owner, int group); +int fsync(int); +int seteuid(uid_t); +int setreuid(int, int); +int flock(int, int); +int gettimeofday(struct timeval *tp, struct timezone *tzp); +int lstat(const char *, struct stat *); +int ioctl(int, int, void *); +int getpriority(int which, int who); +int setpriority(int which, int who, int priority); +int getdtablesize(void); +int initgroups(const char *name, int basegid); +long ulimit(int cmd, long newlimit); +int vhangup(void); + +int sigblock(int); +int sigsetmask(int); +int setitimer(int which, struct itimerval *value, struct itimerval *ovalue); + +int munmap(caddr_t addr, int len); + +int socket(int, int, int); +int setsockopt(int, int, int, void *, int); +int bind(int, void *, int); +int getsockname(int, struct sockaddr *, int *); +int accept(int, struct sockaddr *, int *); +int connect(int, struct sockaddr *, int); +int listen(int, int); +int recv(int s, void *buf, int len, int flags); +int recvfrom(int, char *, int, int, void *, int *); +int sendto(int, const char *, int, int, void *, int); +int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); +int shutdown(int, int); +int getpeername(int, struct sockaddr *, int *); +int getsockopt(int, int, int, void *, int *); +int send(int s, const void *msg, int len, int flags); +struct strbuf; +int getmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr, int *flags); + +char *inet_ntoa(struct in_addr in); +unsigned long inet_addr(const char *cp); +int gethostname(char *, int); +struct hostent *gethostbyname(const char *); +int dn_expand(const u_char *msg, + const u_char *eomorig, + const u_char *comp_dn, + char *exp_dn, + int length); +int res_search(const char *dname, + int class, + int type, + u_char *answer, + int anslen); + +int yp_get_default_domain (char **outdomain); +int innetgr(const char *netgroup, const char *machine, + const char *user, const char *domain); + +char *getwd(char *pathname); + +void bzero(char *b, int length); +int strcasecmp(const char *, const char *); +void swab(const char *, char *, int); +int atoi(const char *str); +char *mktemp(char *); +void srandom(int seed); +int random(void); + +int rcmd(char **, unsigned short, char *, char *, char *, int *); +int rresvport(int *); +int openlog(const char *ident, int logopt, int facility); +int syslog(int priority, const char *message, ...); +int ttyslot(void); + +char *getpass(const char *); + +char *getusershell(void); +void setpwent(); +void endpwent(); + +#include <stdio.h> +int fclose(FILE *); + +#endif /* SunOS4 */ + +#if SunOS == 5 + +#include <sys/types.h> +#include <sys/resource.h> + +char *getusershell(void); +char *strtok_r(char *, const char *, char **); +int getpriority (int which, id_t who); +int setpriority (int which, id_t who, int prio); +int getdtablesize (void); +char *getusershell(void); +void setusershell(void); +void endusershell(void); + +#if defined(__GNUC__) + +int syscall(int, ...); +int gethostname(char *, int); + +struct timeval; +int gettimeofday(struct timeval *tp, void *); + +#endif +#endif + +#if defined(__osf__) /* OSF/1 */ + +#if 0 +/* To get type fd_set */ +#include <sys/types.h> +#include <sys/time.h> + +int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); +int fsync(int fildes); +int gethostname(char *address, int address_len); +int setreuid(int ruid, int euid); +int ioctl(int d, unsigned long request, void * arg); +#endif +int flock(int fildes, int operation); +int syscall(int, ...); + +unsigned short htons(unsigned short hostshort); +unsigned int htonl(unsigned int hostint); +unsigned short ntohs(unsigned short netshort); +unsigned int ntohl(unsigned int netint); + +char *mktemp(char *template); +char *getusershell(void); + +int rcmd(char **, unsigned short, char *, char *, char *, int *); +int rresvport (int *port); + +#endif /* OSF/1 */ + +#if defined(__sgi) +#include <sys/types.h> + +char *ptsname(int fd); +struct spwd *getspuid(uid_t); +#endif /* IRIX */ + +#if defined(__GNUC__) && defined(_AIX) /* AIX */ + +struct timeval; +struct timezone; +int gettimeofday (struct timeval *Tp, void *Tzp); + +#endif /* AIX */ + +#if defined(__GNUC__) && defined(__hpux) /* HP-UX */ + +int syscall(int, ...); + +int vhangup(void); + +char *ptsname(int fildes); + +void utmpname(const char *file); + +int innetgr(const char *netgroup, const char *machine, + const char *user, const char *domain); + +int dn_comp(char *exp_dn, char *comp_dn, int length, + char **dnptrs, char **lastdnptr); + +int res_query(char *dname, int class, int type, + unsigned char *answer, int anslen); + +int dn_expand(char *msg, char *eomorig, char *comp_dn, + char *exp_dn, int length); + +int res_search(char *dname, int class, int type, + unsigned char *answer, int anslen); + +#endif /* HP-UX */ + +#if defined(WIN32) /* Visual C++ 4.0 (Windows95/NT) */ + +int open(const char *, int, ...); +int close(int); +int read(int, void *, unsigned int); +int write(int, const void *, unsigned int); + +#endif /* WIN32 */ diff --git a/crypto/kerberosIV/include/sys/Makefile.in b/crypto/kerberosIV/include/sys/Makefile.in index d6a58e0..cee60af 100644 --- a/crypto/kerberosIV/include/sys/Makefile.in +++ b/crypto/kerberosIV/include/sys/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.18 1997/05/11 04:29:47 assar Exp $ +# $Id: Makefile.in,v 1.22 1998/03/15 05:57:53 assar Exp $ srcdir = @srcdir@ VPATH = @srcdir@ @@ -12,11 +12,11 @@ MKINSTALLDIRS = @top_srcdir@/mkinstalldirs prefix = @prefix@ includedir = @includedir@ -HAVE_CDEFS = @ac_cv_header_sys_cdefs_h@ +BROKEN_SOCKET_H = @krb_cv_header_sys_socket_h_broken@ @SET_MAKE@ -HEADERS = cdefs.h +HEADERS = socket.h all: stamp-headers @@ -24,15 +24,8 @@ Wall: $(MAKE) CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__" install: all - $(MKINSTALLDIRS) $(includedir)/sys - -if test "$(HAVE_CDEFS)" != yes; then \ - $(INSTALL_DATA) cdefs.h $(includedir)/sys/cdefs.h ; \ - fi uninstall: - -if test "$(HAVE_CDEFS)" != yes; then \ - rm -f $(includedir)/sys/cdefs.h ; \ - fi clean: rm -f $(HEADERS) stamp-headers @@ -43,11 +36,13 @@ distclean: clean realclean: clean -cdefs.h: - if test "$(HAVE_CDEFS)" != yes; then \ - $(LN_S) ${srcdir}/cdefs.H cdefs.h; \ +socket.h: + if test "$(BROKEN_SOCKET_H)" = yes; then \ + $(LN_S) $(srcdir)/socket.x socket.h; \ fi || true stamp-headers: $(MAKE) $(HEADERS) touch stamp-headers + +.PHONY: all Wall install uninstall clean mostlyclean distclean realclean diff --git a/crypto/kerberosIV/include/sys/socket.x b/crypto/kerberosIV/include/sys/socket.x new file mode 100644 index 0000000..d5678c8 --- /dev/null +++ b/crypto/kerberosIV/include/sys/socket.x @@ -0,0 +1,7 @@ +/* fix for broken ultrix sys/socket.h. */ +#ifndef __SOCKET_H__ +#define __SOCKET_H__ + +#include "/usr/include/sys/socket.h" + +#endif /* __SOCKET_H__ */ |