krb5.git
19 years agoUpdate dependencies
Ken Raeburn [Tue, 21 Jun 2005 00:45:08 +0000 (00:45 +0000)]
Update dependencies

N.B.: The version of gcc used this time ("gcc version 3.4.3 20041212
(Red Hat 3.4.3-9.EL4)") seems to emit some duplicate dependencies --
some header files get listed twice.  This is annoying but shouldn't
cause any harm....

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

19 years agoremove old makefile
Ken Raeburn [Tue, 21 Jun 2005 00:15:21 +0000 (00:15 +0000)]
remove old makefile

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

19 years agoksu keeps old ccache locked
Ken Raeburn [Wed, 15 Jun 2005 23:17:15 +0000 (23:17 +0000)]
ksu keeps old ccache locked

ksu can keep the user's ccache (the old one, not the newly created
one) locked while the new shell is running.  It's a read lock, which
prevents other processes from modifying the file (e.g., adding newly
acquired tickets); they just hang until ksu exits.

The problem is really a bug down in the ccache code, where the wrong
data pointer is pulled out of a linked list, and used.  But ksu is one
of the few programs that manipulates multiple ccaches; most other
programs wouldn't show the problem, and it only shows up with ksu if
some other program is also being run that has to fetch new tickets.

Any other programs maintaining multiple file ccaches may be affected
as well.

* cc_file.c (dereference): Fix test is list-walking loop.

ticket: new
target_version: 1.4.2
tags: pullup

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

19 years agoupdated to reflect new header generation
Alexandra Ellwood [Wed, 15 Jun 2005 02:29:45 +0000 (02:29 +0000)]
updated to reflect new header generation

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

19 years ago* k5-platform.h: Include endian.h if it's available, or machine/endian.h if
Ken Raeburn [Wed, 15 Jun 2005 01:13:34 +0000 (01:13 +0000)]
* k5-platform.h: Include endian.h if it's available, or machine/endian.h if
it's available.  Include byteswap.h if available.
(K5_LE, K5_BE): Define based on endianness macros from header files, if
available.  Only do the architecture tests if this fails.
(SWAP16, SWAP32, SWAP64): Define if byteswap.h and bswap_16 are available.
({load,store}_{16,32,64}_le): Disable building of little-endian versions, which
aren't currently used.

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

19 years ago* configure.in: Check for endian.h
Ken Raeburn [Wed, 15 Jun 2005 01:09:28 +0000 (01:09 +0000)]
* configure.in: Check for endian.h

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

19 years ago* destest.c (main): Force testing of unaligned access to input, output, and key
Ken Raeburn [Fri, 10 Jun 2005 20:40:34 +0000 (20:40 +0000)]
* destest.c (main): Force testing of unaligned access to input, output, and key
blocks.

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

19 years ago* configure.in: Check for headers byteswap.h, sys/bswap.h, machine/endian.h,
Ken Raeburn [Fri, 10 Jun 2005 03:09:40 +0000 (03:09 +0000)]
* configure.in: Check for headers byteswap.h, sys/bswap.h, machine/endian.h,
machine/byte_order.h, and functions bswap16, bswap64, bswap_16, and bswap_64.

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

19 years ago* kdb_dbm.c: Unused file deleted
Ken Raeburn [Fri, 10 Jun 2005 02:48:13 +0000 (02:48 +0000)]
* kdb_dbm.c: Unused file deleted

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

19 years ago* sendto_kdc.c (service_fds): Don't create a select_state on the stack; take an
Ken Raeburn [Fri, 10 Jun 2005 01:47:29 +0000 (01:47 +0000)]
* sendto_kdc.c (service_fds): Don't create a select_state on the stack; take an
additional argument pointing to it.
(krb5int_sendto): Don't create a select_state on the stack; instead, allocate
two on the heap, passing the second as the new argument to service_fds.

ticket: 3060
status: open

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

19 years agoadd comment
Ken Raeburn [Fri, 10 Jun 2005 01:27:18 +0000 (01:27 +0000)]
add comment

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

19 years agoUse GCC's packed-structure support to try to optimize unaligned loads and
Ken Raeburn [Thu, 9 Jun 2005 23:30:33 +0000 (23:30 +0000)]
Use GCC's packed-structure support to try to optimize unaligned loads and
stores of values.  (E.g., on x86, gcc will emit a word load or store regardless
of alignment; on sparc or alpha, it will do aligned word accesses.  The old C
code does byte operations and arithmetic, always.)  Tested in crypto code on
x86, sparc, and amd64.

* k5-platform.h (load_*): Change argument type to point to const.
(K5_BE, K5_LE): New macros, defined based on architecture macros for certain
big-endian and little-endian platforms, respectively.
(PUT, GET) [__GNUC__]: New macros.  Use GCC's packed-structure support to do
unaligned loads and stores.
(PUTSWAPPED, GETSWAPPED) [__GNUC__]: Similar, but invoke a SWAP<size> macro
(not defined yet) to swap the bytes of the value.
(store_*, load_*): Use these macros when using GCC, depending on endianness and
availability of the SWAP<size> macros.

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

19 years ago* f_tables.h: Include k5-platform.h.
Ken Raeburn [Thu, 9 Jun 2005 22:43:54 +0000 (22:43 +0000)]
* f_tables.h: Include k5-platform.h.
(GET_HALF_BLOCK): Use load_32_be.
(PUT_HALF_BLOCK): Use store_32_be.

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

