summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
...
* autoconf 2.60 compatibilityKen Raeburn2006-06-284-8/+8
| | | | | | | | | | | Change all file substitutions so that @-patterns start at the beginning of their lines, as now required by autoconf 2.60 (released Monday). ticket: new target_version: 1.5 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18249 dc483132-0cff-0310-8789-dd5450dbe970
* fix plugin.c to compile on WindowsJeffrey Altman2006-06-281-3/+3
| | | | | | | | | | plugins.c: Move a brace so that the Windows case falls within the conditional ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18248 dc483132-0cff-0310-8789-dd5450dbe970
* allow multiple calls to krb5_get_error_message to retrieve messageKen Raeburn2006-06-281-7/+15
| | | | | | | | | | | | | (krb5int_get_error): Don't discard old message if the error codes don't match. Try a little harder not to keep messages in the scratch buffer. Return a copy of the message, or "out of memory" in the scratch buffer. (krb5int_vset_error): Try a little harder not to keep messages in the scratch buffer. ticket: new target_version: 1.5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18246 dc483132-0cff-0310-8789-dd5450dbe970
* mkrel should only generate doc/CHANGES for checkoutsTom Yu2006-06-271-1/+3
| | | | | | | | | | | * src/util/mkrel: Only write doc/CHANGES if doing a checkout. This makes nightly snapshots saner. ticket: new tags: pullup target_version: 1.5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18243 dc483132-0cff-0310-8789-dd5450dbe970
* write svn log output when building releaseTom Yu2006-06-271-0/+1
| | | | | | | | | | * src/util/mkrel: Write output of svn log -v to doc/CHANGES. ticket: new target_version: 1.5 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18235 dc483132-0cff-0310-8789-dd5450dbe970
* Fix krb5_get_profile to create a new profile duplicating the list ofKen Raeburn2006-06-242-0/+35
| | | | | | | | | | | | | | | | files from the one in the provided context, instead of constructing and checking the file list from scratch. Uses a new function in the profile library, not put into the public API yet. * util/profile/prof_init.c (profile_copy): New function. * util/profile/prof_int.h (profile_copy): Declare it. * lib/krb5/os/Makefile.in (LOCALINCLUDES): Look in the profile source dir. * lib/krb5/os/init_os_ctx.c (krb5_get_profile): Replace all the previous code with a call to profile_copy. ticket: 3925 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18209 dc483132-0cff-0310-8789-dd5450dbe970
* * src/util/mkrel: Edit patchlevel.h before running reconfTom Yu2006-06-221-16/+16
| | | | | | | ticket: 3922 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18204 dc483132-0cff-0310-8789-dd5450dbe970
* * src/util/support/plugins.c (krb5int_open_plugin): Use RTLD_LOCALTom Yu2006-06-221-1/+6
| | | | | | | | | instead of RTLD_GLOBAL. Use RTLD_GROUP if available. ticket: 3909 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18192 dc483132-0cff-0310-8789-dd5450dbe970
* *sigh*Ken Raeburn2006-06-211-3/+3
| | | | | | | | Stupid typo in last change. ticket: 2759 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18184 dc483132-0cff-0310-8789-dd5450dbe970
* (GET_HOST_BY_NAME, GET_HOST_BY_ADDR) [GETHOSTBYNAME_RETURNS_INT]: TestKen Raeburn2006-06-211-9/+11
| | | | | | | | | | | the output hostent pointer as an additional way of checking for errors. Original patch from Nalin Dahyabhai, needed some tweaking to fit in current sources, especially as updated in ticket 3911. ticket: 2759 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18183 dc483132-0cff-0310-8789-dd5450dbe970
* Revert part of previous changes: Move temporary values that don't needKen Raeburn2006-06-211-18/+23
| | | | | | | | longer storage duration, like error codes, back into GET_*_BY_* macros. ticket: 3911 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18182 dc483132-0cff-0310-8789-dd5450dbe970
* Revert an untested change that wasn't supposed to go into this ticketKen Raeburn2006-06-201-1/+1
| | | | | | ticket: 18180 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18181 dc483132-0cff-0310-8789-dd5450dbe970
* getaddrinfo code uses vars outside of storage durationKen Raeburn2006-06-202-83/+94
| | | | | | | | | | | | | | | The calls to gethostbyname_r and friends were wrapped in macros that declared automatic variables for the auxiliary storage needed, but the pointers returned by the functions would be used outside of that scope, when the storage would no longer be valid. Changed the macro interfaces to define new types for the auxiliary storage, and add a new argument to the macros referring to that storage. Changed call sites accordingly. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18180 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Set and substitute SUPPORTLIB_MAJOR based on operating system.Ken Raeburn2006-06-151-2/+2
| | | | | | | * util/support/Makefile.in (LIBMAJOR): Use it. (LIBMINOR): Bump. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18152 dc483132-0cff-0310-8789-dd5450dbe970
* Allow whitespace in front of comments. Patch from Jeremie KoenigRuss Allbery2006-06-121-3/+3
| | | | | | | Ticket: 1988 Version_Reported: 1.3.6 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18118 dc483132-0cff-0310-8789-dd5450dbe970
* Missed a reference to + sizeof() vs * sizeof(). Pointed out byEzra Peisach2006-06-011-1/+1
| | | | | | | | | william fiveash. ticket: 3825 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18071 dc483132-0cff-0310-8789-dd5450dbe970
* krb5int_get_plugin_dir_data() uses + instead of * in reallocEzra Peisach2006-06-011-1/+1
| | | | | | | | | | | | | | | | In line 570, in reallocating the plugin tree - the memory allocated is (count + 1) + sizeof(*p) instead of (count +1 ) * sizeof(*p) Detected while running the krb5kdc under valgrind with memcheck. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18070 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Set and substitute KSU_LIBS, SETENVOBJ, DO_TCL. GenerateKen Raeburn2006-05-184-49/+4
| | | | | | | | | makefiles for util/et, util/profile, lib/kdb, clients and those clients subdirectories built on UNIX, rather than running configure there. Deleted configure.in scripts for those directories, and changed Makefile.in definitions of thisconfigdir and mydir. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18018 dc483132-0cff-0310-8789-dd5450dbe970
* Don't look for pthread_mutexattr_setrobust_npKen Raeburn2006-05-161-5/+0
| | | | | | | | | | Apparently Red Hat's Fedora Core 5 defines it but doesn't declare it, so we'd have to declare it before testing the address. While it was once useful for checking whether the pthread code had been loaded, I think the other tests done now are more effective and this isn't needed any more. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18012 dc483132-0cff-0310-8789-dd5450dbe970
* vsnprintf not present on windowsJeffrey Altman2006-05-091-0/+6
| | | | | | | | | | vsnprintf is not present on Windows. Microsoft provides the _vsnprintf form instead. Add a macro to allow this file to compile. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17993 dc483132-0cff-0310-8789-dd5450dbe970
* plugins support requires a Windows equivalent to opendir and friendsJeffrey Altman2006-05-091-1/+6
| | | | | | | | | | | | | This patch simply allows krb5 to build once again on Windows. Windows does not have opendir() and friends. Instead Win32 API functions must be used as described in http://msdn.microsoft.com/library/en-us/dnucmg/html/UCMGch09.asp ticket: new status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17992 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (krb5int_pthread_loaded): Supply dummy version for !ENABLE_THREADSKen Raeburn2006-05-091-0/+5
| | | | | | | | case. ticket: 3426 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17990 dc483132-0cff-0310-8789-dd5450dbe970
* * plugins.c (krb5int_get_plugin_filenames): Make extention array static and ↵Ken Raeburn2006-05-051-1/+1
| | | | | | const git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17981 dc483132-0cff-0310-8789-dd5450dbe970
* * plugins.c (krb5int_get_plugin_filenames): Avoid shadowing local variable namesKen Raeburn2006-05-051-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17980 dc483132-0cff-0310-8789-dd5450dbe970
* * plugins.c (FILEEXTS): No trailing semicolonKen Raeburn2006-05-051-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17979 dc483132-0cff-0310-8789-dd5450dbe970
* Export new function namesAlexandra Ellwood2006-05-041-2/+2
| | | | | | ticket: 3716 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17976 dc483132-0cff-0310-8789-dd5450dbe970
* Changed to krb5int_open_plugin_dirs/krb5int_close_plugin_dirs whichAlexandra Ellwood2006-05-041-68/+203
| | | | | | | | | | | | | takes a list of filebases and directories rather than a list of full paths so the caller doesn't have to generate the possibilities themselves. krb5int_open_plugin_dirs will append the possible suffixes for that platform (including no suffix in case there already is one on the file base). Modified the kdb and locate kdc interfaces to use the new API. ticket: 3716 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17975 dc483132-0cff-0310-8789-dd5450dbe970
* Updated comments to explain how the CFBundles get unloaded.Alexandra Ellwood2006-04-251-1/+2
| | | | | | (And not to call CFBundleUnloadExecutable which is refcounted.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17962 dc483132-0cff-0310-8789-dd5450dbe970
* Update internal plugin interface to add an errinfo structure to "open"Ken Raeburn2006-04-251-32/+38
| | | | | | | and "get" routines, so that more detailed error information (e.g., from dlerror()) may be returned to the caller. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17960 dc483132-0cff-0310-8789-dd5450dbe970
* Don't define DEBUG; it prints debug messages that cause test suite failuresKen Raeburn2006-04-251-2/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17958 dc483132-0cff-0310-8789-dd5450dbe970
* Tweak configure script generation to check that all symbols producedKen Raeburn2006-04-251-0/+33
| | | | | | | | | | | | | | | via AC_DEFINE are also present in the applicable configure-generated header file, and error out otherwise. Currently doesn't apply in appl and test trees. * util/check-ac-syms: New script. * config/post.in (.acsyms_okay): New target; runs check-ac-syms, unless we're in the appl or tests trees. (configure): Depend on .acsyms_okay. * config/pre.in (AUTOCONF_HEADER): New variable. * plugins/kdb/db2/libdb2/Makefile.in (AUTOCONF_HEADER): New variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17955 dc483132-0cff-0310-8789-dd5450dbe970
* Added CoreFoundation bundle plugin supportAlexandra Ellwood2006-04-241-208/+332
| | | | | | | | | | | | | Added CoreFoundation bundle plugin support to support library bundle plugin code. Also modified plugin types so they allocate a list of pointers rather than a list of structs so that we can reuse the code that generates the pointer types. (Basically now krb5int_open_plugin_dir() can call krb5int_open_plugin() rather than doing nearly the same thing.) ticket: new target_version: 1.5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17950 dc483132-0cff-0310-8789-dd5450dbe970
* Fix memory leak. closedir() was never being called after successful opendir()Ezra Peisach2006-04-201-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17946 dc483132-0cff-0310-8789-dd5450dbe970
* * errors.c (krb5int_get_error): Try strerror_r if available before strerror.Ken Raeburn2006-04-192-2/+29
| | | | | | | | | | | * plugins.c (ERRSTR): New macro, tries strerror_r and uses strerror only if it fails or isn't available. (krb5int_open_plugin_dir): Use it. ticket: 3620 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17944 dc483132-0cff-0310-8789-dd5450dbe970
* * error_table.h (ET_EBUFSIZ): Increase to 1k.Ken Raeburn2006-04-182-42/+39
| | | | | | | | | | | | * error_message.c (get_thread_buffer): New function, split out from error_message. (error_message): Call it. Also try strerror_r with the per-thread buffer, if both are available, before trying strerror. ticket: 3620 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17942 dc483132-0cff-0310-8789-dd5450dbe970
* Compute dependencies for profile_tcl.oKen Raeburn2006-04-151-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17931 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (profile_tcl): Link with MLIBS instead of DEPLIBS and LIBSKen Raeburn2006-04-151-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17930 dc483132-0cff-0310-8789-dd5450dbe970
* Move gmt_mktime.c from lib/krb5/os to util/support, and rename the function.Ken Raeburn2006-04-143-0/+136
| | | | | | | Stop exporting gmt_mktime from libkrb5, and export krb5int_gmt_mktime from libkrb5support. Updated the one caller, asn1_decode.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17921 dc483132-0cff-0310-8789-dd5450dbe970
* Remove ChangeLog files from the source tree. From now on, theSam Hartman2006-04-119-3931/+0
| | | | | | | subversion commit log entry needs to include information that would have been in the changelog. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17893 dc483132-0cff-0310-8789-dd5450dbe970
* * Sanitize: RemovedKen Raeburn2006-04-112-418/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17889 dc483132-0cff-0310-8789-dd5450dbe970
* Remove .Sanitize and .rconf files, no longer usedKen Raeburn2006-04-116-310/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17888 dc483132-0cff-0310-8789-dd5450dbe970
* Move pty library from util/pty to appl/libpty; update Makefile.in andKen Raeburn2006-04-1124-4433/+6
| | | | | | configure.in files accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17887 dc483132-0cff-0310-8789-dd5450dbe970
* Add prerequisites for some header checks to avoid "present but cannotTom Yu2006-04-052-1/+13
| | | | | | be compiled" warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17856 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(srcdir)/profile_tcl.c): Don't invoke swig automaticallyKen Raeburn2006-04-042-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17841 dc483132-0cff-0310-8789-dd5450dbe970
* more DEFS=Ken Raeburn2006-04-042-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17839 dc483132-0cff-0310-8789-dd5450dbe970
* set DEFS empty in more placesKen Raeburn2006-04-046-0/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17838 dc483132-0cff-0310-8789-dd5450dbe970
* include autoconf.h in a few more placesKen Raeburn2006-04-032-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17835 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Always provide three arguments to AC_DEFINEKen Raeburn2006-03-312-16/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17820 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_int.h (SIZEOF_INT, SIZEOF_SHORT, SIZEOF_LONG)[_WIN32]: Don't defineKen Raeburn2006-03-314-19/+17
| | | | | | | | | * configure.in: Don't test sizes of types. * prof_init.c: Include stdint.h and inttypes.h if available. (prof_int32): Always define as int32_t. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17815 dc483132-0cff-0310-8789-dd5450dbe970
* make depend, now with dependency sortingKen Raeburn2006-03-315-128/+126
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17811 dc483132-0cff-0310-8789-dd5450dbe970