krb5.git
22 years ago* build.texinfo (Options to Configure): Update for new "CC=" style options
Ken Raeburn [Mon, 2 Sep 2002 20:23:30 +0000 (20:23 +0000)]
* build.texinfo (Options to Configure): Update for new "CC=" style options
replacing "--with-cc=" options.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14808 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (MY_SUBDIRS) [##WIN32##]: Hide variable definition inside "!if 0"
Ken Raeburn [Fri, 30 Aug 2002 22:53:46 +0000 (22:53 +0000)]
* Makefile.in (MY_SUBDIRS) [##WIN32##]: Hide variable definition inside "!if 0"
block.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14807 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoChange configure argument handling to be more in line with standard autoconf
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14803 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* pre.in (CFLAGS): Define using @CFLAGS@, not @CCOPTS@
Ken Raeburn [Thu, 29 Aug 2002 21:44:33 +0000 (21:44 +0000)]
* pre.in (CFLAGS): Define using @CFLAGS@, not @CCOPTS@

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14802 dc483132-0cff-0310-8789-dd5450dbe970

22 years agodrop SS_DEPS from last change
Ken Raeburn [Thu, 29 Aug 2002 21:22:35 +0000 (21:22 +0000)]
drop SS_DEPS from last change

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14801 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* win-pre.in (COM_ERR_DEPS, SS_DEPS): New variables
Ken Raeburn [Thu, 29 Aug 2002 21:21:47 +0000 (21:21 +0000)]
* win-pre.in (COM_ERR_DEPS, SS_DEPS): New variables

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14800 dc483132-0cff-0310-8789-dd5450dbe970

22 years agorename macros in last makefile.in change to use _ instead of - in names
Ken Raeburn [Thu, 29 Aug 2002 20:55:48 +0000 (20:55 +0000)]
rename macros in last makefile.in change to use _ instead of - in names

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14799 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* configure.in: Configure lib/krb4 and krb524 only if KRB4_LIB
Ken Raeburn [Thu, 29 Aug 2002 12:20:06 +0000 (12:20 +0000)]
* configure.in: Configure lib/krb4 and krb524 only if KRB4_LIB
is non-empty; this may not be right for "--with-krb4=/some/dir".

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14798 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (MAYBE_ET-k5, MAYBE_ET-sys, MAYBE_SS-k5, MAYBE_SS-sys): New
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14797 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* configure.in: Configure util/et and util/ss only if they're going to be used
Ken Raeburn [Thu, 29 Aug 2002 12:06:51 +0000 (12:06 +0000)]
* configure.in: Configure util/et and util/ss only if they're going to be used

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14796 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* pre.in (COM_ERR_DEPLIB-sys, COM_ERR_DEPLIB-k5, SS_DEPLIB-k5, SS_DEPLIB-sys,
Ken Raeburn [Thu, 29 Aug 2002 12:05:56 +0000 (12:05 +0000)]
* pre.in (COM_ERR_DEPLIB-sys, COM_ERR_DEPLIB-k5, SS_DEPLIB-k5, SS_DEPLIB-sys,
COM_ERR_DEPS-sys, COM_ERR_DEPS-k5, SS_DEPS-sys, SS_DEPS-k5, SS_LIB-sys,
SS_LIB-k5, COMPILE_ET-sys, COMPILE_ET-k5, MAKE_COMMANDS-sys, MAKE_COMMANDS-k5):
New variables.
(COM_ERR_DEPLIB, SS_DEPLIB, COM_ERR_DEPS, SS_DEPS, SS_LIB, COMPILE_ET,
MAKE_COMMANDS): Use them, selecting using new configure substitutions.
(COM_ERR_LIB): Always define as -lcom_err.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14795 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* aclocal.m4 (CHOOSE_ET, CHOOSE_SS): New macros.
Ken Raeburn [Thu, 29 Aug 2002 12:05:06 +0000 (12:05 +0000)]
* aclocal.m4 (CHOOSE_ET, CHOOSE_SS): New macros.
(CONFIG_RULES): Invoke them.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14794 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* shlib.conf: Use $(LDFLAGS) in CC_LINK_SHARED and CC_LINK_STATIC, after other options
Ken Raeburn [Thu, 29 Aug 2002 11:57:31 +0000 (11:57 +0000)]
* shlib.conf: Use $(LDFLAGS) in CC_LINK_SHARED and CC_LINK_STATIC, after other options

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14793 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* ktutil_ct.ct: Add final "end" statement
Ken Raeburn [Thu, 29 Aug 2002 11:09:57 +0000 (11:09 +0000)]
* ktutil_ct.ct: Add final "end" statement

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14792 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate dependencies
Ken Raeburn [Thu, 29 Aug 2002 11:00:44 +0000 (11:00 +0000)]
update dependencies

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14791 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* depfix.sed: Replace in-tree ss header files with $(SS_DEPS)
Ken Raeburn [Thu, 29 Aug 2002 10:58:05 +0000 (10:58 +0000)]
* depfix.sed: Replace in-tree ss header files with $(SS_DEPS)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14790 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* pre.in (SS_DEPS): New variable
Ken Raeburn [Thu, 29 Aug 2002 10:57:11 +0000 (10:57 +0000)]
* pre.in (SS_DEPS): New variable

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14789 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* pty_err.et: Add final "end" statement
Ken Raeburn [Thu, 29 Aug 2002 09:42:52 +0000 (09:42 +0000)]
* pty_err.et: Add final "end" statement

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14788 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoignore tmpdir
Ken Raeburn [Thu, 29 Aug 2002 09:19:46 +0000 (09:19 +0000)]
ignore tmpdir

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14787 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in: Revert $(S)=>/ change, for Windows support
Ken Raeburn [Thu, 29 Aug 2002 09:10:29 +0000 (09:10 +0000)]
* Makefile.in: Revert $(S)=>/ change, for Windows support

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoIgnore a bunch of files generated by building in the source tree, excluding
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.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14785 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoretry checkin reviving dead file
Ken Raeburn [Thu, 29 Aug 2002 08:17:00 +0000 (08:17 +0000)]
retry checkin reviving dead file

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14784 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoIgnore a bunch of files generated by building in the source tree, excluding
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14783 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * btree/bt_split.c (bt_psplit): Correctly account for
Tom Yu [Wed, 28 Aug 2002 06:34:05 +0000 (06:34 +0000)]
* btree/bt_split.c (bt_psplit): Correctly account for
sizeof(indx_t) when computing space used in a page by an item.
[patch from www.sleepycat.com]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14780 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoundo quoting changes
Ken Raeburn [Tue, 27 Aug 2002 19:46:37 +0000 (19:46 +0000)]
undo quoting changes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14779 dc483132-0cff-0310-8789-dd5450dbe970

22 years agomore quoting
Ken Raeburn [Tue, 27 Aug 2002 19:33:57 +0000 (19:33 +0000)]
more quoting

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14778 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoAdd support for using the encrypted part of a krb5 ticket as an AFS token--
Sam Hartman [Tue, 27 Aug 2002 17:50:07 +0000 (17:50 +0000)]
Add support for using the encrypted part of a krb5 ticket as an AFS token--
af krb5-encpart-only (kvno 213) and enable this support by default.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14777 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoQuote targets of some copy operations within the build tree. Needed
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14776 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoRemove release notes as the content is 100% incorrect.
Sam Hartman [Mon, 26 Aug 2002 22:51:08 +0000 (22:51 +0000)]
Remove release notes as the content is 100% incorrect.
Changelog batch with future commit

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14769 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * configure.in: Use $krb5_cv_host instead of $host
Ezra Peisach [Mon, 26 Aug 2002 13:17:57 +0000 (13:17 +0000)]
* configure.in: Use $krb5_cv_host instead of $host

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14768 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago2002-08-26 Ezra Peisach <epeisach@bu.edu>
Ezra Peisach [Mon, 26 Aug 2002 13:17:02 +0000 (13:17 +0000)]
2002-08-26  Ezra Peisach  <epeisach@bu.edu>

* configure.in: Use KRB5_LIB_PARAMS instead of AC_CANONICAL_HOST
to set krb5_cv_host.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14767 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * pre.in: Set host to @krb5_cv_host@ instead of @host@. The way
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14766 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * aclocal.m4 (KRB5_LIB_PARAMS): Substitute krb5_cv_host in
Ezra Peisach [Mon, 26 Aug 2002 13:14:37 +0000 (13:14 +0000)]
* aclocal.m4 (KRB5_LIB_PARAMS): Substitute krb5_cv_host in
Makefiles. Remove K5_OUTPUT_FILES as nothing depends on it
anymore.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14765 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* aclocal.m4: Require autoconf 2.52 or later
Ken Raeburn [Sat, 24 Aug 2002 02:43:03 +0000 (02:43 +0000)]
* aclocal.m4: Require autoconf 2.52 or later

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14764 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile: Deleted
Ken Raeburn [Sat, 24 Aug 2002 02:40:45 +0000 (02:40 +0000)]
* Makefile: Deleted

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14763 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sendto_kdc.c (merge_addrlists): Truncate source address list after copying
Ken Raeburn [Sat, 24 Aug 2002 00:01:01 +0000 (00:01 +0000)]
* sendto_kdc.c (merge_addrlists): Truncate source address list after copying
its data into the destination list.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14762 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoChange $(S)=>/ and $(U)=>.. globally
Ken Raeburn [Fri, 23 Aug 2002 21:50:05 +0000 (21:50 +0000)]
Change $(S)=>/ and $(U)=>.. globally

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * ftpd.c (auth_data, reply_gss_code): Use OM_uint32 instead of int
Ezra Peisach [Fri, 23 Aug 2002 19:37:40 +0000 (19:37 +0000)]
* ftpd.c (auth_data, reply_gss_code): Use OM_uint32 instead of int
to match arguments to gssapi functions.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14760 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * compat_recv.c: Include defines.h for prototypes
Ezra Peisach [Fri, 23 Aug 2002 19:34:57 +0000 (19:34 +0000)]
* compat_recv.c: Include defines.h for prototypes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14759 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * dump.c (dump_db): Update usage comment. Add "-rev" and
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14757 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * kdb_db2.h: Add prototype and rename for
Tom Yu [Fri, 23 Aug 2002 18:03:56 +0000 (18:03 +0000)]
* kdb_db2.h: Add prototype and rename for
krb5_db2_db_iterate_ext().

* kdb_db2.c (krb5_db2_db_iterate_ext): New function; allow
optional backwards or recursive (if btree) traversal of the
database.

* Makefile.in (LIBMINOR): Bump due to addition of
krb5_db_iterate_ext().

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14755 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * dbtest.c: Include btree.h if we're compiled with -DSTATISTICS
Tom Yu [Fri, 23 Aug 2002 17:58:41 +0000 (17:58 +0000)]
* dbtest.c: Include btree.h if we're compiled with -DSTATISTICS

* Makefile.in: Add rules for bttest; also add a clean rule.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14754 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * main.c: Disable append(); we don't have R_APPEND in this release
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14753 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * Makefile.in (LIBMINOR): Bump due to addition of bt_rseq()
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14752 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * db.h: Add rename and prototype for bt_rseq(); this is a kludge
Tom Yu [Fri, 23 Aug 2002 17:54:59 +0000 (17:54 +0000)]
* db.h: Add rename and prototype for bt_rseq(); this is a kludge
to avoid stuffing more things into the DB handle.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14751 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (SUBDIROBJLISTS): New variable
Ken Raeburn [Fri, 23 Aug 2002 02:54:42 +0000 (02:54 +0000)]
* Makefile.in (SUBDIROBJLISTS): New variable

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14749 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* locate_kdc.c (krb5_locate_kdc): Don't look up kerberos-sec for TCP service
Ken Raeburn [Fri, 23 Aug 2002 02:54:02 +0000 (02:54 +0000)]
* locate_kdc.c (krb5_locate_kdc): Don't look up kerberos-sec for TCP service

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14748 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoturn off debug code
Ken Raeburn [Fri, 23 Aug 2002 02:53:30 +0000 (02:53 +0000)]
turn off debug code

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14747 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* init_ctx.c (init_common): Initialize udp_pref_limit field
Ken Raeburn [Fri, 23 Aug 2002 00:21:34 +0000 (00:21 +0000)]
* init_ctx.c (init_common): Initialize udp_pref_limit field

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14746 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in ($(HDRS)): Depend on "includes"
Ken Raeburn [Thu, 22 Aug 2002 23:05:46 +0000 (23:05 +0000)]
* Makefile.in ($(HDRS)): Depend on "includes"

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14745 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (SUBDIROBJLISTS): New variable
Ken Raeburn [Thu, 22 Aug 2002 23:03:27 +0000 (23:03 +0000)]
* Makefile.in (SUBDIROBJLISTS): New variable

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14744 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* accessor.c (krb5int_accessor): Use krb5int_sendto instead of
Ken Raeburn [Thu, 22 Aug 2002 22:34:47 +0000 (22:34 +0000)]
* accessor.c (krb5int_accessor): Use krb5int_sendto instead of
krb5int_sendto_udp.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14743 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sendto_kdc.c (MAX_PASS, dprint): New macros.
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14742 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* locate_kdc.c (krb5int_grow_addrlist): Renamed from grow_list, now external.
Ken Raeburn [Thu, 22 Aug 2002 22:33:13 +0000 (22:33 +0000)]
* locate_kdc.c (krb5int_grow_addrlist): Renamed from grow_list, now external.
(grow_list): New macro.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14741 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* k5-int.h (krb5int_sendto_udp, krb5int_sendto_tcp): Declarations deleted.
Ken Raeburn [Wed, 21 Aug 2002 21:33:43 +0000 (21:33 +0000)]
* k5-int.h (krb5int_sendto_udp, krb5int_sendto_tcp): Declarations deleted.
(krb5int_sendto, krb5int_grow_addrlist): New decls.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14740 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* port-sockets.h (SG_BUF): New macro
Ken Raeburn [Wed, 21 Aug 2002 21:32:33 +0000 (21:32 +0000)]
* port-sockets.h (SG_BUF): New macro

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14739 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * string2key.c: Work around possible bug with AFS salts;
Tom Yu [Fri, 16 Aug 2002 20:35:55 +0000 (20:35 +0000)]
* string2key.c: Work around possible bug with AFS salts;
[krb5-clients/1146] from <Wolfgang.Friebel@cern.ch>.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14734 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* k5-int.h (struct _krb5_context): Add new member udp_pref_limit
Ken Raeburn [Fri, 16 Aug 2002 18:52:51 +0000 (18:52 +0000)]
* k5-int.h (struct _krb5_context): Add new member udp_pref_limit

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14733 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sendto_kdc.c (DEFAULT_UDP_PREF_LIMIT, HARD_UDP_LIMIT): New macros.
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14732 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * krb524d.c (kdc_get_server_key): Check for DISALLOW_ALL_TIX and
Tom Yu [Thu, 15 Aug 2002 20:49:43 +0000 (20:49 +0000)]
* krb524d.c (kdc_get_server_key): Check for DISALLOW_ALL_TIX and
DISALLOW_SVR when looking up server key.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14728 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * keytab.c (krb5_ktkdb_get_entry): For consistency, check for
Tom Yu [Thu, 15 Aug 2002 20:49:08 +0000 (20:49 +0000)]
* keytab.c (krb5_ktkdb_get_entry): For consistency, check for
DISALLOW_ALL_TIX and DISALLOW_SVR when looking up keys.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14727 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * kerberos_v4.c: For consistency, check for both DISALLOW_ALL_TIX
Tom Yu [Thu, 15 Aug 2002 20:48:24 +0000 (20:48 +0000)]
* kerberos_v4.c: For consistency, check for both DISALLOW_ALL_TIX
and DISALLOW_SVR when looking up services.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14726 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * kvno.c (do_v4_kvno): Initialize name, inst, realm to empty
Tom Yu [Thu, 15 Aug 2002 20:20:59 +0000 (20:20 +0000)]
* kvno.c (do_v4_kvno): Initialize name, inst, realm to empty
strings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14725 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* cc_file.c (ALLOC): Use calloc, not malloc.
Ken Raeburn [Thu, 15 Aug 2002 06:59:23 +0000 (06:59 +0000)]
* cc_file.c (ALLOC): Use calloc, not malloc.
(krb5_fcc_read_principal): Check bounds on number of components before calling
ALLOC.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14724 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * t_cc.c: Remove references to STDIO ccache
Tom Yu [Thu, 15 Aug 2002 06:20:51 +0000 (06:20 +0000)]
* t_cc.c: Remove references to STDIO ccache

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14723 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * t_ser.c (ser_ccache_test): Remove references to STDIO ccaches
Tom Yu [Thu, 15 Aug 2002 06:20:19 +0000 (06:20 +0000)]
* t_ser.c (ser_ccache_test): Remove references to STDIO ccaches

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14722 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (EXTRADEPSRCS): New variable.
Ken Raeburn [Thu, 15 Aug 2002 01:48:33 +0000 (01:48 +0000)]
* Makefile.in (EXTRADEPSRCS): New variable.
(.d): Depend on includes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14721 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (SUBDIROBJLISTS): New variable
Ken Raeburn [Thu, 15 Aug 2002 01:48:05 +0000 (01:48 +0000)]
* Makefile.in (SUBDIROBJLISTS): New variable

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14720 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* lib.in ($(SUBDIROBJLISTS) and .SH/.PF variants): Depend on recursion. Use
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14719 dc483132-0cff-0310-8789-dd5450dbe970

22 years agomissed an entry
Ken Raeburn [Thu, 15 Aug 2002 01:28:09 +0000 (01:28 +0000)]
missed an entry

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14718 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago(NO_FILE): New macro. All functions changed to test or assign it rather than
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14717 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate deps
Ken Raeburn [Thu, 15 Aug 2002 00:45:29 +0000 (00:45 +0000)]
update deps

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14716 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoCombine file and stdio ccache implementations into one source file; selection
Ken Raeburn [Thu, 15 Aug 2002 00:43:40 +0000 (00:43 +0000)]
Combine file and stdio ccache implementations into one source file; selection
is now at compile time, rather than FILE: vs STDIO: prefix.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14715 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* cc_stdio.c (krb5_fcc_next_cred): Use a krb5_error_code to hol the return
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14714 dc483132-0cff-0310-8789-dd5450dbe970

22 years agotweak comments
Ken Raeburn [Wed, 14 Aug 2002 22:50:37 +0000 (22:50 +0000)]
tweak comments

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14713 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * main.c: updated the usage function
Jen Selby [Wed, 14 Aug 2002 19:14:50 +0000 (19:14 +0000)]
    * main.c:  updated the usage function

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14712 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* dump.c: Unused file deleted
Ken Raeburn [Wed, 14 Aug 2002 19:07:33 +0000 (19:07 +0000)]
* dump.c: Unused file deleted

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14711 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in ($(HDRS)): Depend on 'includes'.
Ken Raeburn [Wed, 14 Aug 2002 19:06:22 +0000 (19:06 +0000)]
* Makefile.in ($(HDRS)): Depend on 'includes'.
(std_rqs.c): Depend on mk_cmds.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14710 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * acl_files.c (canon;): Properly handle appending of the local
Tom Yu [Wed, 14 Aug 2002 03:09:53 +0000 (03:09 +0000)]
* acl_files.c (canon;): Properly handle appending of the local
realm, which was botched due to a buffer-overflow patch.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14708 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * xdr.c (xdr_string): Fix off-by-one error; we're not vulnerable,
Tom Yu [Mon, 12 Aug 2002 22:41:14 +0000 (22:41 +0000)]
* xdr.c (xdr_string): Fix off-by-one error; we're not vulnerable,
since we don't call it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14701 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoMiscellaneous additional shuffling (variable renaming or reordering, whitespace
Ken Raeburn [Sat, 10 Aug 2002 01:27:51 +0000 (01:27 +0000)]
Miscellaneous additional shuffling (variable renaming or reordering, whitespace
changes, deleting unused code, adding or removing braces) to make cc_file.c and
cc_stdio.c more similar.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14700 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago(krb5_fcc_data): Rename "fd" to "file"; change all uses
Ken Raeburn [Sat, 10 Aug 2002 00:34:33 +0000 (00:34 +0000)]
(krb5_fcc_data): Rename "fd" to "file"; change all uses

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14699 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoChange non-external "scc" uses to "fcc".
Ken Raeburn [Sat, 10 Aug 2002 00:29:41 +0000 (00:29 +0000)]
Change non-external "scc" uses to "fcc".
(krb5_fcc_data): Rename from krb5_scc_data; reorder some fields.
(krb5_fcc_close_file): Never call fflush on a read-only file.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14698 dc483132-0cff-0310-8789-dd5450dbe970

22 years agowhitespace
Ken Raeburn [Fri, 9 Aug 2002 23:48:37 +0000 (23:48 +0000)]
whitespace

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14697 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago"krb5 v5" is redundant (in comment)
Ken Raeburn [Fri, 9 Aug 2002 23:47:50 +0000 (23:47 +0000)]
"krb5 v5" is redundant (in comment)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14696 dc483132-0cff-0310-8789-dd5450dbe970

22 years agowhitespace
Ken Raeburn [Fri, 9 Aug 2002 23:37:59 +0000 (23:37 +0000)]
whitespace

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14695 dc483132-0cff-0310-8789-dd5450dbe970

22 years agorename krb5_scc_<fn> and krb5_scc_cursor to use krb5_fcc_ instead
Ken Raeburn [Fri, 9 Aug 2002 23:34:20 +0000 (23:34 +0000)]
rename krb5_scc_<fn> and krb5_scc_cursor to use krb5_fcc_ instead

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14694 dc483132-0cff-0310-8789-dd5450dbe970

22 years agohide method functions we don't need to call directly
Ken Raeburn [Fri, 9 Aug 2002 23:21:51 +0000 (23:21 +0000)]
hide method functions we don't need to call directly

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14693 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoApply patch to
Sam Hartman [Fri, 9 Aug 2002 22:06:51 +0000 (22:06 +0000)]
Apply patch to
initialize return value in kdb5_dbe_search_enctype so etype info
works reliably

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14692 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* api.2/init-v2.exp (test100): Expect MISSING_KRB5_CONF_PARAMS error now
Ken Raeburn [Thu, 8 Aug 2002 22:29:46 +0000 (22:29 +0000)]
* api.2/init-v2.exp (test100): Expect MISSING_KRB5_CONF_PARAMS error now

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14691 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * telnetd.c: Switched the valid and user descriptions under the -a
Jen Selby [Thu, 8 Aug 2002 20:38:08 +0000 (20:38 +0000)]
    * telnetd.c: Switched the valid and user descriptions under the -a
        flag

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14690 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate comments describing file format
Ken Raeburn [Thu, 8 Aug 2002 06:52:55 +0000 (06:52 +0000)]
update comments describing file format

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14689 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* cr_tkt.c (krb_cr_tkt_int): Don't take key arguments any more.
Ken Raeburn [Thu, 8 Aug 2002 06:52:05 +0000 (06:52 +0000)]
* cr_tkt.c (krb_cr_tkt_int): Don't take key arguments any more.
(krb_create_ticket, krb_cr_tkt_krb5): Do the encryption here; drop NOENCRYPTION
test.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14688 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* network.c (setup_port): Ignore AF_LINK addresses. Log address family number
Ken Raeburn [Thu, 8 Aug 2002 06:50:15 +0000 (06:50 +0000)]
* network.c (setup_port): Ignore AF_LINK addresses.  Log address family number
if unrecognized.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14687 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* tcl_kadm5.c (unparse_err): Handle KADM5_MISSING_KRB5_CONF_PARAMS
Ken Raeburn [Wed, 7 Aug 2002 23:27:58 +0000 (23:27 +0000)]
* tcl_kadm5.c (unparse_err): Handle KADM5_MISSING_KRB5_CONF_PARAMS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14686 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * klogind.M, kshd.M, login.M: changed manual sections 8c, 1c, and
Jen Selby [Wed, 7 Aug 2002 20:45:54 +0000 (20:45 +0000)]
    * klogind.M, kshd.M, login.M: changed manual sections 8c, 1c, and
        3x to 8, 1, and 3, respectively
        * rcp.M, rlogin.M, rsh.M: added references to the server manpages

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14683 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * configure.in: Fix sense of HAVE_RUNTEST
Tom Yu [Wed, 7 Aug 2002 05:50:25 +0000 (05:50 +0000)]
* configure.in: Fix sense of HAVE_RUNTEST

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14682 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * xdr_array.c (xdr_array): Account for elsize when checking
Tom Yu [Fri, 2 Aug 2002 19:28:01 +0000 (19:28 +0000)]
* xdr_array.c (xdr_array): Account for elsize when checking
encoded array count.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14681 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * server_stubs.c: Check return value from unparse_name() in lots
Tom Yu [Fri, 2 Aug 2002 00:39:16 +0000 (00:39 +0000)]
* server_stubs.c: Check return value from unparse_name() in lots
of places.  Patch from Mark Levinson; fixes [krb5-admin/1140].

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14680 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * unparse.c (krb5_unparse_name_ext): Error out if passed a NULL
Tom Yu [Fri, 2 Aug 2002 00:38:22 +0000 (00:38 +0000)]
* unparse.c (krb5_unparse_name_ext): Error out if passed a NULL
pointer.  Patch from Mark Levinson; fixes [krb5-admin/1140].

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14679 dc483132-0cff-0310-8789-dd5450dbe970