]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
21 years agoundef CFX_EXERCISE gssapi-cfx
Ken Raeburn [Sat, 13 Dec 2003 05:27:55 +0000 (05:27 +0000)] 
undef CFX_EXERCISE

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15906 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoundo error-code hack workaround
Ken Raeburn [Sat, 13 Dec 2003 05:25:35 +0000 (05:25 +0000)] 
undo error-code hack workaround

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15905 dc483132-0cff-0310-8789-dd5450dbe970

21 years agofix for #undef CFX_EXERCISE case
Ken Raeburn [Sat, 13 Dec 2003 04:01:58 +0000 (04:01 +0000)] 
fix for #undef CFX_EXERCISE case

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15904 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoget a little closer to pre-branch code
Ken Raeburn [Sat, 13 Dec 2003 04:01:34 +0000 (04:01 +0000)] 
get a little closer to pre-branch code

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15903 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoimprove support for GSS_S_CONTINUE_NEEDED (still not fully working); syslog more...
Ken Raeburn [Sat, 13 Dec 2003 02:39:58 +0000 (02:39 +0000)] 
improve support for GSS_S_CONTINUE_NEEDED (still not fully working); syslog more gssapi info

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15902 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoallow 'AUTH' as an unprotected command
Ken Raeburn [Sat, 13 Dec 2003 02:39:01 +0000 (02:39 +0000)] 
allow 'AUTH' as an unprotected command

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15901 dc483132-0cff-0310-8789-dd5450dbe970

21 years agohandle return code 335 => command() returns 3
Ken Raeburn [Sat, 13 Dec 2003 02:38:33 +0000 (02:38 +0000)] 
handle return code 335 => command() returns 3

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15900 dc483132-0cff-0310-8789-dd5450dbe970

21 years agonotice and report authentication error
Ken Raeburn [Sat, 13 Dec 2003 02:30:04 +0000 (02:30 +0000)] 
notice and report authentication error

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15899 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodon't need stdio
Ken Raeburn [Sat, 13 Dec 2003 01:49:49 +0000 (01:49 +0000)] 
don't need stdio

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15898 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodrop some debug code
Ken Raeburn [Sat, 13 Dec 2003 01:49:38 +0000 (01:49 +0000)] 
drop some debug code

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15897 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodon't need to check for null cred
Ken Raeburn [Sat, 13 Dec 2003 01:49:02 +0000 (01:49 +0000)] 
don't need to check for null cred

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15896 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodrop logging code
Ken Raeburn [Sat, 13 Dec 2003 01:03:02 +0000 (01:03 +0000)] 
drop logging code

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15893 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoconditionalize logging code; remove redundant SFILE defs, and error code hacks
Ken Raeburn [Sat, 13 Dec 2003 00:07:41 +0000 (00:07 +0000)] 
conditionalize logging code; remove redundant SFILE defs, and error code hacks

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15892 dc483132-0cff-0310-8789-dd5450dbe970

21 years agomove logging stuff to private header
Ken Raeburn [Fri, 12 Dec 2003 23:36:26 +0000 (23:36 +0000)] 
move logging stuff to private header

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15891 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodelete enctypes var
Ken Raeburn [Fri, 12 Dec 2003 23:35:42 +0000 (23:35 +0000)] 
delete enctypes var

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15890 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodrop logging code
Ken Raeburn [Fri, 12 Dec 2003 23:35:27 +0000 (23:35 +0000)] 
drop logging code

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15889 dc483132-0cff-0310-8789-dd5450dbe970

21 years agolog server principal; send bogus token if it doesn't look like a broken app
Ken Raeburn [Fri, 12 Dec 2003 23:01:45 +0000 (23:01 +0000)] 
log server principal; send bogus token if it doesn't look like a broken app

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15888 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoturn off logging
Ken Raeburn [Fri, 12 Dec 2003 22:40:41 +0000 (22:40 +0000)] 
turn off logging

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15887 dc483132-0cff-0310-8789-dd5450dbe970

21 years agore-enable testing
Ken Raeburn [Wed, 10 Dec 2003 22:12:10 +0000 (22:12 +0000)] 
re-enable testing

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15877 dc483132-0cff-0310-8789-dd5450dbe970

21 years agounknown token id stuff; delete old enctype list hacks
Ken Raeburn [Wed, 10 Dec 2003 22:00:52 +0000 (22:00 +0000)] 
unknown token id stuff; delete old enctype list hacks

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15876 dc483132-0cff-0310-8789-dd5450dbe970