19 years agodon't always require support library when building with sun cc
Ken Raeburn [Tue, 7 Jun 2005 06:18:40 +0000 (06:18 +0000)]
don't always require support library when building with sun cc

By default, a non-GCC configuration will not optimize during the build.  The
Solaris C compiler will always output functions defined as "inline", at least
when not optimizing, even if they're never used.  With recent changes on the
trunk, k5_call_init_function will cause the support library to be required on
Solaris by every program that includes k5-platform.h.  This patch should fix
that.

* k5-platform.h (MAYBE_DEFINE_CALLINIT_FUNCTION) [DELAY_INITIALIZER]: New
macro.  If not __GNUC__, define k5_call_init_function in the expansion;
otherwise, do nothing.
(MAKE_INIT_FUNCTION) [DELAY_INITIALIZER]: Use it.
(k5_call_init_function): Don't define function form at top level.

ticket: new

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

19 years ago* profile.swg (errcode_t* tcl8 argout typemap): Cast return value from
Ken Raeburn [Mon, 6 Jun 2005 20:48:32 +0000 (20:48 +0000)]
* profile.swg (errcode_t* tcl8 argout typemap): Cast return value from
error_message to char* to silence Sun compiler warning.
(errcode_t tcl8 out typemap): Likewise.
* profile_tcl.c: Regenerated.

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

19 years agoFix gcc preprocessor warnings due to last change
Ken Raeburn [Mon, 6 Jun 2005 20:37:22 +0000 (20:37 +0000)]
Fix gcc preprocessor warnings due to last change

* configure.in: Put #undef for the PACKAGE_* symbols at the start of
autoconf.h.  Use a leading comment to hide the #undef from the autoconf
substitutions.

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

19 years agoSome autoconf messages want to use the PACKAGE_* values
Ken Raeburn [Wed, 1 Jun 2005 21:22:09 +0000 (21:22 +0000)]
Some autoconf messages want to use the PACKAGE_* values

* configure.in: Identify package in AC_INIT call.

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

19 years ago* trval.c (convert_nibble): Declare the argument with a type
Ken Raeburn [Wed, 1 Jun 2005 21:09:36 +0000 (21:09 +0000)]
* trval.c (convert_nibble): Declare the argument with a type

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

19 years ago* k5-thread.h (krb5int_pthread_loaded) [HAVE_PRAGMA_WEAK_REF]: Declare.
Ken Raeburn [Wed, 1 Jun 2005 01:57:15 +0000 (01:57 +0000)]
* k5-thread.h (krb5int_pthread_loaded) [HAVE_PRAGMA_WEAK_REF]: Declare.
(K5_PTHREADS_LOADED) [HAVE_PRAGMA_WEAK_REF]: Use it.

ticket: 3084
status: open

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

19 years agoAdd run-time determination of whether thread support is available in the
Ken Raeburn [Wed, 1 Jun 2005 00:56:01 +0000 (00:56 +0000)]
Add run-time determination of whether thread support is available in the
support library.  Check lots of weak references, and call pthread_once a couple
of times, to distinguish a broken stub from the real thing.

* threads.c [HAVE_PRAGMA_WEAK_REF]: Declare pthread_{g,s}etspecific,
pthread_key_{create,delete}, pthread_{create,join} as weak references.
(krb5int_pthread_loaded, loaded_test_aux) [HAVE_PRAGMA_WEAK_REF]: New
functions.
(flag_pthread_loaded, loaded_test_once) [HAVE_PRAGMA_WEAK_REF]: New variables.
* libkrb5support.exports: Add krb5int_pthread_loaded.

ticket: 3084
status: open

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

19 years ago* Makefile.in (test_getpw): Depend on, and link against, the support library
Ken Raeburn [Wed, 1 Jun 2005 00:38:24 +0000 (00:38 +0000)]
* Makefile.in (test_getpw): Depend on, and link against, the support library

ticket: 3084
status: open

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

