Tom Yu [Sun, 23 Jul 2000 03:17:39 +0000 (03:17 +0000)]
* default.exp: Add code to handle setting of PASS to constrain
multipass testing to particular passes. dejagnu-1.3 doesn't have
support for PASS, so we kludge it here, though some later versions
handle it by themselves.
(krb_exit): Add new proc to clean up on exit.
(kinit): Remove "expect \r" since "expect eof" will drain the pty
buffer properly anyway.
Peter Litwack [Fri, 21 Jul 2000 23:35:12 +0000 (23:35 +0000)]
* krlogin.c (writer): Improved bandwith efficiency by reading
and sending more than one character at a time if multiple
characters are available to be read from the terminal.
* krlogin.c (read_wrapper): Added this function as a helper
to writer. It facilitates checking for escape sequences
(~^Z etc.) when reading mulitple characters at a time.
* memcache.c: Add krb_in_tkt() function to initialize ticket for a
given principal. It is like in_tkt() but it is public and also
takes a realm for credentials caches that require a full
principal name (e.g., CCAPI).
* Makefile.in: Make krb524 library and k524init program build on
Windows.
* krb524.def, libinit.c: Files needed to build on Windows.
* k524init.c: Use public krb_in_tkt() with realm paramter instead of
potentially private in_tkt() w/o realm parameter (which does not
even exist w/o the realm paramter in some krb4 libraries). Use
krb_save_credentials() instead of tf_init() then
tf_save_credentials() then tf_close().
* cnv_tkt_skey.c: Put copy of krb_cr_tkt_krb5() and
krb_create_ticket() as static functions in this file, calling them
krb524int_*(). Call these functions instead of the ones in the
MIT krb4 library included in the krb5 tree.
* conv_princ.c: Remove unused headers.
* k524init.c, cnv_tkt_skey.c, conv_creds.c, encode.c, misc.c,
sendmsg.c, test.c: Do not include Unix headers on Windows.
* sendmsg.c (krb524_sendto_kdc): Fix call to krb5_locate_kdc() to
use right number and types of parameters. Use krb5int_accessor()
to get at internals: krb5_locate_kdc(), krb5_max_dgram_size,
krb5_skdc_timeout_1, and krb5_skdc_timeout_shift. (The latter 3
should probably be #defines...)
Add krb5int_accessor() to access internal krb5 functions from outside
the library (so that we don't have to export them for the krb525 and
gssapi libraries). The goal is to make this function eventually do
nothing.
* k5-int.h: Add krb5int_accessor() and related definitions.
krb5int_accessor should be used by any code that is trying to use
krb5 internal functions (such as krb524 and GSSAPI). The goal is
to eventually make this function do nothing. That will only be
accomplished when we fix our apps/libraries not to call internal
functions.
* in_tkt.c: Add krb_in_tkt() function to initialize ticket for a
given principal. It is like in_tkt() but it is public and also
takes a realm for credentials caches that require a full
principal name (e.g., CCAPI).
* k5-int.h: Move prototypes for krb5 only internal functions
krb5_libdefault_boolean, _krb5_use_dns_realm, _krb5_use_dns_kdc,
_krb5_conf_boolean to the header files in the lib/krb5/{os,krb}
directories.
Ken Raeburn [Fri, 14 Jul 2000 22:47:27 +0000 (22:47 +0000)]
Delete subdirectories we aren't compiling any more.
Rescued contents of "README", "todo", and test cases.
Test cases aren't actually used at present; this should be fixed, but
they'll probably need some work.
Ken Raeburn [Fri, 14 Jul 2000 22:33:59 +0000 (22:33 +0000)]
Collapse ccache implementations file, stdio, memory into single files.
(Old files not removed yet.)
Add a new file for krb5_cc_* dispatch functions that are no longer macros.
Ken Raeburn [Fri, 14 Jul 2000 22:04:39 +0000 (22:04 +0000)]
* aclocal.m4 (KRB5_LIB_PARAMS): Moved bulk of the work into config/shlib.conf.
(K5_AC_CHECK_FILES): Require AC_PROG_CC be run first.
(WITH_CC): If we're using gcc, enable a bunch of warning options.
Tom Yu [Wed, 12 Jul 2000 02:38:04 +0000 (02:38 +0000)]
* coding-style: Some minor tweaks. Require do-while to always be
braced. Note some aspects of function pointer and array pointer
usage. Elaborate on function declaration practices. Add
placeholders for sections on Makefiles and test suites.
Ken Raeburn [Wed, 5 Jul 2000 22:18:29 +0000 (22:18 +0000)]
* dump.c: Various message char arrays turned into macros, to permit gcc to
verify format strings and arguments match.
(k5beta6_dump_header, k5beta7_dump_header): Deleted.
(dump_ov_princ): Use %lx for aux_attributes.
Tom Yu [Tue, 4 Jul 2000 10:59:27 +0000 (10:59 +0000)]
* gssapi.exp: Rework significantly to deal with HP/UX lossage that
probably resulted from when either the client or the server wound
up blocking on tty output. Abstract things a little more. Remove
dead duplicate code that used to deal with "-v2". Should figure
out why the "-v2" stuff disappeared mysteriously.
* pre.in: Remove the kdb5 and db libraries from the
common application list but list them for server applications.
Clients in general do not depend on the database libraries. (this
improves startup time with shared libraries by not requiring
the resolve of a library that is not used.
Tom Yu [Sun, 2 Jul 2000 18:50:12 +0000 (18:50 +0000)]
* default.exp: Add rudimentary support for multiple passes. For
now, iterate over a few combinations of des_krbtgt and assorted
enctype lists. Will eventually allow for separate krb5.conf files
for clients and servers. Add varibles RLOGIN and RLOGIN_FLAGS to
permit run-time configuration of rlogin program if necessary. Set
up an onexit handler that calls stop_kerberos_daemons. Replace
many uses of doubled-up send_log and verbose with single calls to
verbose -log. Replace instances of send_error with perror where
appropriate, since this will cause successor test to fail, which
is usually what we want.
(setup_root_shell): Replace calls to untested with calls to
unsupported; also use note for explanatory text previously printed
using untested. Add match string for "connection refused" and
collapse common code into a single expect clause by using the -re
flag.
(start_kerberos_daemons): Conditionalize calls to fail based on
$standalone; in the !$standalone case, call perror instead. Calls
to fail and pass for a given test should have consistent strings,
and extraneous calls to fail should not be made in order to keep
the total number of passed and failed tests constant regardless of
success of setup steps. Much remains to be done in this area
though.
Tom Yu [Sat, 1 Jul 2000 15:33:04 +0000 (15:33 +0000)]
* clib/strerror.c: #include config.h
* clib/mkstemp.c: #include config.h.
* clib/memmove.c: #include config.h.
* clib/Makefile.in (LOCALINCLUDES): Add -I../include to get
config.h.
* configure.in: Generate two config headers, one for internal use
and one for external use. Rework clib replacement code to use
AC_DEFINE rather than ADD_DEF.
Tom Yu [Sat, 1 Jul 2000 15:32:14 +0000 (15:32 +0000)]
* db-config.h.in: New file; contains useful tidbits from
config.h.in generated by autoheader. It is needed because
config.h.in has some thing we don't want to leak, like renaming of
missing libc functions.
* .cvsignore: Twiddle to reflect current reality.
* db-int.h: #include config.h since db.h includes db-config.h
which is not quite the same now.
Ken Raeburn [Sat, 1 Jul 2000 04:52:51 +0000 (04:52 +0000)]
Run RPC tests with one invocation of DejaGnu rather than two
* Makefile.in (unit-test-body): Combine -tcp and -udp versions, setting PASS
instead of PROT.
* configure.in: Set and substitute PASS instead of UDP_TEST.
* config/unix.exp: Don't invoke rpc_test_start. Set MULTIPASS, including a
setting for PROT and a dummy to trigger rpc_test_start invocation.
(rpc_test_start): If a server has already been started, call rpc_test_exit to
verify that it's still running.
Tom Yu [Sat, 1 Jul 2000 00:31:06 +0000 (00:31 +0000)]
* dump.c: Add a new dump version, r1_3_version, and make it the
default; it will be used in krb5-1.3 and will permit a principal's
kadm5 data to be dumped. This is an interim measure until we
redesign the dump format somewhat.