21 years agolog yet more info
Ken Raeburn [Wed, 10 Dec 2003 21:59:56 +0000 (21:59 +0000)] 
log yet more info

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15875 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoKey usage values were inconsistent with spec; fix
Sam Hartman [Wed, 10 Dec 2003 03:54:09 +0000 (03:54 +0000)] 
Key usage values were inconsistent with spec; fix

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15874 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoalways use /tmp/gsslog for logging
Ken Raeburn [Tue, 9 Dec 2003 23:39:37 +0000 (23:39 +0000)] 
always use /tmp/gsslog for logging

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15873 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodefine SFILE for debugging
Ken Raeburn [Tue, 9 Dec 2003 23:39:06 +0000 (23:39 +0000)] 
define SFILE for debugging

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15872 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoacceptor subkeys; fix flag bits; test CFX_EXERCISE
Ken Raeburn [Sat, 6 Dec 2003 00:03:08 +0000 (00:03 +0000)] 
acceptor subkeys; fix flag bits; test CFX_EXERCISE

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15863 dc483132-0cff-0310-8789-dd5450dbe970

21 years agofree acceptor subkey
Ken Raeburn [Sat, 6 Dec 2003 00:01:00 +0000 (00:01 +0000)] 
free acceptor subkey

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15862 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodefine CFX_EXERCISE; add acceptor subkey fields
Ken Raeburn [Sat, 6 Dec 2003 00:00:46 +0000 (00:00 +0000)] 
define CFX_EXERCISE; add acceptor subkey fields

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15861 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoif KRB5_AUTH_CONTEXT_USE_SUBKEY set, mk_rep generates a new subkey
Ken Raeburn [Fri, 5 Dec 2003 23:02:50 +0000 (23:02 +0000)] 
if KRB5_AUTH_CONTEXT_USE_SUBKEY set, mk_rep generates a new subkey

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15860 dc483132-0cff-0310-8789-dd5450dbe970

21 years agonew flag KRB5_AUTH_CONTEXT_USE_SUBKEY
Ken Raeburn [Fri, 5 Dec 2003 23:01:52 +0000 (23:01 +0000)] 
new flag KRB5_AUTH_CONTEXT_USE_SUBKEY

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15859 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodeclare new krb5int_generate_and_save_subkey fn
Ken Raeburn [Fri, 5 Dec 2003 23:01:39 +0000 (23:01 +0000)] 
declare new krb5int_generate_and_save_subkey fn

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15858 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoignore, don't reject, unknown flags; thanks, Sam
Ken Raeburn [Fri, 5 Dec 2003 22:30:02 +0000 (22:30 +0000)] 
ignore, don't reject, unknown flags; thanks, Sam

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15857 dc483132-0cff-0310-8789-dd5450dbe970

21 years agorandom pad up to 64k; don't log data blocks; delete rotate length check
Ken Raeburn [Wed, 3 Dec 2003 01:37:46 +0000 (01:37 +0000)] 
random pad up to 64k; don't log data blocks; delete rotate length check

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15856 dc483132-0cff-0310-8789-dd5450dbe970

21 years agofix for random padding added while testing
Ken Raeburn [Wed, 3 Dec 2003 01:36:56 +0000 (01:36 +0000)] 
fix for random padding added while testing

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15855 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodrop some unused code
Ken Raeburn [Wed, 3 Dec 2003 01:36:22 +0000 (01:36 +0000)] 
drop some unused code

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15854 dc483132-0cff-0310-8789-dd5450dbe970

21 years agodon't run tests without any supported des enctypes
Ken Raeburn [Wed, 3 Dec 2003 01:35:55 +0000 (01:35 +0000)] 
don't run tests without any supported des enctypes

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15853 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoremove logging calls
Ken Raeburn [Tue, 2 Dec 2003 21:34:47 +0000 (21:34 +0000)] 
remove logging calls

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15852 dc483132-0cff-0310-8789-dd5450dbe970

