krb5.git
19 years agodescribe Novell changes
Ken Raeburn [Thu, 21 Jul 2005 19:36:35 +0000 (19:36 +0000)]
describe Novell changes

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

19 years agocleanup
Ken Raeburn [Thu, 21 Jul 2005 00:06:01 +0000 (00:06 +0000)]
cleanup

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

19 years agodescribe Novell changes in this directory
Ken Raeburn [Wed, 20 Jul 2005 23:39:56 +0000 (23:39 +0000)]
describe Novell changes in this directory

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

19 years ago * aclocal.m4 (AC_LIBRARY_NET): Special-case AIX 5.x due to broken
Tom Yu [Wed, 20 Jul 2005 00:13:38 +0000 (00:13 +0000)]
* aclocal.m4 (AC_LIBRARY_NET): Special-case AIX 5.x due to broken
res_ninit(), or more precisely, incorrect size of struct
__res_state.

ticket: 2902
tags: pullup

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

19 years agodoc novell change
Ken Raeburn [Thu, 14 Jul 2005 21:55:50 +0000 (21:55 +0000)]
doc novell change

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

19 years agofix MITKRB5-SA-2005-003 krb5_recvauth double-free
Tom Yu [Tue, 12 Jul 2005 20:07:06 +0000 (20:07 +0000)]
fix MITKRB5-SA-2005-003 krb5_recvauth double-free

