summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in (SHLIB_DIRS, SHLIB_EXPLIBS, SHLIB_EXPDEPLIBS): Set to depend onKen Raeburn2004-06-153-2/+12
| | | | | | | | the new support library. (SHLIB_LIBS): Don't define. * configure.in: Use BUILD_LIBRARY_WITH_DEPS instead of the no-deps version. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16447 dc483132-0cff-0310-8789-dd5450dbe970
* Updated to split libraries and clients into separate build systems. Note; ↵Alexandra Ellwood2004-06-141-3420/+4605
| | | | | | this is not aware of build changes on the trunk git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16445 dc483132-0cff-0310-8789-dd5450dbe970
* * libkrb5support.exports: Drop krb5int_foreach_localaddrKen Raeburn2004-06-142-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16444 dc483132-0cff-0310-8789-dd5450dbe970
* Modified Header Generation target so it runs autoconf and builds the ↵Alexandra Ellwood2004-06-143-61/+86
| | | | | | autogenerated headers for the split libraries and clients build systems git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16441 dc483132-0cff-0310-8789-dd5450dbe970
* * init_sec_context.c (krb5_gss_init_sec_context): Fix pointerTom Yu2004-06-142-1/+7
| | | | | | | assignment when retrieving k5_context from existing context_handle. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16440 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h (_AIX && _THREAD_SAFE): Undefine _THREAD_SAFEKen Raeburn2004-06-122-0/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16439 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (include/generated.stmp): New intermediate target file, toKen Raeburn2004-06-123-5/+18
| | | | | | | | | | prevent repeated generation of unchanging header files. (include/config.h, include/db-config.h): Depend on it. ($(srcdir)/include/autoconf.stmp, $(srcdir)/include/config.h.in): Likewise. (clean-includes): Delete the new intermediate target files. * configure.in: Generate include/generated.stmp when config.status is run. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16438 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (gssapi_krb5.h): Add Windows version of generation ruleKen Raeburn2004-06-112-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16432 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_encode.c (asn1_encode_generaltime): Fix memcpy argument to actuallyKen Raeburn2004-06-113-12/+24
| | | | | | | | | | | | be a pointer. (asn1_encode_enumerated): Drop "const" from scalar argument type. * asn1_encode.h (asn1_encode_integer, asn1_encode_enumerated, asn1_encode_unsigned_integer, asn1_encode_octetstring, asn1_encode_charstring, asn1_encode_printablestring, asn1_encode_ia5string, asn1_encode_generaltime, asn1_encode_generalstring): Drop "const" from scalar argument types. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16431 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (krb5/gssapi_krb5.h): Depend on recursion ruleKen Raeburn2004-06-102-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16429 dc483132-0cff-0310-8789-dd5450dbe970
* Install gssapi_krb5.h from build dir not srcdirSam Hartman2004-06-102-1/+4
| | | | | | | ticket: 2587 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16428 dc483132-0cff-0310-8789-dd5450dbe970
* If channel bindings are supplied to server require them to be matchedSam Hartman2004-06-092-15/+11
| | | | | | | | | | | | | | | | | | Based on discussion on kerberos@mit.edu, the decision to allow null channel bindings from a client to match even when server channel bindings are supplied is flawed. This decision assumes that we cannot get server implementations to change even though we are able to deploy a new Kerberos implementation on the server. In practice the server implementations in question have actually changed and so the only part of revision 1.54 of accept_sec_context.c we actually need is the code to ignore channel bindings if null channel bindings are passed into the server. Thus the change to allow null channel bindings from the client to match against any channel bindings on the server is backed out. Ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16427 dc483132-0cff-0310-8789-dd5450dbe970
* ugh. revert last changeKen Raeburn2004-06-092-6/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16426 dc483132-0cff-0310-8789-dd5450dbe970
* * sendto_kdc.c (krb5int_sendtokdc_debug_handler) [!DEBUG]: Define as a macro,Ken Raeburn2004-06-092-1/+6
| | | | | | not a variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16425 dc483132-0cff-0310-8789-dd5450dbe970
* Run make dependSam Hartman2004-06-086-17/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16424 dc483132-0cff-0310-8789-dd5450dbe970
* Patch from kwc@citi.umich.edu to supportSam Hartman2004-06-0815-116/+803
| | | | | | | | | | | | gss_krb5_export_lucid_sec_context and other facilities for NFSv4 implementations. In order to apply this patch gss_krb5.h needs to be auto-generated so we can expose a 64-bit type for sequence numbers. Ticket: 2587 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16423 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(srcdir)/krb5/autoconf.stmp): Always use --include, don'tKen Raeburn2004-06-082-1/+8
| | | | | | | try --localdir. (all-recurse): Depend on krb5/autoconf.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16422 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(srcdir)/include/config.h.in): Always use --include, never tryKen Raeburn2004-06-082-1/+6
| | | | | | --localdir. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16421 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (CONFIG_RULES): Don't set AUTOCONF, AUTOCONFFLAGS, AUTOHEADER,Ken Raeburn2004-06-082-24/+5
| | | | | | AUTOHEADERFLAGS, AUTOCONFINCFLAGS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16420 dc483132-0cff-0310-8789-dd5450dbe970
* * pre.in (AUTOCONF, AUTOHEADER): Always set to autoconf and autoheaderKen Raeburn2004-06-083-9/+14
| | | | | | | | | | respectively. (AUTOCONFFLAGS, AUTOHEADERFLAGS): Always set to empty. * post.in (Makefile): Always run autoconf with --include, don't bother with --localdir any more. Don't delete autom4te.cache here. (clean-unix): Delete autom4te.cache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16419 dc483132-0cff-0310-8789-dd5450dbe970
* * shlib.conf (*-*-darwin*, *-*-rhapsody*): Add -Wl,-search_paths_first toKen Raeburn2004-06-082-0/+6
| | | | | | linker flags. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16418 dc483132-0cff-0310-8789-dd5450dbe970
* * kpasswd.c (get_name_from_passwd_file): Do not cast return fromEzra Peisach2004-06-073-1/+11
| | | | | | | | | getuid() to int as argument to getpwuid. * ksetpwd.c: Include time.h for time() prototype. (main): Return 0 on success. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16417 dc483132-0cff-0310-8789-dd5450dbe970
* * network.c (paddr): Use unsigned int for length.Ezra Peisach2004-06-072-5/+14
| | | | | | | | | | (kdc_conn_type): Declare CONN_ enumerated types in connection as distinct type. (add_fd): Declare as taking enum type instead of simply integer. Prevents assignment of interger to an enum. (process_tcp_connection): Remove variable assigned to but never used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16416 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c (yarrow_str_error): Now constKen Raeburn2004-06-042-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16415 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_encode.c (asn1_encode_generaltime): Use gmtime_r if availableKen Raeburn2004-06-042-3/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16414 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c (krb5_string_to_timestamp): Use localtime_r if available.Ken Raeburn2004-06-042-2/+21
| | | | | | (krb5_timestamp_to_string, krb5_timestamp_to_sfstring): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16413 dc483132-0cff-0310-8789-dd5450dbe970
* * parse.c (krb5_parse_name): Use assert and abort, not exitKen Raeburn2004-06-042-5/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16412 dc483132-0cff-0310-8789-dd5450dbe970
* Change all uses of LIB in UNIX makefiles to LIBBASE, for better WindowsKen Raeburn2004-06-0440-85/+164
| | | | | | | | | compatibility. (Windows nmake exports make variables into the environment, and LIB is treated by the Windows linker as a search path for libraries, thus breaking the linking on Windows of anything needing libraries from the search path in directories where we build libraries on UNIX.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16411 dc483132-0cff-0310-8789-dd5450dbe970
* OopsKen Raeburn2004-06-042-1/+9
| | | | | | | * srv_rcache.c (krb5_get_server_rcache): Don't forget to actually include the cache type in the cache name, after looking it up. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16410 dc483132-0cff-0310-8789-dd5450dbe970
* * kuserok.c (krb5_kuserok): Handle draft POSIX versions of getpwnam_rKen Raeburn2004-06-042-2/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16409 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_file.c (profile_open_file): Handle earlier (draft POSIX) specificationsKen Raeburn2004-06-042-4/+13
| | | | | | of getpwuid_r. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16408 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check number of arguments to getpwnam_r and getpwuid_r andKen Raeburn2004-06-042-0/+33
| | | | | | define some new macros if they're the four-argument draft POSIX versions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16407 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for getpwnam_r, gmtime_r, and localtime_rKen Raeburn2004-06-042-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16406 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for various _r functions needed for thread safety. IfKen Raeburn2004-06-042-0/+28
| | | | | | enable-thread-support is specified, complain about any that aren't found. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16405 dc483132-0cff-0310-8789-dd5450dbe970
* Oops. Fixes last night's test failures in last night's build..Ken Raeburn2004-06-032-0/+6
| | | | | | | * com_err.c (com_err_va): In success case, don't then fall through into error case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16402 dc483132-0cff-0310-8789-dd5450dbe970
* Closer to thread-safe..Ken Raeburn2004-06-033-1/+17
| | | | | | | | * configure.in: Check for getpwuid_r. * prof_file.c (profile_open_file) [HAVE_PWD_H && HAVE_GETPWUID_R]: Use getpwuid_r if available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16395 dc483132-0cff-0310-8789-dd5450dbe970
* The com_err library is now probably as thread-safe as it's going to get, onKen Raeburn2004-06-034-8/+74
| | | | | | | | | | | | | | | | | UNIX; Windows still needs work.... * com_err.c: Include stdlib.h. (com_err_hook_lock): New mutex. (com_err_lock_hook_handle): New function. (com_err_va, set_com_err_hook, reset_com_err_hook): Call com_err_finish_init, and grab the lock. * error_message.c: Don't include k5-thread.h. (com_err_finish_init): New function. (com_err_initialize): Initialize the new mutex. * error_table.h: Include k5-thread.h. (com_err_hook_lock, com_err_finish_init): Declare. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16394 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-thread.h: Error out at compile time if thread support is enabled but theKen Raeburn2004-06-022-0/+25
| | | | | | | | thread system isn't pthreads. (This is after the code disabling thread support for non-pthreads systems, so it's a placeholder for now that should never get invoked.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16393 dc483132-0cff-0310-8789-dd5450dbe970
* * prng.c (init_once): Variable deleted.Ken Raeburn2004-06-022-9/+13
| | | | | | | (krb5_c_random_add_entropy): Do the initialization once, using the yarrow_lock mutex instead of k5_once to protect it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16392 dc483132-0cff-0310-8789-dd5450dbe970
* * disp_com_err_status.c (init_et): Variable deleted.Ken Raeburn2004-06-022-5/+7
| | | | | | | (g_display_com_err_status): Don't call initialize_ggss_error_table conditionally; instead, always call gssint_initialize_library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16391 dc483132-0cff-0310-8789-dd5450dbe970
* * gss_libinit.c (gssint_lib_init): Initialize error tables here.Ken Raeburn2004-06-022-28/+18
| | | | | | | | | | (gssint_initialize_library): Don't do it directly here. Make sure gssint_lib_init has been called, and return the status. (gssint_lib_fini): Remove error tables here. (gssint_cleanup_library): Function deleted. (initialized): Variable deleted. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16390 dc483132-0cff-0310-8789-dd5450dbe970
* Oops. Add and remove k524 error table tooKen Raeburn2004-06-022-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16389 dc483132-0cff-0310-8789-dd5450dbe970
* Add/remove error tables in library initialization/termination, not per context.Ken Raeburn2004-06-026-23/+28
| | | | | | | | | | | | | | Use only one library initialization scheme, and install the error tables in only one place. * krb5_libinit.c (initialized): Variable deleted, all references removed. (krb5int_lib_init): Initialize error tables here. (krb5int_initialize_library): Don't do it here. * error_tables/Makefile.in (STLIBOBJS, OBJS, SRCS): Drop init_ets code. * krb/init_ctx.c (init_common): Don't call krb5_init_ets. (krb5_free_context): Don't call krb5_free_ets. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16388 dc483132-0cff-0310-8789-dd5450dbe970
* * srv_rcache.c (krb5_get_server_rcache): Use krb5_rc_resolve_full instead ofKen Raeburn2004-06-022-13/+13
| | | | | | constructing an rcache object locally. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16387 dc483132-0cff-0310-8789-dd5450dbe970
* Move definitions of struct krb5_rc_st, struct _krb5_rc_ops, krb5_rc_ops, andKen Raeburn2004-06-028-39/+56
| | | | | | | declarations of krb5_rc_register_type, krb5_rc_dfl_ops from k5-int.h to rc-int.h. Include rc-int.h in the krb5/rcache files that need it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16386 dc483132-0cff-0310-8789-dd5450dbe970
* fix missing braces in an_to_ln.c security patchTom Yu2004-06-022-1/+7
| | | | | | | | | | | | | * an_to_ln.c (do_replacement): Patch from Bill Dodd to fix missing braces in previous security patch. ticket: new tags: pullup target_version: 1.3.4 version_reported: 1.3.4 component: krb5-libs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16384 dc483132-0cff-0310-8789-dd5450dbe970
* fix buffer overflow in an_to_ln.cTom Yu2004-06-012-4/+48
| | | | | | | | | | | | | | | * an_to_ln.c (rule_an_to_ln): Fix buffer overflow when parsing principal names into components. (do_replacement): likewise (aname_replacer): Support error return from do_replacement ticket: new version_reported: 1.3.3 target_version: 1.3.4 tags: pullup component: krb5-libs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16381 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.h, keytab.c: Remove inclusion of k5-int.hEzra Peisach2004-05-313-2/+4
| | | | | | Nothing internal is referenced - krb5.h is sufficient. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16380 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c (terminated): New variable.Ken Raeburn2004-05-312-0/+14
| | | | | | | (com_err_terminate): Set it. (remove_error_table): Check it, warn and abort if set. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16379 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_GCC_ATTRS): On AIX 4, mark the destructor attribute asKen Raeburn2004-05-302-0/+20
| | | | | | | always not working, until we can construct a good test for the order of destructors in the multiple shared library case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16378 dc483132-0cff-0310-8789-dd5450dbe970