21 years agocheckpoint; most tests work except gssftp "big encrypted get"; spews debug info to...
Ken Raeburn [Tue, 2 Dec 2003 18:51:02 +0000 (18:51 +0000)] 
checkpoint; most tests work except gssftp "big encrypted get"; spews debug info to /tmp/gsslog

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15851 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* k5-int.h (krb5int_c_mandatory_cksumtype): New declaration
Ken Raeburn [Thu, 30 Oct 2003 22:27:23 +0000 (22:27 +0000)] 
* k5-int.h (krb5int_c_mandatory_cksumtype): New declaration

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15848 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* k5-platform.h (load_64_be, load_64_le): Use UINT64_TYPE, not unsigned long long
Ken Raeburn [Thu, 30 Oct 2003 22:26:31 +0000 (22:26 +0000)] 
* k5-platform.h (load_64_be, load_64_le): Use UINT64_TYPE, not unsigned long long

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15847 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* aclocal.m4 (WITH_CC): Remove -Wno-comment from gcc warning options
Ken Raeburn [Thu, 30 Oct 2003 22:24:02 +0000 (22:24 +0000)] 
* aclocal.m4 (WITH_CC): Remove -Wno-comment from gcc warning options

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15846 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* gssapiP_generic.h: Include k5-platform.h.
Ken Raeburn [Wed, 29 Oct 2003 00:30:00 +0000 (00:30 +0000)] 
* gssapiP_generic.h: Include k5-platform.h.
(gssint_uint64): New typedef.
(g_order_init, g_order_check): Update decls.
* util_ordering.c (struct _queue): Change sequence number fields to
gssint_uint64.  Add mask field.
(queue_insert): Change sequence number to gssint_uint64.
(g_order_init): Change sequence numbers to gssint_uint64.  Add "wide_nums"
argument; initialize the queue mask field based on it.  Store a -1 as the first
element.
(g_order_check): Store and check elements as offsets from firstnum.  Mask to 32
bits if desired.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15845 dc483132-0cff-0310-8789-dd5450dbe970

21 years agocheckpoint
Ken Raeburn [Thu, 16 Oct 2003 00:03:29 +0000 (00:03 +0000)] 
checkpoint

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15839 dc483132-0cff-0310-8789-dd5450dbe970

21 years agocheckpoint - doesn't work yet
Ken Raeburn [Wed, 15 Oct 2003 20:37:01 +0000 (20:37 +0000)] 
checkpoint - doesn't work yet

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15838 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* etypes.c (krb5_enctypes_list): Fill in required_ctype field.
Ken Raeburn [Sat, 11 Oct 2003 00:02:56 +0000 (00:02 +0000)] 
* etypes.c (krb5_enctypes_list): Fill in required_ctype field.
* mandatory_sumtype.c: New file.
* Makefile.in (SRCS, OBJS, STLIBOBJS): Build it.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15837 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* k5-platform.h (store_16_be, store_16_le): Use unsigned int arg, not unsigned
Ken Raeburn [Sat, 11 Oct 2003 00:00:26 +0000 (00:00 +0000)] 
* k5-platform.h (store_16_be, store_16_le): Use unsigned int arg, not unsigned
short.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15836 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* k5-int.h (struct krb5_keytypes): Added field required_ctype
Ken Raeburn [Fri, 10 Oct 2003 23:59:21 +0000 (23:59 +0000)] 
* k5-int.h (struct krb5_keytypes): Added field required_ctype

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15835 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* serialize.c (krb5_ser_pack_int64, krb5_ser_unpack_int64): New functions
Ken Raeburn [Thu, 25 Sep 2003 07:18:32 +0000 (07:18 +0000)] 
* serialize.c (krb5_ser_pack_int64, krb5_ser_unpack_int64): New functions

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15824 dc483132-0cff-0310-8789-dd5450dbe970

21 years ago* k5-platform.h: New header file. Manages inline-function and 64-bit support,
Ken Raeburn [Thu, 25 Sep 2003 07:17:51 +0000 (07:17 +0000)] 
* k5-platform.h: New header file.  Manages inline-function and 64-bit support,
in platform-specific ways.
* fake-addrinfo.h: Include k5-platform.h.
(inline): Don't define here.
* k5-int.h: Include k5-platform.h.
(krb5_ui_8, krb5_int64): New typedefs.
(krb5_ser_pack_int64, krb5_ser_unpack_int64): New function decls.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15823 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoThis commit was manufactured by cvs2svn to create branch
no author [Tue, 23 Sep 2003 18:46:25 +0000 (18:46 +0000)] 
This commit was manufactured by cvs2svn to create branch
'raeburn-gssapi-cfx'.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/raeburn-gssapi-cfx@15821 dc483132-0cff-0310-8789-dd5450dbe970

21 years agoModify the declaration of the CREDENTIALS structure to support the additional
Jeffrey Altman [Tue, 23 Sep 2003 18:46:25 +0000 (18:46 +0000)] 
Modify the declaration of the CREDENTIALS structure to support the additional
address field used on Windows.

ticket: 1586
status: open
owner: jaltman@mit.edu
target_version: 1.3.2
tags: pullup

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