19 years ago* k5-int.h (encode_krb5_sam_challenge, encode_krb5_sam_key,
Ken Raeburn [Sat, 28 May 2005 07:03:41 +0000 (07:03 +0000)]
* k5-int.h (encode_krb5_sam_challenge, encode_krb5_sam_key,
encode_krb5_enc_sam_response_enc, encode_krb5_sam_response,
decode_krb5_sam_challenge, decode_krb5_enc_sam_response_enc,
decode_krb5_sam_response, decode_krb5_predicted_sam_response,
krb5_validate_times): Delete duplicate declarations.

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

19 years agoMake "make check" able to link things again..
Ken Raeburn [Tue, 24 May 2005 20:55:50 +0000 (20:55 +0000)]
Make "make check" able to link things again..

* keyblocks.c (krb5int_c_free_keyblock): Call krb5int_c_free_keyblock_contents
instead of krb5_free_keyblock_contents.

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

19 years agoImplement RFC 3961 PRF
Sam Hartman [Fri, 20 May 2005 02:05:24 +0000 (02:05 +0000)]
Implement RFC 3961 PRF

Add krb5_c_prf, a function that implements the RFC 3961 PRF.

As part of this change, the krb5_init_keyblock and krb5 free routines
move to libk5crypto.  Public stubs remain in libkrb5, but the actual
implementation is an internal interface in libk5crypto

ticket: new
Tags: enhancement

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

19 years ago* fake-addrinfo.c (fai_add_hosts_by_name): Pass null pointer instead of telnet
Ken Raeburn [Wed, 18 May 2005 01:01:23 +0000 (01:01 +0000)]
* fake-addrinfo.c (fai_add_hosts_by_name): Pass null pointer instead of telnet
as service name.

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

19 years ago* configure.in: Merged content from include/configure.in. Don't configure
Ken Raeburn [Fri, 13 May 2005 06:38:13 +0000 (06:38 +0000)]
* configure.in: Merged content from include/configure.in.  Don't configure
include directory any more; build its makefiles and autoconf.h directly.
Provide comment template when defining C macros.
* include/configure.in: Deleted, content merged into ../configure.in.
* include/Makefile.in (thisconfigdir, mydir): Updated for configure change.
($(srcdir)/krb5/autoconf.stmp): Use $(thisconfigdir) when locating
configure.in and autom4te.cache.
* include/kerberosIV/Makefile.in (thisconfigdir, mydir): Updated for configure
change.
* include/krb5/Makefile.in (thisconfigdir, mydir): Updated for configure
change.

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

19 years ago* aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Provide comment template when defining
Ken Raeburn [Fri, 13 May 2005 06:32:50 +0000 (06:32 +0000)]
* aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Provide comment template when defining
C macros.
(KRB5_GETPEERNAME_ARGS): Likewise.
(KRB5_GETSOCKNAME_ARGS): Likewise.  Only define the macros in one place.

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

19 years ago* err_txt.c: Don't include krb_err.c if DEPEND is defined
Ken Raeburn [Fri, 13 May 2005 06:16:14 +0000 (06:16 +0000)]
* err_txt.c: Don't include krb_err.c if DEPEND is defined

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

19 years agomake depend
Ken Raeburn [Fri, 13 May 2005 06:12:47 +0000 (06:12 +0000)]
make depend

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

19 years ago* kerberos_v4.c: Include autoconf.h before testing KRB5_KRB4_COMPAT
Ken Raeburn [Fri, 13 May 2005 06:12:31 +0000 (06:12 +0000)]
* kerberos_v4.c: Include autoconf.h before testing KRB5_KRB4_COMPAT

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

19 years agobuild failure on sparc64-solaris
Ken Raeburn [Wed, 4 May 2005 00:57:17 +0000 (00:57 +0000)]
build failure on sparc64-solaris

Mike Friedman at Berkeley reports (on kerberos@mit) that the build
fails linking the aes-gen program if the tree is configured with
CC=gcc and CFLAGS=-m64.

* Makefile.in (aes-gen): Use CC_LINK.  Reported by Mike Friedman.

ticket: new

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

19 years agotypo fix
Ken Raeburn [Sun, 1 May 2005 09:18:33 +0000 (09:18 +0000)]
typo fix

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

19 years ago* ytypes.h: Include autoconf.h. Include sys/types.h only if it exists
Ken Raeburn [Sun, 1 May 2005 08:46:29 +0000 (08:46 +0000)]
* ytypes.h: Include autoconf.h.  Include sys/types.h only if it exists

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

19 years ago* shs.c (SHSTransform) [CONFIG_SMALL]: Roll loops for each round
Ken Raeburn [Sun, 1 May 2005 08:42:12 +0000 (08:42 +0000)]
* shs.c (SHSTransform) [CONFIG_SMALL]: Roll loops for each round

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

19 years ago* md5.c (Transform) [CONFIG_SMALL]: Roll loops for each round
Ken Raeburn [Sun, 1 May 2005 08:29:10 +0000 (08:29 +0000)]
* md5.c (Transform) [CONFIG_SMALL]: Roll loops for each round

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

19 years ago* md4.c (Transform) [CONFIG_SMALL]: Roll loops for each round
Ken Raeburn [Sun, 1 May 2005 08:20:56 +0000 (08:20 +0000)]
* md4.c (Transform) [CONFIG_SMALL]: Roll loops for each round

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

19 years ago* t_crc.c (main): Don't run timing test for now
Ken Raeburn [Sun, 1 May 2005 08:15:21 +0000 (08:15 +0000)]
* t_crc.c (main): Don't run timing test for now

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

19 years agoupdated dependencies for socket-utils.h change
Ken Raeburn [Thu, 28 Apr 2005 22:55:57 +0000 (22:55 +0000)]
updated dependencies for socket-utils.h change

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

19 years ago* yarrow.c: Delete old macintosh support.
Ken Raeburn [Thu, 28 Apr 2005 21:37:18 +0000 (21:37 +0000)]
* yarrow.c: Delete old macintosh support.
(yarrow_input_maybe_locking): Do the optional locking, and verify that the
mutex is locked, before doing anything else.
(yarrow_reseed_locked): Verify that the global mutex is locked before doing
anything else.

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

19 years ago* k5-int.h: Include fcntl.h only if HAVE_FCNTL_H is defined.
Ken Raeburn [Thu, 28 Apr 2005 09:45:37 +0000 (09:45 +0000)]
* k5-int.h: Include fcntl.h only if HAVE_FCNTL_H is defined.
(krb5int_zap_data): For PalmOS without gcc, call memset but without the
volatile cast.

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

19 years ago* port-sockets.h: On PalmOS, include autoconf.h and netdb.h, and define
Ken Raeburn [Thu, 28 Apr 2005 09:39:43 +0000 (09:39 +0000)]
* port-sockets.h: On PalmOS, include autoconf.h and netdb.h, and define
socklen_t.
* socket-utils.h: Include k5-platform.h.
(sa2sin, sa2sin6, ss2sa, ss2sin, ss2sin6): Always use inline function form, and
use "inline" instead of "__inline__".

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

19 years ago the purpose of the krb5_get_credentials call is to
Jeffrey Altman [Mon, 25 Apr 2005 17:40:38 +0000 (17:40 +0000)]
    the purpose of the krb5_get_credentials call is to
        obtain a set of credentials for the caller.  the
        krb5_cc_store_cred() call is to optimize performance
        for future calls.  Ignore any errors, since the credentials
        are still valid even if we fail to store them in the cache.

ticket: new

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

19 years agoMove WSAStartup/WSACleanup from DllMain to krb5_init_ctx/krb5_free_ctx
Jeffrey Altman [Sat, 23 Apr 2005 00:39:18 +0000 (00:39 +0000)]
Move WSAStartup/WSACleanup from DllMain to krb5_init_ctx/krb5_free_ctx
WSAStartup/WSACleanup cannot be called from DllMain without risking
a deadlock when FreeLibrary().

ticket:2980

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

19 years ago* implementor.texinfo (Porting Issues): Fix up formatting
Ken Raeburn [Fri, 22 Apr 2005 00:45:48 +0000 (00:45 +0000)]
* implementor.texinfo (Porting Issues): Fix up formatting

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

19 years ago* implementor.texinfo (Networking): New chapter node, incorporates Socket API,
Ken Raeburn [Fri, 22 Apr 2005 00:26:13 +0000 (00:26 +0000)]
* implementor.texinfo (Networking): New chapter node, incorporates Socket API,
IPv6 Support, Local Addresses, and Host Address Lookup.

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

19 years ago* implementor.texinfo (Thread Shim Layer Implementation): New node.
Ken Raeburn [Fri, 22 Apr 2005 00:23:34 +0000 (00:23 +0000)]
* implementor.texinfo (Thread Shim Layer Implementation): New node.
(Internal Thread API): Move the k5_os_ descriptions there.

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

19 years ago* implementor.texinfo (Local Addresses): Drop Mac OS 9, add Solaris 9, HP-UX
Ken Raeburn [Thu, 21 Apr 2005 23:16:26 +0000 (23:16 +0000)]
* implementor.texinfo (Local Addresses): Drop Mac OS 9, add Solaris 9, HP-UX
11.
(IPv6 Support, Host Address Lookup): Update for fake getaddrinfo code moved to
support library.
(Thread System Requirements): Use @code when listing function names.  Add a
couple notes about some problematic routines.
(Internal Thread API): Update k5_mutex_t description to indicate there's always
non-OS data included.  Describe case where thread support is disabled.
(Advanced Shared Library Requirements): Describe recently raised Windows
DllMain issues.  Describe finalization code.  Multiple init/fini functions are
now allowed in a library.  Describe LIBINITFUNC and LIBFINIFUNC makefile
variables.  Mention lib.in can have rules for generating temporary files for
dealing with export lists.

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

19 years ago* Makefile (clean-tex): Delete *.fns, *.vrs, *.tps too.
Ken Raeburn [Thu, 21 Apr 2005 23:02:59 +0000 (23:02 +0000)]
* Makefile (clean-tex): Delete *.fns, *.vrs, *.tps too.
(implementor.pdf, implementor.ps, implementor.info): New targets.

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

19 years ago* build.texinfo (HPUX): Add some notes about the thread support and gcc
Ken Raeburn [Thu, 21 Apr 2005 23:01:30 +0000 (23:01 +0000)]
* build.texinfo (HPUX): Add some notes about the thread support and gcc

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

19 years agoupdate release ids
Ken Raeburn [Thu, 21 Apr 2005 22:31:54 +0000 (22:31 +0000)]
update release ids

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

19 years agoadd copyright 2005
Ken Raeburn [Thu, 21 Apr 2005 22:28:41 +0000 (22:28 +0000)]
add copyright 2005

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

19 years agoStop generating per-directory sed scripts, and use perl to compute the patterns
Ken Raeburn [Thu, 21 Apr 2005 21:44:37 +0000 (21:44 +0000)]
Stop generating per-directory sed scripts, and use perl to compute the patterns
on the fly instead.  (Next step, someday, integrate this script and depfix.sed,
so we only have to run one script.)

* config/post.in (depend-dependencies): Use (and depend on) depfix2.pl instead
of .depfix2.sed.
(.depfix2.sed): Target deleted.
(DEPTARGETS): Delete .depfix2.sed and .depfix2.tmp.
* util/depgen.sed: Deleted.
* util/depfix2.pl: New file.

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

19 years ago* depgen.sed: Delete faulty check for $(srcdir), and redundant check for $(SRCTOP)
Ken Raeburn [Wed, 20 Apr 2005 18:36:40 +0000 (18:36 +0000)]
* depgen.sed: Delete faulty check for $(srcdir), and redundant check for $(SRCTOP)

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

19 years ago* lib/kadm5/configure.in, kadmin/configure.in: Don't invoke AC_CANONICAL_HOST
Ken Raeburn [Wed, 20 Apr 2005 03:19:31 +0000 (03:19 +0000)]
* lib/kadm5/configure.in, kadmin/configure.in: Don't invoke AC_CANONICAL_HOST
explicitly, CONFIG_RULES already does it.

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

19 years agoCompute reltopdir at autoconf time instead of at configure time. This has the
Ken Raeburn [Wed, 20 Apr 2005 03:10:12 +0000 (03:10 +0000)]
Compute reltopdir at autoconf time instead of at configure time.  This has the
happy side effect of stopping autoreconf from creating directories named
"$ac_config_fragdir" all over the source tree.

* aclocal.m4 (fileexists, K5_TOPDIR): New macros.
(V5_SET_TOPDIR): Don't test for AC_LOCALDIR any more.  Use K5_TOPDIR computed
at autoconf time, but still verify that the contents are what we expect.  Don't
use shell variables in the argument to AC_CONFIG_AUX_DIR.

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

19 years agoAllow compile-time specification that small code space is desired
Ken Raeburn [Wed, 13 Apr 2005 20:38:36 +0000 (20:38 +0000)]
Allow compile-time specification that small code space is desired

* d3_cbc.c (krb5int_des3_cbc_encrypt, krb5int_des3_cbc_decrypt): Don't declare
left and right variables as registers.
* f_cksum.c (mit_des_cbc_cksum): Likewise.
* f_cbc.c (krb5int_des_cbc_encrypt, krb5int_des_cbc_decrypt): Likewise.
(krb5int_des_cbc_encrypt): For full blocks, use GET_HALF_BLOCK to read and then
xor, instead of processing each byte individually.
(krb5int_des_do_encrypt_2, krb5int_des_do_decrypt_2) [CONFIG_SMALL]: New
functions, wrapping large macros with the DES inner loops.
* f_tables.h (DES_DO_ENCRYPT_1, DES_DO_DECRYPT_1): Renamed from non-_1 names.
(krb5int_des_do_encrypt_2, krb5int_des_do_decrypt_2): Declare if CONFIG_SMALL
is defined.
(DES_DO_ENCRYPT, DES_DO_DECRYPT): Expand to _1 macros or _2 function calls
depending on whether CONFIG_SMALL is defined.

With CONFIG_SMALL defined, on x86/gcc/glibc, this drops about 5K (25%) of the
code/table space.

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

19 years ago* aesopt.h: On PalmOS, include FloatMgr.h to get endianness flag.
Ken Raeburn [Wed, 13 Apr 2005 20:19:31 +0000 (20:19 +0000)]
* aesopt.h: On PalmOS, include FloatMgr.h to get endianness flag.
(ENC_UNROLL, DEC_UNROLL, ENC_ROUND, LAST_ENC_ROUND, DEC_ROUND, LAST_DEC_ROUND,
KEY_SCHED): If CONFIG_SMALL is defined, set to NONE or NO_TABLES as
appropriate.

(Latter change drops about 40K -- over 85% -- from AES code/table size in
shared libraries on x86/glibc/gcc.)

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

19 years ago* aes_s2k.c (krb5int_aes_string_to_key): Widen bytes of iteration count before shifting
Ken Raeburn [Wed, 13 Apr 2005 20:14:48 +0000 (20:14 +0000)]
* aes_s2k.c (krb5int_aes_string_to_key): Widen bytes of iteration count before shifting

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

19 years ago* Makefile.in (all-unix): Don't build aes-gen by default, leave it for 'make check'
Ken Raeburn [Wed, 13 Apr 2005 20:14:10 +0000 (20:14 +0000)]
* Makefile.in (all-unix): Don't build aes-gen by default, leave it for 'make check'

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

19 years agoupdate dependencies
Ken Raeburn [Wed, 13 Apr 2005 17:01:23 +0000 (17:01 +0000)]
update dependencies

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

19 years ago* Makefile.in (BISONFLAGS): Drop -v.
Ken Raeburn [Wed, 13 Apr 2005 16:58:27 +0000 (16:58 +0000)]
* Makefile.in (BISONFLAGS): Drop -v.
($(srcdir)/deltat.c): Change to source directory before rebuilding, so path to
source tree doesn't get inserted.

(deltat.c rebuilt)

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

19 years agoDelete definitions of unused macros NEED_SOCKETS and NEED_LOWLEVEL_IO
Ken Raeburn [Wed, 13 Apr 2005 16:55:43 +0000 (16:55 +0000)]
Delete definitions of unused macros NEED_SOCKETS and NEED_LOWLEVEL_IO

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

19 years agoWork around Makefile quoting problems
Tom Yu [Thu, 7 Apr 2005 23:37:39 +0000 (23:37 +0000)]
Work around Makefile quoting problems

ticket: 2992
tags: pullup

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

19 years ago* commands.c (shell): Change 0 to (char*)NULL in execl calls. Patch provided
Ken Raeburn [Wed, 6 Apr 2005 00:15:05 +0000 (00:15 +0000)]
* commands.c (shell): Change 0 to (char*)NULL in execl calls.  Patch provided
by Michael Calmer.

ticket: 3000
status: open

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

19 years ago* krlogind.c (doit): Change 0 to (char*)NULL in execl* calls. Patch provided
Ken Raeburn [Wed, 6 Apr 2005 00:13:02 +0000 (00:13 +0000)]
* krlogind.c (doit): Change 0 to (char*)NULL in execl* calls.  Patch provided
by Michael Calmer.
* krshd.c (doit): Likewise.
* login.c (main): Likewise.

ticket: 3000
status: open

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

19 years agoupdate dependencies
Ken Raeburn [Wed, 6 Apr 2005 00:05:10 +0000 (00:05 +0000)]
update dependencies

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

19 years agofix MITKRB5-SA-2005-001 telnet client vuln
Tom Yu [Tue, 29 Mar 2005 21:21:14 +0000 (21:21 +0000)]
fix MITKRB5-SA-2005-001 telnet client vuln

* telnet.c (slc_add_reply, slc_end_reply): Fix buffer overflow
vulnerability by checking lengths.
(env_opt_add): Ensure buffer allocation is sufficiently large,
accounting for expansion during IAC quoting.

ticket: new
tags: pullup
version_reported: 1.4
target_version: 1.4.1
component: telnet

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

19 years agoTest new k5_getpwuid_r macro
Ken Raeburn [Mon, 28 Mar 2005 18:32:04 +0000 (18:32 +0000)]
Test new k5_getpwuid_r macro

* configure.in: Create makefile in misc.
* Makefile.in (LOCAL_SUBDIRS): Add misc.

* misc/test_getpw.c: New file.
* misc/Makefile.in: New file, based on ../resolve/Makefile.in.
(test_getpw): New target.
(check): Build and run it.

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

19 years agoupdate dependencies
Ken Raeburn [Mon, 28 Mar 2005 18:29:53 +0000 (18:29 +0000)]
update dependencies

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

19 years ago* import_name.c (krb5_gss_import_name): Use k5_getpwuid_r
Ken Raeburn [Sat, 26 Mar 2005 02:15:55 +0000 (02:15 +0000)]
* import_name.c (krb5_gss_import_name): Use k5_getpwuid_r

ticket: 2982
status: open

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

19 years ago* configure.in: Don't check for getpwuid_r here.
Ken Raeburn [Sat, 26 Mar 2005 02:06:43 +0000 (02:06 +0000)]
* configure.in: Don't check for getpwuid_r here.
* prof_file.c (profile_open_file): Use k5_getpwuid_r.

ticket: 2982
status: open

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

19 years ago* kuserok.c (krb5_kuserok): Use k5_getpwnam_r
Ken Raeburn [Sat, 26 Mar 2005 02:05:06 +0000 (02:05 +0000)]
* kuserok.c (krb5_kuserok): Use k5_getpwnam_r

ticket: 2982
status: open

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

19 years ago* configure.in: Don't check for getpwnam_r and getpwuid_r in the thread-safety
Ken Raeburn [Sat, 26 Mar 2005 02:02:40 +0000 (02:02 +0000)]
* configure.in: Don't check for getpwnam_r and getpwuid_r in the thread-safety
warnings.  The tests done elsewhere in the tree are stricter and may not
agree.

ticket: 2982
status: open

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

19 years agoThis patch tightens up our determination of whether we can use
Ken Raeburn [Sat, 26 Mar 2005 02:00:47 +0000 (02:00 +0000)]
This patch tightens up our determination of whether we can use
getpw{nam,uid}_r, and using the set flags, creates macros providing a
consistent API, and if possible thread safety.

* configure.in: Don't check for getpwnam_r and getpwuid_r with AC_CHECK_FUNCS;
use AC_CHECK_FUNC, and only set shell variables.  Run stricter tests on return
types and numbers of arguments, and only define the C macros if these
parameters can actually be determined.
* k5-platform.h (k5_getpwnam_r, k5_getpwuid_r): New macros.

ticket: 2982
status: open

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

19 years ago* Makefile.in ($(srcdir)/krb5/autoconf.stmp): Nuke autom4te.cache directory
Ken Raeburn [Sat, 26 Mar 2005 01:47:46 +0000 (01:47 +0000)]
* Makefile.in ($(srcdir)/krb5/autoconf.stmp): Nuke autom4te.cache directory

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

19 years agoshared library support for HP-UX 10
Ken Raeburn [Fri, 25 Mar 2005 21:36:55 +0000 (21:36 +0000)]
shared library support for HP-UX 10

Our somewhat outdated HP-UX support (which was targeted at HP-UX 10, not 11)
does not have support for shared library initialization and finalization
functions, nor for shared library export lists.  The former was causing
compilation failures unless shared library support was disabled.

* include/k5-platform.h: Expand on init/fini comments some more.
(MAKE_FINI_FUNCTION): Add an HP-UX specific variant that defines an auxiliary
function fitting the signature of HP-UX 10 library combined
initializer/finalizer functions.

* config/lib.in (hpux10.exports): New target, constructed similar to
osf1.exports but with HP-UX 10.x linker options, no initializers, and "errno"
explicitly added to the export list.
* shlib.conf (*-*-hpux*): Combine PICFLAGS setting with SHLIB_EXPFLAGS and
LDCOMBINE setting.  Add linker option "-c hpux10.exports" to LDCOMBINE.  Set
SHLIB_EXPORT_FILE_DEP to hpux10.exports.  Set use_linker_fini_option.

ticket: new

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

19 years agothreaded test program built even with thread support disabled
Ken Raeburn [Fri, 25 Mar 2005 21:28:30 +0000 (21:28 +0000)]
threaded test program built even with thread support disabled

* Makefile.in (all-unix): Use @THREAD_SUPPORT@ and helper targets to build
programs only if thread support is enabled.
(all-unix-0, all-unix-1): New helper targets.

ticket: new
tags: pullup

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

19 years ago * dnsglue.h: Define ns_rr_class to ns_rr_cl if ns_rr_class doesn't
Tom Yu [Wed, 23 Mar 2005 04:00:16 +0000 (04:00 +0000)]
* dnsglue.h: Define ns_rr_class to ns_rr_cl if ns_rr_class doesn't
exist.

ticket: 2906
tags: pullup

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

19 years ago * x-deltat.y (wsnum): Add missing semicolon following YYERROR,
Tom Yu [Wed, 23 Mar 2005 03:14:10 +0000 (03:14 +0000)]
* x-deltat.y (wsnum): Add missing semicolon following YYERROR,
which was preventing bison-1.75 from producing compilable C
output.

ticket: new
version_reported: 1.4
target_version: 1.4.1
tags: pullup

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

19 years ago * gic_keytab.c (krb5_get_init_creds_keytab): When calling
Tom Yu [Tue, 22 Mar 2005 22:49:11 +0000 (22:49 +0000)]
* gic_keytab.c (krb5_get_init_creds_keytab): When calling
krb5_get_init_creds() for the second time (with use_master=1),
also accept KRB5_REALM_UNKNOWN as a soft error, and use the result
from the first call to krb5_get_init_creds().  This can happen
when no master KDC is configured.

ticket: 2974
tags: pullup

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

19 years agothreads.c (thread_termination): Free array of pointers to thread-specific data (t...
Alexandra Ellwood [Sun, 20 Mar 2005 15:20:38 +0000 (15:20 +0000)]
threads.c (thread_termination): Free array of pointers to thread-specific data (t) on thread termination.  Use existing mutex to prevent the deletion of the array from interfering with the global list of thread specific data (used for library termination)

ticket: 2971

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

19 years agoThe current wconfig.c does not treat @MAINT@ as a comment. Until we
Jeffrey Altman [Tue, 15 Mar 2005 06:35:29 +0000 (06:35 +0000)]
The current wconfig.c does not treat @MAINT@ as a comment.  Until we
have one that does, override the use of @MAINT@ on Windows.

ticket: 2962

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

19 years agokrb5_c_is_keyed_cksum() is a boolean function. It cannot safely return
Jeffrey Altman [Tue, 15 Mar 2005 06:32:39 +0000 (06:32 +0000)]
krb5_c_is_keyed_cksum() is a boolean function.  It cannot safely return
an error value.  Change the error condition to return False (0) instead
of 0xFFFFFFFF.

ticket: new

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

19 years agoFix dangerous 64-bit time_t * to long * conversion
Jeffrey Altman [Tue, 15 Mar 2005 06:17:05 +0000 (06:17 +0000)]
Fix dangerous 64-bit time_t * to long * conversion

ticket: new

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

19 years ago* v4gssftp.exp: Identify file correctly for top-level error messages
Ken Raeburn [Mon, 14 Mar 2005 19:46:26 +0000 (19:46 +0000)]
* v4gssftp.exp: Identify file correctly for top-level error messages

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

19 years ago* default.exp (start_tail): Make 'standalone' an additional argument.
Ken Raeburn [Mon, 14 Mar 2005 19:32:53 +0000 (19:32 +0000)]
* default.exp (start_tail): Make 'standalone' an additional argument.
(start_kerberos_daemons): Pass it.

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

19 years ago* Makefile.in (EXTRADEPSRCS): Define
Ken Raeburn [Mon, 14 Mar 2005 19:24:48 +0000 (19:24 +0000)]
* Makefile.in (EXTRADEPSRCS): Define

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

19 years agost_mtim.tv_nsec, not tv_usec
Ken Raeburn [Sun, 13 Mar 2005 08:16:34 +0000 (08:16 +0000)]
st_mtim.tv_nsec, not tv_usec

ticket: 2959
status: open

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

19 years agoprofile library should check high-resolution timestamps if available
Ken Raeburn [Sun, 13 Mar 2005 07:34:23 +0000 (07:34 +0000)]
profile library should check high-resolution timestamps if available

With the current profile code, it's possible for a file to be read when
partially written, with the writing of the new file contents being completed
within the same 1-second clock value, causing the profile code not to re-read
the contents.  Using a higher-resolution timestamp, available on many systems
now, should help reduce that window.  (Checking file sizes should also,
consider doing that separately.)

* configure.in: Check struct stat for fields st_mtimensec,
st_mtimespec.tv_nsec, and st_mtim.tv_usec.
* prof_file.c (profile_update_file_data): If one of them is found, use it as
the fractional part of the timestamp.  Do re-read the file if the fractional
parts don't match.
* prof_int.h (struct _prf_data_t): Add new field frac_ts.

ticket: new
status: open

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

19 years ago * sn2princ.c (krb5_sname_to_principal):
Jeffrey Altman [Sun, 6 Mar 2005 00:18:30 +0000 (00:18 +0000)]
   * sn2princ.c (krb5_sname_to_principal):
     conditionalize the use of reverse dns lookups.  The default
     is to use the existing behavior.  rdns can be disabled by
     specifying [libdefaults] rdns=false

ticket: new
tags: pullup

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

19 years agoI think the hpux change here should prevent it from overriding the
Ken Raeburn [Sat, 5 Mar 2005 00:12:44 +0000 (00:12 +0000)]
I think the hpux change here should prevent it from overriding the
user-specified options, but still add in the necessary flags.

* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Expand on error message if failing.
Substitute THREAD_SUPPORT -> 0 or 1 in makefiles.  For HP-UX, set
PTHREAD_CFLAGS, not CFLAGS.

ticket: 2929
status: open

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

19 years ago* asn1_encode.c (asn1_encode_generaltime): If gmtime_r returns int instead of
Ken Raeburn [Fri, 4 Mar 2005 23:53:54 +0000 (23:53 +0000)]
* asn1_encode.c (asn1_encode_generaltime): If gmtime_r returns int instead of
pointer, do the appropriate error checking.

ticket: 2953
target_version: 1.4.1
tags: pullup

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

19 years agohpux10 has gmtime_r with wrong return type, breaking asn.1 encoder
Ken Raeburn [Fri, 4 Mar 2005 23:50:45 +0000 (23:50 +0000)]
hpux10 has gmtime_r with wrong return type, breaking asn.1 encoder

The hpux10 gmtime_r returns int (0 means success), whereas the POSIX
gmtime_r returns a pointer (NULL means failure).

* configure.in: Check return type of gmtime_r, and define GMTIME_R_RETURNS_INT
if it returns int.  If the return type can't be determined, pretend the
function isn't there.

ticket: new
status: open

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

19 years ago* build.texinfo (HPUX): Update with current state of shared library and thread
Ken Raeburn [Fri, 4 Mar 2005 02:06:39 +0000 (02:06 +0000)]
* build.texinfo (HPUX): Update with current state of shared library and thread
support.

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

19 years agoignore more targets and byproducts
Ken Raeburn [Fri, 4 Mar 2005 02:05:42 +0000 (02:05 +0000)]
ignore more targets and byproducts

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

19 years agobuild user-guide.pdf too
Ken Raeburn [Fri, 4 Mar 2005 02:04:12 +0000 (02:04 +0000)]
build user-guide.pdf too

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

19 years agoBuild/delete PDF files
Ken Raeburn [Fri, 4 Mar 2005 02:01:55 +0000 (02:01 +0000)]
Build/delete PDF files

* Makefile (PSPDF): New variable.
(admin-guide.pdf, install-guide.pdf): New targets.
(clean-final): Delete PDF files.

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

19 years agoprofile_clear_relation doesn't work, iterator still sees deleted nodes
Ken Raeburn [Fri, 4 Mar 2005 00:05:08 +0000 (00:05 +0000)]
profile_clear_relation doesn't work, iterator still sees deleted nodes

The "deleted" flag was being checked when writing out the file, but
not when iterating through using the profile handle being used to do
the deletions.

* prof_tree.c (profile_node_iterator): After checking skip_num counter, also
skip over deleted nodes.
* prof_test1 (test3): New proc.
(top level): Run it.

ticket: new
target_version: 1.4.1

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

19 years agotime-delta parser doesn't work on HP-UX 10
Ken Raeburn [Thu, 3 Mar 2005 23:25:32 +0000 (23:25 +0000)]
time-delta parser doesn't work on HP-UX 10

A build on Lenny's machine (built with gcc 2.7, thread support disabled, static
libraries only) is failing tests because the HP header files define "WS" as a
macro that expands to 2, while the delta-t grammar uses "WS" as the name of a
terminal symbol (which under bison turns into a C macro).

Renaming the terminal in the grammar (and custom lexer) fixes the problem.

* x-deltat.y (tok_WS): Renamed terminal from "WS", which conflicts with HP-UX
10 header files.  Updated all productions.
(mylex): Updated.
* Makefile.in ($(srcdir)/deltat.c): Enable dependencies in maintainer mode.
* deltat.c: Updated.

ticket: new
target_version: 1.4.1

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

19 years agopossible profile null pointer deref in threaded app
Ken Raeburn [Wed, 23 Feb 2005 22:47:14 +0000 (22:47 +0000)]
possible profile null pointer deref in threaded app

There seems to be a problem with a null pointer popping up when
profile_node_iterator reads ...->data->root to start walking through the
contents.  Don't have a lot of details, but I've got some patches that might
tighten things up a little.

* prof_tree.c (profile_node_iterator): Check that the root node pointer is not
null; raise assertion failure if it is.

* prof_int.h: Include k5-platform.h.
(struct _prf_data_t): Reorder fields, and insert some padding.

* prof_file.c (scan_shared_trees_locked): Check that the "root" field isn't
null.
(profile_open_file): Update the in-memory file contents after updating the
refcount instead of before.
(profile_update_file_data): If the root node in the file data is null, always
do the update.  Check that it's not null before returning a success
indication.
(profile_dereference_data_locked): Scan linked list of file data objects for
sanity check, before and after.
(profile_dereference_data_locked): Don't do it here.

ticket: new
status: open

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