summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * configure.in: Check for endian.h and machine/endian.h.Ken Raeburn2004-05-074-7/+25
| | | | | | | | | | | * aes/aesopt.h (PLATFORM_BYTE_ORDER): Check for _MIPSEB, _MIPSEL. If endian.h or machine/endian.h is available, include it instead of sys/param.h. Don't mess around with multibyte character constants. ticket: 2551 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16323 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for machine/endian.h too.Ken Raeburn2004-05-074-2/+32
| | | | | | | | | | * include/db-int.h: Include machine/endian.h if available. Check for __LITTLE_ENDIAN__ and __BIG_ENDIAN__, _MIPSEB and _MIPSEL. ticket: 2551 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16322 dc483132-0cff-0310-8789-dd5450dbe970
* Patch from Matt Crawford to allow matching on realm in cross-realmSam Hartman2004-05-072-4/+11
| | | | | | | | authentication for krb5_aname_to_lname. Ticket: 957 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16321 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (krb5int_thread_support_fini) [!ENABLE_THREADS]: Provide a dummyKen Raeburn2004-05-062-0/+8
| | | | | | function for now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16320 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.c: DeletedKen Raeburn2004-05-063-12/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16319 dc483132-0cff-0310-8789-dd5450dbe970
* Start using our first bit of per-thread storageKen Raeburn2004-05-063-8/+70
| | | | | | | | | | | | | | | | | * error_message.c (buffer): Static variable deleted. (com_err_initialize): Register cleanup support for com_err thread-specific data key. (error_message): Use a per-thread dynamically-allocated buffer instead of static storage, for the case where an unknown error code is given. If any errors occur allocating or tracking the buffer, return a fixed message. * t_com_err.c: Include stdlib.h. If TEST_THREADS is defined, include pthread.h. (run): Renamed from main, changed signature. (main): New function. Just call run, or if TEST_THREADS is defined, create a thread to call it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16318 dc483132-0cff-0310-8789-dd5450dbe970
* Since the AES code builds, and doesn't do any configure-time byte order checksKen Raeburn2004-05-065-1/+77
| | | | | | | | | | | | | | | | | | | | | | | | that I noticed, something similar ought to work for the DB code. This is the first cut; nightly testing builds should tell us if it's sufficient on most of the platforms we work on. * include/db-int.h: Include stdlib.h, and endian.h if available. (LITTLE_ENDIAN, BIG_ENDIAN, BYTE_ORDER): If not defined, and if versions with one or two leading underscores are defined, define the no-underscore form in terms of the with-underscore one. (DB_BYTE_ORDER): Define by checking LITTLE_ENDIAN, BIG_ENDIAN, and BYTE_ORDER; report an error if that doesn't work. Don't check WORDS_BIGENDIAN. * Makefile.in (all-prerecurse): Make sure headers generated by config.status are up to date. (include/config.h, $(srcdir)/include/config.h.in, include/db-config.h): New rules. * configure.in: Don't check byte order here. Check for endian.h. ticket: 2551 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16317 dc483132-0cff-0310-8789-dd5450dbe970
* * libkrb5.exports: Export krb5int_foreach_localaddr for nowKen Raeburn2004-05-062-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16316 dc483132-0cff-0310-8789-dd5450dbe970
* * libobj.in (OBJS.ST, OBJS.SH, OBJS.PF): Depend on MakefileKen Raeburn2004-05-052-3/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16315 dc483132-0cff-0310-8789-dd5450dbe970
* Rename header file foreachaddr.c to foreachaddr.h, now that it isn'tKen Raeburn2004-05-058-5/+11
| | | | | | mostly static functions to be compiled in. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16314 dc483132-0cff-0310-8789-dd5450dbe970
* build dependenciesKen Raeburn2004-05-051-4/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16313 dc483132-0cff-0310-8789-dd5450dbe970
* * pre.in (SUPPORT_LIBNAME, SUPPORT_DEPLIB, SUPPORT_LIB): New variables.Ken Raeburn2004-05-052-2/+11
| | | | | | (KRB5_BASE_LIBS): Add $(SUPPORT_LIB). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16312 dc483132-0cff-0310-8789-dd5450dbe970
* * localaddr.c: Incorporate foreach_localaddr implementation. Export it asKen Raeburn2004-05-052-1/+792
| | | | | | krb5int_foreach_localaddr. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16311 dc483132-0cff-0310-8789-dd5450dbe970
* * foreachaddr.c: Implementation moved to lib/krb5/os/localaddr.c.Ken Raeburn2004-05-052-759/+17
| | | | | | | (krb5int_foreach_localaddr): Declare. (foreach_localaddr): New macro. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16310 dc483132-0cff-0310-8789-dd5450dbe970
* * foreachaddr.c: Deleted. Code moved to lib/krb5/os/localaddr.c.Ken Raeburn2004-05-053-840/+7
| | | | | | * Makefile.in (SRCS, STLIBOBJS): Updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16309 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Enable dependency support for shared lib.Ken Raeburn2004-05-053-5/+15
| | | | | | | | * Makefile.in (test_et, t_com_err): Depend on, and link against, the new support library. (SHLIB_EXPDEPS, SHLIB_EXPLIBS, SHLIB_RDIRS, SHLIB_DIRS): New variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16308 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPLIBS): Include $(LIBS).Ken Raeburn2004-05-052-2/+4
| | | | | | (SHLIB_RDIRS): Use $(KRB5_LIBDIR), for lack of anything better. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16307 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Include dependency support for shared library buildKen Raeburn2004-05-052-2/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16306 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (k5_key_register, destructors, k5_setspecific) [!ENABLE_THREADS]:Ken Raeburn2004-05-052-3/+7
| | | | | | Update to fit declarations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16305 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LOCAL_SUBDIRS): Build support libraryKen Raeburn2004-05-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16304 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Generate a makefile in util/supportKen Raeburn2004-05-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16303 dc483132-0cff-0310-8789-dd5450dbe970
* exports listKen Raeburn2004-05-052-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16302 dc483132-0cff-0310-8789-dd5450dbe970
* * foreachaddr.c: New file, based on include/foreachaddr.cKen Raeburn2004-05-053-2/+841
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16301 dc483132-0cff-0310-8789-dd5450dbe970
* fix lib name; add fini funcKen Raeburn2004-05-041-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16300 dc483132-0cff-0310-8789-dd5450dbe970
* * New directory.Ken Raeburn2004-05-044-0/+315
| | | | | | | | * Makefile.in: New file. * threads.c: New file. Thread-specific data support. * fake-addrinfo.c: New file. Placeholder. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16299 dc483132-0cff-0310-8789-dd5450dbe970
* Make com_err tests exercise the shared-library supportKen Raeburn2004-05-043-6/+25
| | | | | | | | | | * configure.in: Invoke KRB5_BUILD_PROGRAM and KRB5_RUN_FLAGS. * Makefile.in (PROG_RPATH, PROG_LIBPATH, RUN_SETUP): New variables. (test_et, t_com_err): Use the built library, even if shared. (check-unix): Set up the environment properly to load shared libraries when running the test programs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16298 dc483132-0cff-0310-8789-dd5450dbe970
* * shlib.conf (alpha*-dec-osf*): Do remember to set use_linker_init_option andKen Raeburn2004-05-042-2/+10
| | | | | | | use_linker_fini_option. (mips-sgi-irix*): Set LDCOMBINE_TAIL only if not using gcc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16297 dc483132-0cff-0310-8789-dd5450dbe970
* * rc_dfl.c (krb5_rc_dfl_expunge_locked): Declare before useKen Raeburn2004-05-032-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16296 dc483132-0cff-0310-8789-dd5450dbe970
* Use the new mutex in the replay cache structureKen Raeburn2004-05-013-17/+103
| | | | | | | | | | | | | | | | | | | | | | Rather coarse at the moment: While one thread is blocking waiting for data to be flushed to disk, another thread is unnecessarily prevented from scanning the in-memory data. * rc_base.c (krb5_rc_resolve_type): Initialize the mutex in the replay cache structure. (krb5_rc_default, krb5_rc_resolve_full): Destroy it if creation of the replay cache fails. * rc_dfl.c (krb5_rc_dfl_get_span, krb5_rc_dfl_init): Lock the mutex while operating on the replay cache object. (krb5_rc_dfl_expunge_locked): Renamed from krb5_rc_dfl_expunge and made static. Call krb5_rc_dfl_recover_locked. (krb5_rc_dfl_expunge): New wrapper function, locks the mutex. (krb5_rc_dfl_recover_locked): Renamed from krb5_rc_dfl_recover and made static. Call krb5_rc_dfl_expunge_locked. (krb5_rc_dfl_recover): New wrapper function, locks the mutex. (krb5_rc_dfl_store): Lock the mutex. Call _expunge_locked. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16295 dc483132-0cff-0310-8789-dd5450dbe970
* * prng.c (krb5int_prng_cleanup): Destroy the mutexKen Raeburn2004-05-012-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16294 dc483132-0cff-0310-8789-dd5450dbe970
* Update mutex debug code to be somewhat compatible with multi-threadedKen Raeburn2004-05-012-24/+40
| | | | | | | | | | | | | | | | | execution. It won't be as useful in single-threaded programs for detecting bugs in the mutex handling for now, though. * k5-thread.h (k5_mutex_debug_check_init, k5_mutex_debug_update_loc): New macros. (k5_mutex_debug_lock, k5_mutex_debug_unlock): Use them. (k5_mutex_lock, k5_mutex_unlock) [ENABLE_THREADS && DEBUG_THREADS]: Use them instead of k5_mutex_debug_lock and k5_mutex_debug_unlock. (enum k5_mutex_debug_states): New enum. (K5_MUTEX_DEBUG_LOCKED, K5_MUTEX_DEBUG_UNLOCKED): Change to enumerator values. (k5_mutex_debug_info): Use the enum type. Reorder fields. (K5_MUTEX_DEBUG_INITIALIZER): Update for new field order. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16293 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBINITFUNC, LIBFINIFUNC): New variablesKen Raeburn2004-05-012-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16292 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2004-05-012-143/+174
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16291 dc483132-0cff-0310-8789-dd5450dbe970
* Add a mutex for the shared static storage used by YarrowKen Raeburn2004-05-014-44/+89
| | | | | | | | | | | | | | | | | | | | | | | * crypto_libinit.c (initialized): Variable deleted. (cryptoint_initialize_library, cryptoint_cleanup_library): Use new macros for automatic shared library init/fini functions. (prng_cleanup): Declaration deleted. (krb5int_prng_init, krb5int_prng_cleanup): Declare. (cryptoint_initialize_library): Call krb5int_prng_init. (krb5int_crypto_init): New function, checks that cryptoint_initialize_library was called successfully. (cryptoint_cleanup_library): Call krb5int_prng_cleanup only if the initializer ran. * crypto_libinit.h: Deleted. * prng.c: Include k5-thread.h. (init_once, init_error, yarrow_lock): New variables. (krb5int_prng_init): New function; finish initializing the mutex lock. (do_yarrow_init): New function. (krb5_c_random_add_entropy): Call it once only. Lock the mutex before processing the input. (krb5_c_random_make_octets): Lock the mutex before extracting random bytes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16290 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-int.h: Include k5-thread.h.Ken Raeburn2004-04-302-0/+9
| | | | | | (struct krb5_rc_st): Add a mutex. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16289 dc483132-0cff-0310-8789-dd5450dbe970
* * libk5crypto.exports: Drop the library init/fini functions and the DES tablesKen Raeburn2004-04-302-5/+5
| | | | | | from the export list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16288 dc483132-0cff-0310-8789-dd5450dbe970
* * shlib.conf (alpha*-dec-osf*): Add support for export list, using a temporaryKen Raeburn2004-04-302-4/+14
| | | | | | | file, and init/fini functions. (mips-sgi-irix*): Previous support should not be used with gcc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16287 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (CONFIG_RULES): Substitute EXTRA_FILES into pre.inKen Raeburn2004-04-302-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16286 dc483132-0cff-0310-8789-dd5450dbe970
* * pre.in (EXTRA_FILES): New variable.Ken Raeburn2004-04-303-1/+7
| | | | | | * post.in (clean-unix): Delete extra files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16285 dc483132-0cff-0310-8789-dd5450dbe970
* updated dependenciesKen Raeburn2004-04-291-24/+26
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16284 dc483132-0cff-0310-8789-dd5450dbe970
* * debug.h (test): Macro renamed from "assert".Ken Raeburn2004-04-294-10/+15
| | | | | | * krb5_decode_test.c, krb5_encode_test.c: Callers updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16283 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-platform.h (DELAY_INITIALIZER): Don't define.Ken Raeburn2004-04-292-20/+43
| | | | | | | | | | | | | | (CONSTRUCTOR_ATTR_WORKS, DESTRUCTOR_ATTR_WORKS): Don't define. (USE_LINKER_FINI_OPTION): Don't define. (MAYBE_DUMMY_INIT): New macro, to optionally produce a dummy initializer for the linker to reference in the case where other options indicate we don't want to use it. (MAKE_INIT_FUNCTION): Use it in some versions. Set the exported function name to have a __auxinit suffix. (MAKE_FINI_FUNCTION) [!SHARED]: Declare the function static, and do nothing to try to cause it to get invoked. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16282 dc483132-0cff-0310-8789-dd5450dbe970
* * shlib.conf: Initialize use_linker_init_option and use_linker_fini_option toKen Raeburn2004-04-292-4/+23
| | | | | | | | | | no. (mips-sgi-irix*): Add link-time support for library initialization and finalization. (*-*-solaris*): Likewise, for native compiler. Change "pic" mode to "PIC", libkrb5 seems to need it now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16281 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (CONFIG_RULES): Invoke KRB5_LIB_PARAMS and KRB5_AC_INITFINI.Ken Raeburn2004-04-292-1/+71
| | | | | | | | | (KRB5_AC_INITFINI): New macro. Define delayed-initialization config option, test for gcc constructor/destructor attribute support, and test whether shlib.conf indicates support for link-time options. (KRB5_AC_GCC_ATTRS): Implement. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16280 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c (com_err_terminate): Free heap storage in et_list_dynamicKen Raeburn2004-04-292-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16279 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBINITFUNC, LIBFINIFUNC): New variablesKen Raeburn2004-04-292-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16278 dc483132-0cff-0310-8789-dd5450dbe970
* * libobj.in (.c.so): Add -DSHARED to compile optionsKen Raeburn2004-04-282-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16277 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_BUILD_LIBRARY_WITH_DEPS): Report an error if perl cannot ↵Ken Raeburn2004-04-262-0/+8
| | | | | | be found git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16276 dc483132-0cff-0310-8789-dd5450dbe970
* * lib.in (PARSE_OBJLISTS): New variable.Ken Raeburn2004-04-262-13/+10
| | | | | | (lib$(LIB)$(STLIBEXT), lib$(LIB)$(SHLIBVEXT), lib$(LIB)$(PFLIBEXT)): Use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16275 dc483132-0cff-0310-8789-dd5450dbe970
* * shlib.conf (INIT_FINI_PREP): New variable. Default to a no-op, but let eachKen Raeburn2004-04-262-4/+17
| | | | | | | | platform set setup routines to process initialization and finalization options for the default MAKE_SHLIB_COMMAND value. (case mips-sgi-irix*): Define LDCOMBINE_TAIL to use the library's export list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16274 dc483132-0cff-0310-8789-dd5450dbe970