21 years agoOops, naughty naughty. Use $(CC), not gcc
Ken Raeburn [Sat, 13 Sep 2003 04:17:08 +0000 (04:17 +0000)] 
Oops, naughty naughty.  Use $(CC), not gcc

ticket: 1790

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

21 years ago* shlib.conf (*-*-linux*): Use gcc for linking shared libraries, and -Wl to
Ken Raeburn [Sat, 13 Sep 2003 04:16:10 +0000 (04:16 +0000)] 
* shlib.conf (*-*-linux*): Use gcc for linking shared libraries, and -Wl to
pass linker flags in, so gcc can supply the necessary support libraries.

ticket: 1790
tags: pullup

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

21 years agoAlpha OSF build fails because daemon() tries to call setpgrp because
Ken Raeburn [Sat, 13 Sep 2003 03:33:14 +0000 (03:33 +0000)] 
Alpha OSF build fails because daemon() tries to call setpgrp because
it doesn't know setsid is available.  It's using autoconf.h, but no
longer using the defines set in lib/krb5/posix/Makefile.

* configure.in: Check for setsid() and <paths.h>.

ticket: 1847

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

21 years agoApply patch from Cesar Garcia to fix lifetime computation in 524
Tom Yu [Tue, 2 Sep 2003 22:12:07 +0000 (22:12 +0000)] 
Apply patch from Cesar Garcia to fix lifetime computation in 524
ticket conversion.

ticket: 1712
tags: pullup
version_reported: 1.3.1
target_version: 1.3.2

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

21 years agokill() might overwrite errno. Save it beforehand
Alexandra Ellwood [Tue, 2 Sep 2003 18:37:12 +0000 (18:37 +0000)] 
kill() might overwrite errno.  Save it beforehand

ticket: 1799

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

