+Thu Sep 25 21:06:40 1997 Tom Yu <tlyu@mit.edu>
+
+ * acconfig.h: Punt HAS_SETVBUF, HAS_UNISTD_H, KRB5_USE_INET.
+
Thu Sep 18 17:51:39 1997 Tom Yu <tlyu@mit.edu>
* acconfig.h: Remove USE_STRING_H, HAS_STRDUP, HAS_LABS
handle it on some systems. */
#undef ANSI_STDIO
-#undef HAS_SETVBUF
#undef HAS_STDLIB_H
#undef HAS_VOID_TYPE
#undef KRB5_NO_PROTOTYPES
#undef USE_DIRENT_H
#undef WAIT_USES_INT
#undef krb5_sigtype
-#undef HAS_UNISTD_H
-#undef KRB5_USE_INET
#undef HAVE_STDARG_H
#undef HAVE_VARARGS_H
+Thu Sep 25 21:10:37 1997 Tom Yu <tlyu@mit.edu>
+
+ * win-mac.h: Replace KRB5_USE_INET with something more sane.
+
+ * k5-int.h: Replace HAS_UNISTD_H with something more sane.
+
Thu Sep 18 17:52:59 1997 Tom Yu <tlyu@mit.edu>
* win-mac.h: Replace USE_STRING_H with something more sane.
extern char *strdup KRB5_PROTOTYPE((const char *));
#endif
-#ifdef HAS_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+Thu Sep 25 21:50:44 1997 Tom Yu <tlyu@mit.edu>
+
+ * configure.in: Replace KRB5_USE_INET, HAS_UNISTD_H, HAS_SETVBUF.
+
Thu Sep 18 20:42:03 1997 Tom Yu <tlyu@mit.edu>
* configure.in: Replace USE_STRING_H, HAS_STRDUP, HAS_LABS
AC_PROG_LEX
AC_PROG_INSTALL
HAVE_YYLINENO
-AC_CHECK_FUNCS(strdup labs)
+AC_CHECK_FUNCS(strdup labs setvbuf)
CHECK_DIRENT
CHECK_WAIT_TYPE
AC_TYPE_UID_T
dnl
dnl
-AC_CHECK_HEADERS(string.h)
+AC_CHECK_HEADERS(string.h unistd.h)
AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H),AC_DEFINE(NO_STDLIB_H))
AC_CHECK_HEADERS(sys/types.h sys/file.h sys/param.h sys/stat.h macsock.h stddef.h xom.h dbm.h ndbm.h)
AC_HEADER_STDARG
-AC_FUNC_CHECK([setvbuf],AC_DEFINE(HAS_SETVBUF))
dnl check for ANSI stdio, esp "b" option to fopen(). This (unfortunately)
dnl requires a run check...
AC_C_CROSS
AC_TIME_WITH_SYS_TIME
AC_CHECK_HEADERS(sys/time.h)
-AC_HEADER_CHECK(netinet/in.h,AC_DEFINE(KRB5_USE_INET))
-AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H))
+AC_CHECK_HEADERS(netinet/in.h)
AC_CHECK_LIB(ndbm,main)
AC_CHECK_LIB(dbm,main)
#define MAXHOSTNAMELEN 512
#define MAXPATHLEN 256 /* Also for Windows temp files */
-#define KRB5_USE_INET
+#define HAVE_NETINET_IN_H
#define MSDOS_FILESYSTEM
#define HAVE_STRING_H
#define HAVE_SRAND
+Thu Sep 25 21:17:00 1997 Tom Yu <tlyu@mit.edu>
+
+ * srv_net.c (net_init): Replace KRB5_USE_INET with something more
+ sane.
+
+ * adm_conn.c (kadm_contact_server): Replace KRB5_USE_INET with
+ something more sane.
+
Thu Sep 18 17:54:40 1997 Tom Yu <tlyu@mit.edu>
* kpasswd.c: Replace USE_STRING_H with something more sane.
/*
* XXX - only know ADDRTYPE_INET.
*/
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
*local = (krb5_address *) malloc(sizeof(krb5_address));
*remote = (krb5_address *) malloc(sizeof(krb5_address));
realm_name = (char *) malloc((size_t) realmp->length + 1);
if (!found)
kret = KRB5_SERVICE_UNKNOWN;
}
-#else /* KRB5_USE_INET */
+#else /* HAVE_NETINET_IN_H */
kret = ENOENT;
-#endif /* KRB5_USE_INET */
+#endif /* HAVE_NETINET_IN_H */
cleanup:
if (kret) {
}
net_service_princ_init = 1;
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
/* Now get our host name/entry */
if (gethostname(our_host_name, sizeof(our_host_name))) {
kret = errno;
("- bound socket %d on port\n", net_listen_socket));
kret = 0;
}
-#else /* KRB5_USE_INET */
+#else /* HAVE_NETINET_IN_H */
/* Don't know how to do anything else. */
kret = ENOENT;
-#endif /* KRB5_USE_INET */
+#endif /* HAVE_NETINET_IN_H */
done:
DPRINT(DEBUG_CALLS, net_debug_level, ("X net_init() = %d\n", kret));
+Thu Sep 25 21:19:08 1997 Tom Yu <tlyu@mit.edu>
+
+ * network.c: Replace KRB5_USE_IENT with something more sane.
+
+ * do_tgs_req.c: Replace KRB5_USE_INET with something more sane.
+
+ * main.c: Replace KRB5_USE_INET with something more sane.
+
+ * do_as_req.c: Replace KRB5_USE_INET with something more sane.
+
Wed Sep 24 11:56:50 1997 Ezra Peisach <epeisach@kangaroo.mit.edu>
* kdc_util.c (add_to_transited): Fix up memory leaks, clean out
#include "com_err.h"
#include <syslog.h>
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include <sys/types.h>
#include <netinet/in.h>
#ifndef hpux
#include <arpa/inet.h>
#endif /* hpux */
-#endif /* KRB5_USE_INET */
+#endif /* HAVE_NETINET_IN_H */
#include "kdc_util.h"
#include "policy.h"
e_data.data = 0;
encrypting_key.contents = 0;
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
if (from->address->addrtype == ADDRTYPE_INET)
fromstring = (char *) inet_ntoa(*(struct in_addr *)from->address->contents);
#endif
#include "com_err.h"
#include <syslog.h>
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include <sys/types.h>
#include <netinet/in.h>
#ifndef hpux
if ((retval = setup_server_realm(request->server)))
return retval;
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
if (from->address->addrtype == ADDRTYPE_INET)
fromstring =
(char *) inet_ntoa(*(struct in_addr *)from->address->contents);
#include "extern.h"
#include "kdc5_err.h"
#include "kdb_kt.h"
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#include "kdc5_err.h"
#include <ctype.h>
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
+Thu Sep 25 21:53:11 1997 Tom Yu <tlyu@mit.edu>
+
+ * c_localaddr.c: Replace KRB5_USE_INET with something more sane.
+
Tue Aug 12 09:09:14 1997 Ezra Peisach <epeisach@mit.edu>
* Makefile.in (SRCS): Add $(srcdir) as needed.
* type; you have to ask for one with a valid type.
*
*/
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
/* ifr->ifr_addr has what we want! */
switch (ifr->ifr_addr.sa_family) {
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
case AF_INET:
{
struct sockaddr_in *in =
+Thu Sep 25 21:30:36 1997 Tom Yu <tlyu@mit.edu>
+
+ * adm_conn.c (kadm_contact_server): Replace KRB5_USE_INET with
+ something more sane.
+
Thu Nov 21 00:58:04 EST 1996 Richard Basch <basch@lehman.com>
* Makefile.in: Win32 build
/*
* XXX - only know ADDRTYPE_INET.
*/
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
*local = (krb5_address *) malloc(sizeof(krb5_address));
*remote = (krb5_address *) malloc(sizeof(krb5_address));
realm_name = (char *) malloc((size_t) realmp->length + 1);
if (!found)
kret = KRB5_SERVICE_UNKNOWN;
}
-#else /* KRB5_USE_INET */
+#else /* HAVE_NETINET_IN_H */
kret = ENOENT;
-#endif /* KRB5_USE_INET */
+#endif /* HAVE_NETINET_IN_H */
cleanup:
if (kret) {
+Thu Sep 25 21:11:16 1997 Tom Yu <tlyu@mit.edu>
+
+ * put_svc_key.c: Replace HAS_UNISTD_H with something more sane.
+
+ * kuserok.c: Replace HAS_UNISTD_H with something more sane.
+
+ * configure.in: Replace HAS_UNISTD_H with something more sane.
+
Mon Sep 1 21:37:36 1997 Tom Yu <tlyu@mit.edu>
* decomp_tkt.c (decomp_ticket): Fix swapped args to memset.
AC_PROG_INSTALL
AC_CONST
KRB5_POSIX_LOCKS
-AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H))
-AC_CHECK_HEADERS(sys/select.h time.h)
+AC_CHECK_HEADERS(sys/select.h time.h unistd.h)
dnl Could check for full stdc environment, but will only test
dnl for stdlib.h
AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H))
#include <sys/stat.h>
#include <sys/file.h>
#include <string.h>
-#ifdef HAS_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef __SCO__
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
-#ifdef HAS_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+Thu Sep 25 21:23:11 1997 Tom Yu <tlyu@mit.edu>
+
+ * fcc_maybe.c: Replace KRB5_USE_INET with something more sane.
+
+ * fcc_gennew.c: Replace KRB5_USE_INET with something more sane.
+
Mon Sep 15 15:15:33 1997 Ezra Peisach <epeisach@mit.edu>
* fcc-proto.h, fcc_reslv.c (krb5_fcc_resolve): Incoming name
#include "fcc.h"
#include "k5-int.h"
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#if !defined(_WINSOCKAPI_) && !defined(HAVE_MACSOCK_H)
#include <netinet/in.h>
#endif
#include "fcc.h"
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#if !defined(_WINSOCKAPI_) && !defined(HAVE_MACSOCK_H)
#include <netinet/in.h>
#endif
+Thu Sep 25 21:04:47 1997 Tom Yu <tlyu@mit.edu>
+
+ * scc_maybe.c (krb5_scc_open_file): Replace HAS_SETVBUF with
+ something more sane.
+
Mon Sep 15 15:15:33 1997 Ezra Peisach <epeisach@mit.edu>
* scc-proto.h, scc_reslv.c (krb5_scc_resolve): Incoming name
f = fopen (data->filename, open_flag);
if (!f)
return krb5_scc_interpret (context, errno);
-#ifdef HAS_SETVBUF
+#ifdef HAVE_SETVBUF
setvbuf(f, data->stdio_buffer, _IOFBF, sizeof (data->stdio_buffer));
#else
setbuf (f, data->stdio_buffer);
+Thu Sep 25 21:24:54 1997 Tom Yu <tlyu@mit.edu>
+
+ * mk_faddr.c: Replace KRB5_USE_INET with something more sane.
+
+ * port2ip.c: Replace KRB5_USE_INET with something more sane.
+
+ * os-proto.h: Replace KRB5_USE_INET with something more sane.
+
+ * locate_kdc.c: Replace KRB5_USE_INET with something more sane.
+
+ * genaddrs.c (krb5_auth_con_genaddrs): Replace KRB5_USE_INET with
+ something more sane.
+
+ * gen_port.c (krb5_gen_portaddr): Replace KRB5_USE_INET with
+ something more sane.
+
+ * full_ipadr.c: Replace KRB5_USE_INET with something more sane.
+
Thu Sep 18 17:56:00 1997 Tom Yu <tlyu@mit.edu>
* hst_realm.c: Replace USE_STRING_H with something more sane.
#define NEED_SOCKETS
#include "k5-int.h"
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include "os-proto.h"
krb5_const_pointer ptr;
krb5_address **outaddr;
{
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
krb5_int32 adr;
krb5_int16 port;
krb5_address * rport;
SOCKET fd = (SOCKET) infd;
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
struct sockaddr_in lsaddr, rsaddr;
krb5_address lcaddr, rcaddr;
krb5_address lcport, rcport;
struct sockaddr_in *sin_p;
struct hostent *hp;
struct servent *sp;
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
u_short udpport = htons(KRB5_DEFAULT_PORT);
u_short sec_udpport = htons(KRB5_DEFAULT_SEC_PORT);
#endif
if (code)
return code;
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
if ((sp = getservbyname(KDC_PORTNAME, "udp")))
udpport = sp->s_port;
if ((sp = getservbyname(KDC_SECONDARY_PORTNAME, "udp")))
return 0;
}
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
if (sec_udpport)
count = count * 2;
#endif
hp = gethostbyname(hostlist[i]);
if (hp != 0) {
switch (hp->h_addrtype) {
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
case AF_INET:
for (j=0; hp->h_addr_list[j]; j++) {
sin_p = (struct sockaddr_in *) &addr_p[out++];
#define NEED_SOCKETS
#include "k5-int.h"
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include "os-proto.h"
#if !defined(_WINSOCKAPI_) && !defined(HAVE_MACSOCK_H)
int *));
#endif
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
krb5_error_code krb5_unpack_full_ipaddr
PROTOTYPE((krb5_context,
const krb5_address *,
int */
krb5_address **));
-#endif /* KRB5_USE_INET */
+#endif /* HAVE_NETINET_IN_H */
#endif /* KRB5_LIBOS_INT_PROTO__ */
#define NEED_SOCKETS
#include "k5-int.h"
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#include "os-proto.h"
krb5_error_code
+Thu Sep 25 21:28:41 1997 Tom Yu <tlyu@mit.edu>
+
+ * rc_io.c: Replace KRB5_USE_INET with something more sane.
+
Tue Mar 25 01:15:39 1997 Theodore Y. Ts'o <tytso@mit.edu>
* rc_io.c (krb5_rc_io_open): rcache owner should be checked against
#define O_BINARY 0
#endif
-#ifdef KRB5_USE_INET
+#ifdef HAVE_NETINET_IN_H
#if !defined(_WINSOCKAPI_) && !defined(HAVE_MACSOCK_H)
#include <netinet/in.h>
#endif
+Thu Sep 25 21:05:23 1997 Tom Yu <tlyu@mit.edu>
+
+ * autoconf.h: Change HAS_SETVBUF, KRB5_USE_INET to something more
+ sane.
+
Thu Sep 18 17:59:05 1997 Tom Yu <tlyu@mit.edu>
* autoconf.h: Replace USE_STRING_H with something more sane.
/* autoconf.h. DO NOT DELETE -- this version of autoconf.h is specific for macintosh. */
-#define HAS_SETVBUF 1
+#define HAVE_SETVBUF 1
#define HAS_ANSI_CONST 1
#define HAS_STDLIB_H 1
#define HAS_VOID_TYPE 1
#define HAVE_STRING_H 1
#define WAIT_USES_INT 1
#define krb5_sigtype void
-#define KRB5_USE_INET 1
+#define HAVE_NETINET_IN_H 1
#define ODBM 1
/* Define to empty if the keyword does not work. */
#define const