* recvauth.c (recvauth_common): Avoid double-free on invalid
version string.  Thanks to Magnus Hagander.  Fix for
MITKRB5-SA-2005-003 [CAN-2005-1689, VU#623332].

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

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

19 years agofix MITKRB5-SA-2005-002 KDC double-free and heap overflow
Tom Yu [Tue, 12 Jul 2005 19:56:56 +0000 (19:56 +0000)]
fix MITKRB5-SA-2005-002 KDC double-free and heap overflow

Fix for MITKRB5-SA-2005-002

* KDC double-free [CAN-2005-1174, VU#259798]
* krb5_unparse_name heap overflow [CAN-2005-1175, VU#885830]

Thanks to Daniel Wachdorf.

ticket: new
flags: pullup
target_version: 1.4.2

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

19 years ago* api.1/lock.exp (lock_test_continue): After exiting the loop, send the process
Ken Raeburn [Fri, 8 Jul 2005 22:13:15 +0000 (22:13 +0000)]
* api.1/lock.exp (lock_test_continue): After exiting the loop, send the process
a signal before waiting for it to die.

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

19 years ago* krb5.conf.proto: Add a bunch of db module info that should be in
Ken Raeburn [Wed, 6 Jul 2005 23:27:12 +0000 (23:27 +0000)]
* krb5.conf.proto: Add a bunch of db module info that should be in
kdc.conf.proto, but is sought here for now.

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

19 years ago* kdb5.c (kdb_get_library_name, kdb_load_library): Change default name to "db2".
Ken Raeburn [Wed, 6 Jul 2005 23:24:29 +0000 (23:24 +0000)]
* kdb5.c (kdb_get_library_name, kdb_load_library): Change default name to "db2".
(kdb_get_library_name): On error reading from the config file, don't just use
the default.
(kdb_load_library): Don't add "lib" prefix on module name.

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

19 years agoRename module to "db2"
Ken Raeburn [Wed, 6 Jul 2005 23:22:18 +0000 (23:22 +0000)]
Rename module to "db2"

* Makefile.in (LIBBASE): Change to db2.
(LIBMAJOR): Change to 0.
(all): Deleted explicit dependency.
(all-unix): Added here, without "lib" prefix.
(clean-unix): Drop clean-liblinks.
* db2_exp.c: (krb5_db_vftabl_db2): Renamed from ..._kdb_db2.
* db2.exports: Rename from libkdb_db2.exports, update for symbol name change.

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

19 years agoDrop "lib" prefix from things intended to be dynamically loaded
Ken Raeburn [Wed, 6 Jul 2005 23:17:21 +0000 (23:17 +0000)]
Drop "lib" prefix from things intended to be dynamically loaded

* lib.in (LIBPREFIX): New variable.
* libnover.in (LIBPREFIX): New variable.
(LIBLIST, $(LIBBASE)$(SHLIBVEXT), $(TOPLIBD)/$(LIBBASE)$(SHLIBEXT), clean-libs,
install-shared): Drop "lib" from generated shared object name.
* pre.in (SHLIB_EXPORT_FILE): Use $(LIBPREFIX).
* shlib.conf: Use $(LIBPREFIX) in LDCOMBINE.

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

19 years agokdb_db2.c change from friday
Ken Raeburn [Wed, 6 Jul 2005 02:28:42 +0000 (02:28 +0000)]
kdb_db2.c change from friday

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

19 years agorename string_to_key.c to arcfour_s2k.c
Ken Raeburn [Sat, 2 Jul 2005 04:36:07 +0000 (04:36 +0000)]
rename string_to_key.c to arcfour_s2k.c

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

19 years agorename arcfour.c to rc4.c
Ken Raeburn [Sat, 2 Jul 2005 04:35:05 +0000 (04:35 +0000)]
rename arcfour.c to rc4.c

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

19 years ago* Makefile.in (INSTALLMKDIRS): Add KRB5_DB_MODULE_DIR
Ken Raeburn [Sat, 2 Jul 2005 03:12:08 +0000 (03:12 +0000)]
* Makefile.in (INSTALLMKDIRS): Add KRB5_DB_MODULE_DIR

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

19 years ago* err_handle.c (krb5_err_key): Variable deleted.
Ken Raeburn [Sat, 2 Jul 2005 03:00:13 +0000 (03:00 +0000)]
* err_handle.c (krb5_err_key): Variable deleted.
(init_err_handling, krb5_set_err, krb5_get_err_string, krb5_clr_error): Use k5_
macros for thread-specific data instead of pthread versions.

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

19 years ago* k5-thread.h (k5_key_t): Add K5_KEY_KDB_ERR_HANDLER and K5_KEY_KADM_CLNT_ERR_HANDLER
Ken Raeburn [Sat, 2 Jul 2005 02:56:07 +0000 (02:56 +0000)]
* k5-thread.h (k5_key_t): Add K5_KEY_KDB_ERR_HANDLER and K5_KEY_KADM_CLNT_ERR_HANDLER

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

19 years ago* Makefile.in (check-unix): Don't run dyntest automatically
Ken Raeburn [Sat, 2 Jul 2005 02:52:01 +0000 (02:52 +0000)]
* Makefile.in (check-unix): Don't run dyntest automatically

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

19 years agodelete functions in '#if 0'
Ken Raeburn [Sat, 2 Jul 2005 01:53:58 +0000 (01:53 +0000)]
delete functions in '#if 0'

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

19 years agowhitespace
Ken Raeburn [Sat, 2 Jul 2005 01:51:57 +0000 (01:51 +0000)]
whitespace

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

19 years agoConvert to ISO C function declaration style.
Ken Raeburn [Sat, 2 Jul 2005 01:51:00 +0000 (01:51 +0000)]
Convert to ISO C function declaration style.
Some whitespace and comment changes.

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

19 years agoreformat
Ken Raeburn [Sat, 2 Jul 2005 01:41:59 +0000 (01:41 +0000)]
reformat

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

19 years ago* Makefile.in (t_kdb, check, clean): Delete t_kdb references
Ken Raeburn [Thu, 30 Jun 2005 00:15:33 +0000 (00:15 +0000)]
* Makefile.in (t_kdb, check, clean): Delete t_kdb references

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

19 years ago* Makefile.in: Use libnover_frag.
Ken Raeburn [Thu, 30 Jun 2005 00:13:36 +0000 (00:13 +0000)]
* Makefile.in: Use libnover_frag.
(all-unix): Don't depend on all-liblinks.
(lib$(LIBBASE)$(SO_EXT)): Rule deleted.
(t_kdb, check, clean): Delete t_kdb references.

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

19 years ago* t_ser.c (ser_data): Don't initialize db serialization code that doesn't exist
Ken Raeburn [Thu, 30 Jun 2005 00:11:07 +0000 (00:11 +0000)]
* t_ser.c (ser_data): Don't initialize db serialization code that doesn't exist
any more.
(ser_kcontext_test): Don't create and destroy databases.

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

19 years ago* osconf.h (DEFAULT_KDB_LIB_PATH): Use @MODULEDIR. Don't use a fixed global
Ken Raeburn [Wed, 29 Jun 2005 23:30:58 +0000 (23:30 +0000)]
* osconf.h (DEFAULT_KDB_LIB_PATH): Use @MODULEDIR.  Don't use a fixed global
directory.

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

19 years ago* Makefile.in (osconf.h): Depend on Makefile. Always display commands executed
Ken Raeburn [Wed, 29 Jun 2005 23:29:38 +0000 (23:29 +0000)]
* Makefile.in (osconf.h): Depend on Makefile.  Always display commands executed
for replace-if-newer sequence.
(PROCESS_REPLACE): Replace @MODULEDIR with $(KRB5_DB_MODULE_DIR).

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

19 years ago* pre.in (KRB5_DB_MODULE_DIR): New variable
Ken Raeburn [Wed, 29 Jun 2005 23:28:06 +0000 (23:28 +0000)]
* pre.in (KRB5_DB_MODULE_DIR): New variable

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

19 years ago* libnover.in (Makefile): Depend on correct makefile fragment.
Ken Raeburn [Wed, 29 Jun 2005 23:27:30 +0000 (23:27 +0000)]
* libnover.in (Makefile): Depend on correct makefile fragment.
(SHLIBVEXT): Fix definition.
(LIBLIST, LIBINSTLIST): Override configured definitions.
(all-liblinks, clean-liblinks): Targets deleted.

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

19 years ago* aclocal.m4 (libnover_frag): Set and substitute
Ken Raeburn [Wed, 29 Jun 2005 19:53:10 +0000 (19:53 +0000)]
* aclocal.m4 (libnover_frag): Set and substitute

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

19 years agoupdate comments
Ken Raeburn [Wed, 29 Jun 2005 19:52:37 +0000 (19:52 +0000)]
update comments

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

19 years ago* libnover.in: New file
Ken Raeburn [Wed, 29 Jun 2005 19:52:26 +0000 (19:52 +0000)]
* libnover.in: New file

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

19 years ago* Makefile.in (LIB): Variable deleted, uses replaced with LIBBASE.
Ken Raeburn [Wed, 29 Jun 2005 19:23:01 +0000 (19:23 +0000)]
* Makefile.in (LIB): Variable deleted, uses replaced with LIBBASE.
(SHLIB_EXPDEPS, SHLIB_EXPLIBS): Add gssrpc library and depedencies.
(lib$(LIBBASE)$(SO_EXT)): Don't explicitly link in the gssrpc library.

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

19 years agoFix build problems on AIX, Tru64
Ken Raeburn [Mon, 27 Jun 2005 23:59:43 +0000 (23:59 +0000)]
Fix build problems on AIX, Tru64

* kdb_db2.c: Don't use C++-style comments.
(krb5_db2_db_get_principal): Don't use variables named "try".

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

19 years ago* Makefile.in (SHLIB_EXPLIBS): Add $(DL_LIB)
Ken Raeburn [Tue, 21 Jun 2005 04:28:20 +0000 (04:28 +0000)]
* Makefile.in (SHLIB_EXPLIBS): Add $(DL_LIB)

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

19 years ago* err_handle.c, kdb5.c: Test ENABLE_THREADS, not just HAVE_PTHREAD_H
Ken Raeburn [Tue, 21 Jun 2005 04:11:25 +0000 (04:11 +0000)]
* err_handle.c, kdb5.c: Test ENABLE_THREADS, not just HAVE_PTHREAD_H

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

19 years agoreformat
Ken Raeburn [Tue, 21 Jun 2005 03:58:43 +0000 (03:58 +0000)]
reformat

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

19 years ago* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Override guessed PTHREAD_CFLAGS with
Ken Raeburn [Tue, 21 Jun 2005 03:14:53 +0000 (03:14 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Override guessed PTHREAD_CFLAGS with
correct value for solaris+gcc.

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

19 years agoUse DL_LIB and THREAD_LINKOPTS instead of explicitly specifying the dl
Ken Raeburn [Tue, 21 Jun 2005 02:54:15 +0000 (02:54 +0000)]
Use DL_LIB and THREAD_LINKOPTS instead of explicitly specifying the dl
and pthread libraries by name.

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

19 years ago* pre.in (THREAD_LINKOPTS): New variable
Ken Raeburn [Tue, 21 Jun 2005 02:46:33 +0000 (02:46 +0000)]
* pre.in (THREAD_LINKOPTS): New variable

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

19 years ago* pre.in (PTHREAD_LIBS, DL_LIB): New variables
Ken Raeburn [Tue, 21 Jun 2005 02:22:14 +0000 (02:22 +0000)]
* pre.in (PTHREAD_LIBS, DL_LIB): New variables

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

19 years ago* aclocal.m4 (WITH_CC): Don't use -pedantic on Linux.
Ken Raeburn [Tue, 21 Jun 2005 02:21:31 +0000 (02:21 +0000)]
* aclocal.m4 (WITH_CC): Don't use -pedantic on Linux.
(KRB5_AC_FIND_DLOPEN): New macro.  Set DL_LIB.
(CONFIG_RULES, AC_KRB5_TCL_TRYOLD): Use it.

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

19 years ago*** empty log message ***
Ken Raeburn [Tue, 21 Jun 2005 02:05:30 +0000 (02:05 +0000)]
*** empty log message ***

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

19 years ago* aclocal.m4 (WITH_CC): Don't use -pedantic on Linux
Ken Raeburn [Tue, 21 Jun 2005 02:04:56 +0000 (02:04 +0000)]
* aclocal.m4 (WITH_CC): Don't use -pedantic on Linux

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

19 years agoNovell Database Abstraction Layer merge.
Ken Raeburn [Tue, 21 Jun 2005 01:36:03 +0000 (01:36 +0000)]
Novell Database Abstraction Layer merge.
Will probably break things.

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

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