21 years agoFixed handling of krb5_net_write() failing (need to call waitpid() on child even...
Alexandra Ellwood [Tue, 2 Sep 2003 18:14:37 +0000 (18:14 +0000)] 
Fixed handling of krb5_net_write() failing (need to call waitpid() on child even if we kill it)

ticket: 1799

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

21 years agoFixed comment (part of adding Apple Password Server support)
Alexandra Ellwood [Tue, 2 Sep 2003 15:43:10 +0000 (15:43 +0000)] 
Fixed comment (part of adding Apple Password Server support)

ticket: 1799

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

21 years agoAdded Apple password server support
Alexandra Ellwood [Tue, 2 Sep 2003 15:32:50 +0000 (15:32 +0000)] 
Added Apple password server support

ticket: 1799

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

21 years agoWhile libc5 isn't one of our supported configurations, this is a simple enough
Ken Raeburn [Sat, 30 Aug 2003 01:55:40 +0000 (01:55 +0000)] 
While libc5 isn't one of our supported configurations, this is a simple enough
change.  It should be in the 1.4 release.  (Next 1.3.x release? I don't know.)

* fake-addrinfo.h (WRAP_GETADDRINFO, COPY_FIRST_CANONNAME): Don't define on
Linux unless HAVE_GETADDRINFO is defined, for libc5 compatibility.

ticket: 1711
tags: pullup

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

21 years agoCopy and build daemon.c in whatever directories need it, instead of building it
Ken Raeburn [Sat, 30 Aug 2003 01:09:41 +0000 (01:09 +0000)] 
Copy and build daemon.c in whatever directories need it, instead of building it
into the krb5 library.

* aclocal.m4 (KRB5_AC_NEED_DAEMON): New macro.
* appl/bsd/configure.in, kadmin/configure.in, kdc/configure.in,
krb524/configure.in, slave/configure.in: Use it.  Don't directly check if
prototype for daemon() is needed.
* kadmin/server/Makefile.in (OBJS), kadmin/v5passwdd/Makefile.in (SERV_OBJS),
kdc/Makefile.in (OBJS, fakeka), krb524/Makefile.in (SERVER_OBJS),
slave/Makefile.in (SERVEROBJS): Use LIBOBJS.
* config/post.in (daemon.c): New rule for copying daemon.c locally
from lib/krb5/posix.

ticket: 1791

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

21 years agokrshd hangs in linux nightly testing
Ken Raeburn [Fri, 29 Aug 2003 07:09:48 +0000 (07:09 +0000)] 
krshd hangs in linux nightly testing

A typical stack trace:

#0  0xffffe002 in ?? ()
#1  0x420da75f in syslog () from /lib/tls/libc.so.6
#2  0x0804ad06 in cleanup (signumber=15) at krshd.c:567
#3  <signal handler called>
#4  0xffffe000 in ?? ()
#5  0x4202774e in sigaction () from /lib/tls/libc.so.6
#6  0x0804ac82 in cleanup (signumber=1) at krshd.c:548
#7  <signal handler called>
#8  0xffffe002 in ?? ()
#9  0x4202774e in sigaction () from /lib/tls/libc.so.6
#10 0x420daa21 in vsyslog () from /lib/tls/libc.so.6
#11 0x420da75f in syslog () from /lib/tls/libc.so.6
#12 0x0804b670 in doit (f=3, fromp=0xbfffda50) at krshd.c:1313
#13 0x0804ab87 in main (argc=11, argv=0xbfffdb34) at krshd.c:459
#14 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6

Yes, we're calling syslog from inside a signal handler.  Yes, this is
bad.  And from some poking about that I did earlier, it appears that
there's some locking code in vsyslog which may be deadlocking in the
nested call.  And this usually seems to happen when logging the "shell
process completed" message.

This is a quick patch to switch off the signal handlers before logging
that message.  I suspect the breakage happens earlier, though, so this
might not fix the bug, just maybe move it around a little.

* krshd.c (ignore_signals): Split out from cleanup().
(doit): Call it when the shell process has completed, before calling syslog.

ticket: new
status: open

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

21 years agoIn my tests (2GHz P4 Linux, 5 minutes, no pre-existing replay cache), this gets
Ken Raeburn [Wed, 27 Aug 2003 01:10:56 +0000 (01:10 +0000)] 
In my tests (2GHz P4 Linux, 5 minutes, no pre-existing replay cache), this gets
about a 10% speedup adding entries to an already open replay cache.

* rc_dfl.c (alive): Take a timestamp argument instead of the context, and don't
check the current time here.  All callers changed to pass in the current time.
(rc_store): Take a timestamp argument.  All callers changed to pass in the
current time.

ticket: 1784
status: open

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

21 years ago* krb5.hin (struct _krb5_donot_replay, krb5_rc_default, krb5_rc_resolve_type)
Ken Raeburn [Tue, 26 Aug 2003 22:20:16 +0000 (22:20 +0000)] 
* krb5.hin (struct _krb5_donot_replay, krb5_rc_default, krb5_rc_resolve_type)
(krb5_rc_resolve_full, krb5_rc_get_type, krb5_rc_default_type)
(krb5_rc_default_name, krb5_auth_to_rep): Private declarations moved...
* k5-int.h: ...to here.

ticket: 1784
status: open

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

21 years ago* cc_file.c (krb5_fcc_store_int32, krb5_fcc_store_ui_4, krb5_fcc_store_ui_2)
Ken Raeburn [Tue, 26 Aug 2003 20:34:46 +0000 (20:34 +0000)] 
* cc_file.c (krb5_fcc_store_int32, krb5_fcc_store_ui_4, krb5_fcc_store_ui_2)
(krb5_fcc_store_octet): Remove gratuitous conditionalizing of casts on
USE_STDIO, left over from merge.

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

21 years ago* configure.in: Don't test for labs, memmove or bcopy.
Ken Raeburn [Tue, 26 Aug 2003 20:23:58 +0000 (20:23 +0000)] 
* configure.in: Don't test for labs, memmove or bcopy.
* k5-int.h (labs, HAVE_LABS): Never define.
* win-mac.h (HAVE_LABS): Don't define.

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

21 years ago* getdate.y (bcopy): Don't bother with HAVE_BCOPY and HAVE_MEMCPY tests; always
Ken Raeburn [Tue, 26 Aug 2003 20:21:19 +0000 (20:21 +0000)] 
* getdate.y (bcopy): Don't bother with HAVE_BCOPY and HAVE_MEMCPY tests; always
define the macro if it's not already defined.

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

21 years ago* configure.in: Check for some C99 headers and types
Ken Raeburn [Tue, 26 Aug 2003 20:03:19 +0000 (20:03 +0000)] 
* configure.in: Check for some C99 headers and types

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

21 years ago* k5-config.h: Unused file deleted
Ken Raeburn [Tue, 26 Aug 2003 19:50:31 +0000 (19:50 +0000)] 
* k5-config.h: Unused file deleted

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

21 years ago* aclocal.m4 (KRB5_AC_ENABLE_DNS): Drop --enable-dns and --enable-dns-for-kdc
Ken Raeburn [Tue, 26 Aug 2003 17:09:54 +0000 (17:09 +0000)] 
* aclocal.m4 (KRB5_AC_ENABLE_DNS): Drop --enable-dns and --enable-dns-for-kdc
options; turn them on always.

ticket: 1724

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

21 years ago* fake-addrinfo.h (inline): Supported by Sun Forte Developer 7 compiler
Ken Raeburn [Tue, 26 Aug 2003 17:00:37 +0000 (17:00 +0000)] 
* fake-addrinfo.h (inline): Supported by Sun Forte Developer 7 compiler

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

21 years ago* foreachaddr.c (foreach_localaddr) [HAVE_IFADDRS_H]: Skip over any returned
Ken Raeburn [Tue, 26 Aug 2003 16:57:32 +0000 (16:57 +0000)] 
* foreachaddr.c (foreach_localaddr) [HAVE_IFADDRS_H]: Skip over any returned
data structure with a NULL ifa_addr field.

ticket: 1770
version_reported: 1.3
target_version: 1.3.2
tags: pullup

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

21 years ago* aclocal.m4 (WITH_CCOPTS, WITH_CPPOPTS, WITH_LINKER, WITH_LDOPTS,
Ken Raeburn [Tue, 26 Aug 2003 16:27:55 +0000 (16:27 +0000)] 
* aclocal.m4 (WITH_CCOPTS, WITH_CPPOPTS, WITH_LINKER, WITH_LDOPTS,
KRB5_INIT_CCOPTS, WITH_CC_DEPRECATED_ARG): Deleted.
(CONFIG_RULES): Do the non-useless parts directly here.
(V5_SET_TOPDIR): Work quietly.
(WITH_KRB4): Use AC_MSG_NOTICE.

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

21 years agomake depend
Ken Raeburn [Thu, 21 Aug 2003 08:29:20 +0000 (08:29 +0000)] 
make depend

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

21 years ago* dnssrv.c: New file; split out DNS SRV RR query support...
Ken Raeburn [Thu, 21 Aug 2003 08:28:48 +0000 (08:28 +0000)] 
* dnssrv.c: New file; split out DNS SRV RR query support...
* locate_kdc.c: ...from here.  Always compile in the calls.
* Makefile.in (STLIBOBJS, OBJS, SRCS): Add it.

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

21 years ago* configure.in: Don't substitute LIBOBJS, newer autoconfs don't like it
Ken Raeburn [Thu, 21 Aug 2003 07:46:13 +0000 (07:46 +0000)] 
* configure.in: Don't substitute LIBOBJS, newer autoconfs don't like it

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

21 years ago* Makefile.in (STLIBOBJS, OBJS): Empty
Ken Raeburn [Thu, 21 Aug 2003 07:43:59 +0000 (07:43 +0000)] 
* Makefile.in (STLIBOBJS, OBJS): Empty

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

21 years ago* fake-addrinfo.h (getnameinfo): Define to my_fake_getnameinfo only if
Ken Raeburn [Thu, 21 Aug 2003 07:25:45 +0000 (07:25 +0000)] 
* fake-addrinfo.h (getnameinfo): Define to my_fake_getnameinfo only if
HAVE_GETADDRINFO is defined.

ticket: 1380
status: open

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

21 years agoMake things work on IRIX again
Ken Raeburn [Thu, 21 Aug 2003 03:55:53 +0000 (03:55 +0000)] 
Make things work on IRIX again

* fake-addrinfo.h (inline): Move definitions further up, before first use.  Do
use __inline__ for gcc without c99 support.
(GET_SERV_BY_NAME) [!GETSERVBYNAME_R_RETURNS_INT]: Fix invocation for IRIX
definition.
* socket-utils.h: Include port-sockets.h to get a definition for struct
sockaddr_storage.

ticket: 1380
status: open

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

21 years agoOops. Include errno.h even if gai_strerror isn't being defined
Ken Raeburn [Thu, 21 Aug 2003 02:52:07 +0000 (02:52 +0000)] 
Oops.  Include errno.h even if gai_strerror isn't being defined

ticket: 1380
status: open

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

21 years ago* configure.in: Don't replace any missing system functions. Just set LIBOBJS
Ken Raeburn [Thu, 21 Aug 2003 02:49:49 +0000 (02:49 +0000)] 
* configure.in: Don't replace any missing system functions.  Just set LIBOBJS
empty for now and substitute it.

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

21 years agoFirst cut at adding local caching to the getaddrinfo support. Still needs work
Ken Raeburn [Thu, 21 Aug 2003 01:50:02 +0000 (01:50 +0000)] 
First cut at adding local caching to the getaddrinfo support.  Still needs work

* fake-addrinfo.h: Delete the unused WRAP_GETNAMEINFO support.
(HAVE_GETADDRINFO) [__APPLE__ && __MACH__]: Don't undefine.
(FAI_CACHE) [__APPLE__ && __MACH__]: Define.
(system_getaddrinfo, system_freeaddrinfo, system_getnameinfo): New functions.
(gaiptr, faiptr, gniptr): Variables deleted.  Change references to use the
system_* functions above.
(getaddrinfo, freeaddrinfo) [FAI_CACHE]: Define as macros to the my_fake_*
versions.
(protoname, socktypename, familyname): Use caller-supplied buffers instead of
local static buffers.
(debug_dump_getaddrinfo_args): Provide a buffer.
(NEED_FAKE_GETNAMEINFO): Define if HAVE_GETADDRINFO is not defined.
(inline): Rework macros to test for C99 and IRIX.
(NEED_FAKE_GETADDRINFO): Define if FAI_CACHE is defined.
(fai_add_entry) [KRB5_USE_INET6]: Support IPv6.
(CACHE_ENTRY_LIFETIME): New macro.
(struct face, struct fac): New types.
(fac): New static variable.
(plant_face, find_face): New functions.
(fai_add_hosts_by_name) [FAI_CACHE]: Check the cache before looking up the
hostname.  Add the looked-up host info to the cache.
(fake_getaddrinfo): Call GET_SERV_BY_NAME instead of conditionally calling
getservbyname or getservbyname_r.  Don't pass AF_INET to
fai_add_hosts_by_name.
(fake_getnameinfo): Define only if NEED_FAKE_GETNAMEINFO is defined.
(gai_strerror): Define if either HAVE_FAKE_GETADDRINFO or NEED_FAKE_GETNAMEINFO
is defined.
(getaddrinfo): Do define function if FAI_CACHE is defined.
(getnameinfo): Define only if NEED_FAKE_GETNAMEINFO is defined.

ticket: 1380
status: open

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

21 years agoDon't double free the encrypted credential part
Sam Hartman [Tue, 19 Aug 2003 20:32:43 +0000 (20:32 +0000)] 
Don't double free the encrypted credential part

Ticket: 1731
Tags: pullup

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

21 years agokrb_check_auth clears the return value for the schedule parameter with a memset....
Alexandra Ellwood [Fri, 15 Aug 2003 19:54:14 +0000 (19:54 +0000)] 
krb_check_auth clears the return value for the schedule parameter with a memset.  This prevents callers from using the key schedule, which breaks code

ticket: 1730

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

21 years ago* configure.in: Check for mode_t
Ken Raeburn [Thu, 14 Aug 2003 04:07:10 +0000 (04:07 +0000)] 
* configure.in: Check for mode_t

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

22 years ago* configure.in: Don't check for or replace vfprintf, vsprintf, strerror,
Ken Raeburn [Wed, 13 Aug 2003 08:28:38 +0000 (08:28 +0000)] 
* configure.in: Don't check for or replace vfprintf, vsprintf, strerror,
memmove, or sscanf, all part of C 89.

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

22 years agouse my mit changelog id
Ken Raeburn [Wed, 13 Aug 2003 08:27:07 +0000 (08:27 +0000)] 
use my mit changelog id

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

22 years ago* Makefile.in (OBJS, STLIBOBJS): Drop setenv.o.
Ken Raeburn [Wed, 13 Aug 2003 08:26:19 +0000 (08:26 +0000)] 
* Makefile.in (OBJS, STLIBOBJS): Drop setenv.o.
* setenv.c: Deleted.
* pos-obsolete.h: Deleted.

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

22 years ago * cnv_tkt_skey.c (krb524_convert_tkt_skey): Call krb_create_ticket
Tom Yu [Tue, 12 Aug 2003 02:18:55 +0000 (02:18 +0000)] 
* cnv_tkt_skey.c (krb524_convert_tkt_skey): Call krb_create_ticket
instead of local version.  Remove local version of
krb_create_ticket.  This file no longer gets included into a
krb524 library, so accessing internal functions isn't that big of
an issue anymore.

ticket: 1714
version_reported: 1.3.1
target_version: 1.3.2
tags: pullup
component: krb5-kdc

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

22 years agoget_init_creds_password: DNS SRV off causes bogus REALM_UNKNOWN
Tom Yu [Fri, 8 Aug 2003 20:38:55 +0000 (20:38 +0000)] 
get_init_creds_password: DNS SRV off causes bogus REALM_UNKNOWN

* gic_pwd.c (krb5_get_init_creds_password): If DNS SRV support is
turned off, the second call to get_init_creds() will fail with
KRB5_REALM_UNKNOWN under certain circumstances.  If that happens,
return the error from the first call to get_init_creds(), which
will be more useful to the user.

ticket: new
target_version: 1.3.2
tags: pullup
component: krb5-libs

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

22 years agoRemove the target requirement for kadmind4 and v5passwdd
Alexandra Ellwood [Fri, 8 Aug 2003 15:02:15 +0000 (15:02 +0000)] 
Remove the target requirement for kadmind4 and v5passwdd

ticket: 1715

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

22 years agoconfigure.in: Don't assume all darwin boxes are powerpc. (eg: OpenDarwin/x86)
Alexandra Ellwood [Wed, 6 Aug 2003 20:17:18 +0000 (20:17 +0000)] 
configure.in: Don't assume all darwin boxes are powerpc. (eg: OpenDarwin/x86)

ticket: 1718

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

22 years agoDo not install kadmin4 or v5passwdd on Mac OS X. Also, fixed broken goober I acciden...
Alexandra Ellwood [Wed, 6 Aug 2003 17:50:59 +0000 (17:50 +0000)] 
Do not install kadmin4 or v5passwdd on Mac OS X.  Also, fixed broken goober I accidentally checked in on the trunk.  oops

ticket: 1715

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

22 years ago * kinit.c (main): Apply patch from Stephen Grau to correctly
Tom Yu [Fri, 1 Aug 2003 21:05:35 +0000 (21:05 +0000)] 
* kinit.c (main): Apply patch from Stephen Grau to correctly
return non-zero for certain error conditions.

ticket: 1437
target_version: 1.3.2
tags: pullup

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

22 years agoadd missing ChangeLog entry
Tom Yu [Thu, 31 Jul 2003 19:20:01 +0000 (19:20 +0000)] 
add missing ChangeLog entry

ticket: 1702
tags: pullup
target_version: 1.3.2

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

22 years agokrb5_get_host_realm and krb5_free_host_realm should not be labeled as KRB5_PRIVATE.
Jeffrey Altman [Thu, 31 Jul 2003 19:06:31 +0000 (19:06 +0000)] 
krb5_get_host_realm and krb5_free_host_realm should not be labeled as KRB5_PRIVATE.
They are required for many applications including OpenAFS and UMich's Kx509.  1.2.8
had them public but the change was never reflected on the trunk.

Ticket: 1702

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

22 years agoupdate for krb5-1.3.1
Tom Yu [Thu, 31 Jul 2003 03:05:25 +0000 (03:05 +0000)] 
update for krb5-1.3.1

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

22 years agoKfM jam file paths should work from any project file the KerberosFramework hierarchy
Alexandra Ellwood [Mon, 28 Jul 2003 18:40:13 +0000 (18:40 +0000)] 
KfM jam file paths should work from any project file the KerberosFramework hierarchy

ticket: 1693

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

22 years ago-s can return non-zero exit status if credentials are expired
Sam Hartman [Sun, 27 Jul 2003 05:30:54 +0000 (05:30 +0000)] 
-s can return non-zero exit status if credentials are expired

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

22 years ago* admin.texinfo (realms (krb5.conf)): Add description of master_kdc tag.
Ken Raeburn [Fri, 25 Jul 2003 20:43:58 +0000 (20:43 +0000)] 
* admin.texinfo (realms (krb5.conf)): Add description of master_kdc tag.
(Sample krb5.conf File): Add it to the example.

ticket: 1692
tags: pullup

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

22 years agouse new config file tag for master KDC
Ken Raeburn [Fri, 25 Jul 2003 15:37:57 +0000 (15:37 +0000)] 
use new config file tag for master KDC

We want to avoid making extra attempts to contact the "master" KDC, in the case
where the password appears to be incorrect according to one KDC but we think
maybe the master KDC could have a newer password, if there isn't actually a
master KDC.  Currently the admin_server tag is overloaded for kadmin and
password changing.  So, don't use it as a filter on the KDC list; instead, look
for master_kdc as an independent list.

(See also ticket 1511 re contacting the master twice if it's first in the
regular KDC list.)

Doc updates still needed.

* locate_kdc.c (krb5_locate_kdc): Always pass 0 to locate_server as the
get_masters argument.  Instead, if get_masters is set, look up "master_kdc" in
the config file instead of "kdc".

ticket: new
target_version: 1.3.2
tags: pullup
status: open

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