* configure.in: Use AH_TEMPLATE to put undefined definition of
HAVE_STRUCT_SOCKADDR_STORAGE in krb5/autoconf.h - allowing for
acconfig.h to be removed.
* Makefile.in (autoconf.stmp): No longer depend on
$(SRCTOP)/acconfig.h.
Ken Raeburn [Fri, 30 Aug 2002 00:06:31 +0000 (00:06 +0000)]
Change configure argument handling to be more in line with standard autoconf
usage.
* aclocal.m4 (KRB5_AC_CHOOSE_ET, KRB5_AC_CHOOSE_SS): Renamed from non-KRB5_AC_
names. Change --with-system-com_err to --with-system-et, to avoid confusing
mix of '-' and '_'.
(WITH_CCOPTS): Describe as deprecated in favor of CFLAGS=...; use
AC_REQUIRE_CPP.
(WITH_LINKER, WITH_LDOPTS, WITH_CPPOPTS): Describe as deprecated; encourage use
of LD= etc instead.
(WITH_NETLIB, WITH_HESIOD): Use AC_HELP_STRING.
(KRB5_AC_CHECK_FOR_CFLAGS): New macro.
(WITH_CC): Mark old configure option deprecated, encourage user to use CC=
instead. Add gcc warning flags only if CFLAGS not set by user. Don't force
default to "cc".
(KRB5_LIB_PARAMS): Use AC_CANONICAL_HOST, don't bother with cache.
Ken Raeburn [Thu, 29 Aug 2002 12:14:44 +0000 (12:14 +0000)]
* Makefile.in (MAYBE_ET-k5, MAYBE_ET-sys, MAYBE_SS-k5, MAYBE_SS-sys): New
variables.
(MY_SUBDIRS): Refer to them, choosing via new configure substitutions.
Ken Raeburn [Thu, 29 Aug 2002 08:27:01 +0000 (08:27 +0000)]
Ignore a bunch of files generated by building in the source tree, excluding
those covered by CVSROOT/cvsignore patterns. Static UNIX build only, at the
moment, may need updates for other configurations.
(Second try; this time, deal with the cases where "cvs add"/"cvs ci" choked on
previously deleted versions numbered 5.x.)
Ken Raeburn [Thu, 29 Aug 2002 08:04:44 +0000 (08:04 +0000)]
Ignore a bunch of files generated by building in the source tree, excluding
those covered by CVSROOT/cvsignore patterns. Static UNIX build only, at the
moment, may need updates for other configurations.
Ken Raeburn [Tue, 27 Aug 2002 16:24:53 +0000 (16:24 +0000)]
Quote targets of some copy operations within the build tree. Needed
now for Windows since we use "/" as a directory separator in places
where Windows would also look for command options.
Ezra Peisach [Mon, 26 Aug 2002 13:14:51 +0000 (13:14 +0000)]
* pre.in: Set host to @krb5_cv_host@ instead of @host@. The way
aclocal.m4 is setup, AC_CANONICAL_HOST may only be evaluated as a
cached variable and autoconf 2.52 will only allow one inclusion of
the code.
Tom Yu [Fri, 23 Aug 2002 18:15:18 +0000 (18:15 +0000)]
* dump.c (dump_db): Update usage comment. Add "-rev" and
"-recurse" flags to permit reverse and recursive dumping of the
database, respectively. Check for dump filename beginning with
"-" to avoid accidental dumps to such filenames.
* kdb5_util.c (usage): Update to match reality, primarily by
updating the "dump" usage, but also showing global options before
the command, which is how they were being interpreted anyway.
* kdb5_util.M: Update to match reality. Document "-mkey_convert",
"-new_mkey_file", "-rev", and "-recurse" options to "dump".
Document "dump to stdout" behavior. Show global options before
the command. Make some formatting fixes. s/binary tree/btree/
since the btree back end is actually an n-ary tree.
Tom Yu [Fri, 23 Aug 2002 17:56:13 +0000 (17:56 +0000)]
* main.c: Disable append(); we don't have R_APPEND in this release
of DB for some reason. Disable load() due to lack of fgetline().
Conditionalize lots of things on -DSTATISTICS or -DDEBUG as
appropriate.
(rlist): New function; does recursive listing of principals.
(main): Fix up naming of *_ENDIAN macros. Default to read-only
open, with new "-w" option for opening read/write. Actually call
db->sync with the correct number of arguments.
(show): Update call to __bt_dpage().
(usage): Update.
Tom Yu [Fri, 23 Aug 2002 17:55:33 +0000 (17:55 +0000)]
* Makefile.in (LIBMINOR): Bump due to addition of bt_rseq()
* hash/hash_debug.c: Remove inclusion of compat.h, as we don't
have it in our build system.
* btree/extern.h: Add missing prototypes/renames for
__bt_dmpage(). Add renames for bt_rseq() support functions.
* btree/bt_seq.c (bt_rseq): New function; like __bt_seq() but does
recursive descent rather than using the prev/next pointers. This
will catch some pages that might be missed if the database is
inconsistent. Added support functions for bt_rseq() as well.
* btree/bt_page.c (__bt_free): Set B_METADIRTY when updating free
list.
(__bt_new): Set B_METADIRTY when updating free list.
[patch from www.sleepycat.com]
* btree/bt_debug.c (__bt_dump): Bound loop by number of pages
actually in file to avoid getting a nigh-infinite number of
all-zeroes pages.
(__bt_dmpage): Print a newline after dumping the meta page.
(__bt_dpage): Add DB* parameter; use this to get pagesize in order
to limit dumping of page contents, in case NEXTINDEX(h) happens to
be bogus.
(__bt_stat): Bound loop by number of pages actually in file so as
to stop counting pages after the actual end of file.
* btree/bt_close.c (__bt_sync): Apply a Kerbnet fix from long ago;
don't return prematurely when B_METADIRTY is set but B_MODIFIED is
clear.
Ken Raeburn [Thu, 22 Aug 2002 22:34:15 +0000 (22:34 +0000)]
* sendto_kdc.c (MAX_PASS, dprint): New macros.
(krb5int_debug_fprint, merge_addrlists): New function.
(krb5int_debug_sendto_kdc): New variable.
(krb5_sendto_kdc): Use dprint. Call krb5int_locate_kdc in two places, with
socket type selection done separately.
(debug_log_connect): Function deleted; use dprint instead.
(dperror): Use dprint.
(print_fdsets): Function deleted; use dprint instead.
(struct conn_state): Use struct instead of union so incoming and outgoing
buffer pointers can co-exist. Add INITIALIZING state.
(state_strings): Add INITIALIZING.
(krb5int_sendto_udp, krb5int_sendto_tcp): Functions integrated into
krb5int_sendto.
(call_select): Use dprint.
(setup_connection): New function, handles data structure initialization.
(start_connection): Renamed from start_tcp_connection. Don't do data structure
initialization, just start connection, and transmit UDP datagrams. Use dprint.
(maybe_send): Create socket for "INITIALIZING" connections; transmit datagrams.
(kill_conn): New function split out from service_tcp_fd.
(SSF_READ, SSF_WRITE, SSF_EXCEPTION): New macros.
(service_tcp_fd): Accept a flag word rather than separate int arguments for
read, write, exception. Use dprint.
(service_udp_fd): New function.
(service_fd): New function, calls one of the above two.
(service_fds): Call it. Use a flag word instead of separate r/w/x values.
Ken Raeburn [Thu, 15 Aug 2002 23:13:20 +0000 (23:13 +0000)]
* sendto_kdc.c (DEFAULT_UDP_PREF_LIMIT, HARD_UDP_LIMIT): New macros.
(debug_log_connect): Look up "udp_preference_limit" in libdefaults part of
profile; try TCP before UDP if the packet size is larger than specified. Don't
try UDP at all if the packet is over about 32K.
Ken Raeburn [Thu, 15 Aug 2002 01:45:55 +0000 (01:45 +0000)]
* lib.in ($(SUBDIROBJLISTS) and .SH/.PF variants): Depend on recursion. Use
extra dummy target in case the variable is empty.
* post.in (ALL_DEP_SRCS): New variable, includes SRCS and EXTRADEPSRCS.
(.d): Depend on and use $(ALL_DEP_SRCS).
* pre.in (all-unix, all-recurse, all-postrecurse): Make each stage depend on
the previous, rather than having all-unix depend on each.
Ken Raeburn [Thu, 15 Aug 2002 01:24:15 +0000 (01:24 +0000)]
(NO_FILE): New macro. All functions changed to test or assign it rather than
-1 or (FILE*)NULL.
(krb5_fcc_read_keyblock, krb5_fcc_read_data): Rewrite bounds check.
(BINARY_MODE): Always define.
(setvbuf) [!HAVE_SETVBUF]: Define as macro using setbuf.
(krb5_fcc_open_file): Change file descriptor variable to "f" and combine newly
matching stdio and file sections. Use setvbuf instead of checking whether to
use setbuf. Fix bug in merge.
Ken Raeburn [Wed, 14 Aug 2002 22:54:11 +0000 (22:54 +0000)]
* cc_stdio.c (krb5_fcc_next_cred): Use a krb5_error_code to hol the return
value from krb5_fcc_interpret.
(krb5_fcc_get_principal): Initialize return-value variable.
(krb5_fcc_initialize): Likewise.
(krb5_fcc_interpret): Change retval to a krb5_error_code. Reorder cases for
consistency with cc_file.c.