Ken Raeburn [Sat, 13 May 2006 06:41:37 +0000 (06:41 +0000)]
* main.c (initialize_realms): Use precise size allocation for dbname= parameter
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18007
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 13 May 2006 06:21:09 +0000 (06:21 +0000)]
Have Tcl script error out if initialization fails
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18006
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 13 May 2006 05:20:22 +0000 (05:20 +0000)]
* configure.in: Don't create a makefile for posix subdir
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18005
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 13 May 2006 05:17:25 +0000 (05:17 +0000)]
* syslog.c: Discard all the non-Windows bits, since we don't build this on
UNIX.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18004
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 13 May 2006 05:15:29 +0000 (05:15 +0000)]
* getuid.c, memmove.c, sscanf.c, strcasecmp.c, strdup.c, strerror.c,
vfprintf.c, vsprintf.c: Remove files we don't compile anywhere.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18003
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 13 May 2006 00:57:26 +0000 (00:57 +0000)]
Use unsigned char rather than u_int8_t in random_string()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18002
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 11 May 2006 00:41:46 +0000 (00:41 +0000)]
* tests/dejagnu/config/default.exp (setup_krb5_conf): Don't add suffix to
library name in generated config file.
* kadmin/testing/proto/krb5.conf.proto: Drop suffix from library name.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17999
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Wed, 10 May 2006 21:48:53 +0000 (21:48 +0000)]
Fixed the krb5_cc_gen_new memory ccache implementation and updated
krb5_verify_init_creds() and rd_and_store_for_creds() to use the
API properly (possible now that it's been fixed).
ticket: 3746
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17997
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Tue, 9 May 2006 22:26:04 +0000 (22:26 +0000)]
vsnprintf not present on windows
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
Jeffrey Altman [Tue, 9 May 2006 21:03:07 +0000 (21:03 +0000)]
plugins support requires a Windows equivalent to opendir and friends
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
Ken Raeburn [Tue, 9 May 2006 20:37:49 +0000 (20:37 +0000)]
* threads.c (krb5int_pthread_loaded): Supply dummy version for !ENABLE_THREADS
case.
ticket: 3426
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17990
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 9 May 2006 19:36:46 +0000 (19:36 +0000)]
* send_tgs.c (krb5_send_tgs): Fix memory allocation size when padata is
provided.
ticket: 3714
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17988
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 9 May 2006 11:31:02 +0000 (11:31 +0000)]
Cleanup a number of cast away from const warnings in gssapi
Change internal token handling and oid handling functions to take a
const style gss_OID. In the krb5 dir remove casting.
This is the start of fixes in this arena.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17987
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 8 May 2006 18:05:47 +0000 (18:05 +0000)]
kdb_load_library(): SGI compiler requires that when initializing arrays
at declaration - only constants be used. [filebases]. Code was introduced with
17975 revision.
ticket: 3716
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17986
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 5 May 2006 03:46:09 +0000 (03:46 +0000)]
* plugins.c (krb5int_get_plugin_filenames): Make extention array static and const
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17981
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 5 May 2006 03:36:05 +0000 (03:36 +0000)]
* plugins.c (krb5int_get_plugin_filenames): Avoid shadowing local variable names
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17980
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 5 May 2006 03:32:54 +0000 (03:32 +0000)]
* plugins.c (FILEEXTS): No trailing semicolon
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17979
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 4 May 2006 18:43:20 +0000 (18:43 +0000)]
need to export kadm5_set_use_password_server
Need to export "kadm5_set_use_password_server" because it is used by
krb5kdc when USE_PASSWORD_SERVER is defined. Since the Mac builds this
way we need it in the export list. Unfortunately export lists don't get
preprocessed. Note that I only added this one function. The rest of the
password server functionality is still conditionalized around
USE_PASSWORD_SERVER.
Hopefully we can rip all this code out when Apple starts using the db plugin
interface for their password server integration.
ticket: new
target_version: 1.5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17977
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 4 May 2006 18:35:01 +0000 (18:35 +0000)]
Export new function names
ticket: 3716
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17976
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 4 May 2006 03:06:33 +0000 (03:06 +0000)]
Changed to krb5int_open_plugin_dirs/krb5int_close_plugin_dirs which
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
Alexandra Ellwood [Thu, 4 May 2006 02:01:17 +0000 (02:01 +0000)]
Removed the unnecessary and incorrect (due to operator precedence) "== MPOOL_INUSE".
The previous code actually ended up checking if MPOOL_DIRTY (0x01) is set.
ticket: new
target_version: 1.5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17974
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 3 May 2006 00:06:23 +0000 (00:06 +0000)]
* post.in (.acsyms_okay): Target deleted.
(configure): Incorporate the check-ac-syms rules here.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17973
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 29 Apr 2006 07:06:34 +0000 (07:06 +0000)]
ipv4+ipv6 messages can trip up KDC replay detection
The replay lookaside cache includes the sending address, but the krb5
library replay cache does not. So, if the same message arrives from
two different source addresses, it is considered a replay by the KDC.
If the client isn't receiving the replies for some reason, and the
client has multiple addresses it uses to contact different addresses
on the KDC (and trying to reach the KDC via both IPv4 and IPv6 is an
obvious such case), this can cause errors to be returned by the KDC.
* replay.c (krb5_kdc_replay_ent): Remove "addrs" field.
(MATCH): Don't check it.
(kdc_check_lookaside, kdc_insert_lookaside): Remove "from" argument.
* kdc_util.h (kdc_check_lookaside, kdc_insert_lookaside): Update decls.
* dispatch.c (dispatch): Update calls.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17970
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 29 Apr 2006 06:59:23 +0000 (06:59 +0000)]
Don't test HAVE_C_STRUCTURE_ASSIGNMENT.
Instead, just assume we do have a working C compiler.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17969
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 27 Apr 2006 22:41:41 +0000 (22:41 +0000)]
(DB2_NAME): New macro, adding .so suffix for now.
(kdb_get_library_name, kdb_load_library): Use it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17965
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 27 Apr 2006 20:11:44 +0000 (20:11 +0000)]
Fix excessive italics in kinit man page;
thanks Stepan Kasal <kasal@ucw.cz>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17964
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Tue, 25 Apr 2006 21:24:33 +0000 (21:24 +0000)]
Updated comments to explain how the CFBundles get unloaded.
(And not to call CFBundleUnloadExecutable which is refcounted.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17962
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 25 Apr 2006 07:21:19 +0000 (07:21 +0000)]
Change kdb plugin code to use the new plugin support instead of
directly calling dlopen and friends. Change the test config files to
refer to "db2.so" instead of "db2".
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17961
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 25 Apr 2006 06:27:07 +0000 (06:27 +0000)]
Update internal plugin interface to add an errinfo structure to "open"
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
Ken Raeburn [Tue, 25 Apr 2006 06:25:35 +0000 (06:25 +0000)]
Protect against multiple inclusion. Don't define macro '_' if already defined
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17959
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 25 Apr 2006 05:15:20 +0000 (05:15 +0000)]
Don't define DEBUG; it prints debug messages that cause test suite failures
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17958
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 25 Apr 2006 05:09:48 +0000 (05:09 +0000)]
Change name of kdb function-table symbol from being derived from the
name of the library file (which may not be acceptable as a C symbol
name anyways) to "kdb_function_table" always.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17957
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 25 Apr 2006 04:32:47 +0000 (04:32 +0000)]
(.acsyms_okay): Fix rules to work better from subdirectories, and skip the
top-level configure script.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17956
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 25 Apr 2006 02:36:31 +0000 (02:36 +0000)]
Tweak configure script generation to check that all symbols produced
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
Ken Raeburn [Tue, 25 Apr 2006 00:29:56 +0000 (00:29 +0000)]
Remove comment on first line
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17954
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 25 Apr 2006 00:29:23 +0000 (00:29 +0000)]
Set myfulldir
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17953
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Mon, 24 Apr 2006 21:10:31 +0000 (21:10 +0000)]
Generate rpc includes as part of the generate-files-mac target
ticket: new
target_version: 1.5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17952
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Mon, 24 Apr 2006 21:09:16 +0000 (21:09 +0000)]
Updated kadm5 Makefile.ins to autogenerate the kadm5 headers as part
of the generate-files-mac build phase.
ticket: new
target_version: 1.5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17951
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Mon, 24 Apr 2006 20:59:52 +0000 (20:59 +0000)]
Added CoreFoundation bundle plugin support
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
Alexandra Ellwood [Mon, 24 Apr 2006 20:44:00 +0000 (20:44 +0000)]
krb_get_tf_realm(): cc_int32 is an integer type and should be
initialized to 0 not NULL.
ticket: new
target_version: 1.5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17949
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sat, 22 Apr 2006 13:06:24 +0000 (13:06 +0000)]
Signed/unsigned warnings cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17948
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 21 Apr 2006 15:55:17 +0000 (15:55 +0000)]
unsigned/signed int warnings in krb5_context variables
Change in_tkt_ktype_count, tgs_ktype_count and conf_tgs_ktypes_count in context to
unsigned int. Change get_profile_etype_list() to expect unsigned int as well.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17947
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 20 Apr 2006 15:55:20 +0000 (15:55 +0000)]
Fix memory leak. closedir() was never being called after successful opendir()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17946
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 20 Apr 2006 04:24:48 +0000 (04:24 +0000)]
shsUpdate should take an unsigned int for length
Update shsUpdate to take an unsigned int length instead of signed.
The code already assumes that it is an integer >= 0. This change
cleans up a number of signed/unsigned warnings.
sha1/shs.h, shs.c, t_shs.c: change ints to unsigned int
dk/dk_encrypt.c: static function trunc_hmac change a signed int to unsigned
hash_provider/hash_sha1.c: Remove cast in argument to shsUpdate
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17945
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 19 Apr 2006 20:23:46 +0000 (20:23 +0000)]
* errors.c (krb5int_get_error): Try strerror_r if available before strerror.
* 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
Ezra Peisach [Wed, 19 Apr 2006 19:34:55 +0000 (19:34 +0000)]
Prototype for krb5_c_prf missing const
When krb5_c_prf was added in r17219 to implement RFC 3961 PRF, the
prototype for krb5_c_prf has the incomming krb5_data not flagged as const.
The implementation usage in the dk_prf.c declare as const. Make everything
consistent.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17943
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 18 Apr 2006 23:28:07 +0000 (23:28 +0000)]
* error_table.h (ET_EBUFSIZ): Increase to 1k.
* 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
Ken Raeburn [Tue, 18 Apr 2006 23:14:36 +0000 (23:14 +0000)]
* configure.in: Check for strerror_r
ticket: 3620
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17941
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 18 Apr 2006 23:07:28 +0000 (23:07 +0000)]
(LOCAL_SUBDIRS, STOBJLISTS, SUBDIROBJLISTS): Don't build posix dir on UNIX
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17940
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 18 Apr 2006 23:06:47 +0000 (23:06 +0000)]
(krb5int_debug_fprint): Use strerror_r if available.
(bogus_strerror): Unused function deleted.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17939
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 18 Apr 2006 22:13:53 +0000 (22:13 +0000)]
(KRB5_KDB_SRV_TYPE_*, KRB5_DB_LOCKMODE_*): Delete definitions duplicated from kdb.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17938
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 15 Apr 2006 00:50:05 +0000 (00:50 +0000)]
Compute dependencies for profile_tcl.o
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17931
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 15 Apr 2006 00:43:59 +0000 (00:43 +0000)]
* Makefile.in (profile_tcl): Link with MLIBS instead of DEPLIBS and LIBS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17930
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 14 Apr 2006 23:59:00 +0000 (23:59 +0000)]
* aclocal.m4 (KRB5_AC_CHOOSE_ET): Make sure that the error-table symbol is
declared and addressable; the type doesn't need to be complete.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17928
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 14 Apr 2006 23:57:49 +0000 (23:57 +0000)]
Include com_err.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17927
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 14 Apr 2006 23:57:28 +0000 (23:57 +0000)]
(*-*-solaris*): Set LDCOMBINE_TAIL to use LDFLAGS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17926
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 14 Apr 2006 23:47:33 +0000 (23:47 +0000)]
Include stdarg.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17925
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 14 Apr 2006 22:38:00 +0000 (22:38 +0000)]
Move gmt_mktime.c from lib/krb5/os to util/support, and rename the function.
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
Jeffrey Altman [Fri, 14 Apr 2006 02:48:45 +0000 (02:48 +0000)]
identity/plugins/common/dynimport.c:
During the interop session we concluded that the ccapi32.dll should
not be required for netidmgr to operate. netidmgr should work with
only FILE: ccaches. After the interop the removal of the error
check post-load was not removed.
identity/doc/Makefile:
The 'clean' rules failed to specify the /Q switch which silently
removes the directory tree. As a result, during the build the
user was prompted.
ticket: 3542
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17907
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 13 Apr 2006 18:58:56 +0000 (18:58 +0000)]
Partial merge from Novell LDAP integration branch, not including the
actual LDAP bits:
* include/kdb.h (krb5_db_entry_new): Add MASK field indicating what's
changed.
(KRB5_KDB_SRV_TYPE_*): New macros indicating which type of service is
accessing the database.
* lib/kadm5/srv/svr_principal.c: Set mask field.
* lib/kadm5/srv/server_misc.c, server_init.c: Pass service type to
krb5_db_open.
* kadmin/dbutil/kdb5_stash.c (kdb5_stash): Pass service type to
krb5_db_open.
* kadmin/dbutil/kdb5_util.c (open_db_and_mkey): Pass service type to
krb5_db_open.
* kdc/main.c (init_realm): Pass service type to krb5_db_open.
* lib/kadm5/srv/svr_principal.c: Set mask field.
* kadmin/dbutil/dump.c (load_db): Pass service type to krb5_db_open.
* lib/kdb/kdb5.h (KRB5_KDB_SRV_TYPE_*): New macros.
* lib/kdb/err_handle.{c,h}: Deleted.
* lib/kadm5/clnt/err_handle.{c,h}: Deleted.
(krb5_db_clr_error): Declaration deleted.
* lib/kdb/Makefile.in, lib/kadm5/clnt/Makefile.in: Don't build them.
* lib/kdb/kdb5.c, lib/kadm5/clnt, lib/kadm5/srv: Use new error-message API.
* kdc/do_tgs_req.c (process_tgs_req): Use new error-message API.
* kdc/kdc_preauth.c (check_padata)
* kdc/do_as_req.c (process_as_req):
* kdc/main.c (init_realm):
* kadmin/server/ovsec_kadmd.c (main, do_schpw):
* schpw.c (process_chpw_request):
* kadmin/server/server_stubs.c:
* kadmin/cli/kadmin.c (extended_com_err_fn): New function.
(kadmin_startup): Tell com_err library to use it, for kadmin.local.
* lib/kdb/libkdb5.exports: Don't export krb5_db_clr_error.
* lib/kdb/Makefile.in: (SRCS, STLIBOBJS): Don't build err_handle.c.
* lib/kdb/kdb5.c (kdb_load_library): Don't pass argument to init_library.
(krb5_db_clr_error): Function deleted.
* lib/kdb/kdb5.h (struct _kdb_vftabl): Remove argument from init_library field.
* lib/kadm5/logger.c (krb5_klog_init): Save the krb5_context pointer.
(klog_com_err_proc): Use it, and call new error-message API.
* lib/kadm5/srv/svr_principal.c: Use new error-message API.
* kadmin/dbutil/kdb5_util.c (extended_com_err_fn): New function.
(main): Tell com_err library to use it.
* plugins/kdb/db2: Use new error-message APIs and updated DAL
interface.
* lib/kadm5/kadm_rpc.h: Delete err_str fields.
* lib/kadm5/kadm_rpc_xdr.c: Don't process them.
* kadmin/server/server_stubs.c: Don't use ret.err_str field.
* include/k5-thread.h (k5_key_t): Deleted unused values.
* lib/kdb/kdb5.h (KDB_MODULE_SECTION): Change db_modules to dbmodules.
(KDB_MODULE_DEF_SECTION): New macro.
* tests/Makefile.in (krb5.conf): Rename db_modules to dbmodules.
* tests/dejagnu/config/default.exp (setup_krb5_conf): Likewise.
* kadmin/testing/proto/krb5.conf.proto: Likewise.
* lib/kdb/libkdb5.exports: Do export krb5_def_store_mkey.
* lib/kadm5/admin.h (KADM5_CPW_FUNCTION, KADM5_RANDKEY_USED): New macros.
(struct _kadm5_config_params): New field kpasswd_server.
* lib/krb5/error_tables/kdb5_err.et (KRB5_KDB_SERVER_INTERNAL_ERR):
New error code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17899
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 13 Apr 2006 15:56:04 +0000 (15:56 +0000)]
Don't include kdb.h from k5-int.h; instead, include it in the handful
of places where it's actually needed. Update dependencies.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17898
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 13 Apr 2006 14:10:50 +0000 (14:10 +0000)]
* configure.in: Delete OSF/1 libsecurity/setluid/LOGINLIBS code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17897
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 11 Apr 2006 21:32:36 +0000 (21:32 +0000)]
make depend
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17894
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 11 Apr 2006 21:28:48 +0000 (21:28 +0000)]
Remove ChangeLog files from the source tree. From now on, the
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
Ken Raeburn [Tue, 11 Apr 2006 19:58:28 +0000 (19:58 +0000)]
Remove .Sanitize file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17890
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 11 Apr 2006 19:57:11 +0000 (19:57 +0000)]
* Sanitize: Removed
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17889
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 11 Apr 2006 19:56:21 +0000 (19:56 +0000)]
Remove .Sanitize and .rconf files, no longer used
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17888
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 11 Apr 2006 19:53:48 +0000 (19:53 +0000)]
Move pty library from util/pty to appl/libpty; update Makefile.in and
configure.in files accordingly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17887
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 10 Apr 2006 11:02:49 +0000 (11:02 +0000)]
* kdc_preauth.c (verify_enc_timestamp): Initialize decrypt_err
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17886
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 10 Apr 2006 10:42:32 +0000 (10:42 +0000)]
* client.c (usage): Mark as "noreturn" under gcc
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17885
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 10 Apr 2006 09:51:20 +0000 (09:51 +0000)]
* kdb5.c (kdb_unlock_lib_lock, kdb_destroy_lib_lock): Cast 0 to void to silence
compiler warning.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17884
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 8 Apr 2006 11:08:49 +0000 (11:08 +0000)]
* aclocal.m4 (KRB5_AC_CHECK_TYPE_WITH_HEADERS): Use quotes around tr arguments
to prevent shell substitutions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17881
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 8 Apr 2006 11:03:03 +0000 (11:03 +0000)]
* shlib.conf (*-*-linux*): Use linker flag --as-needed when
building shared libraries.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17880
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 8 Apr 2006 07:05:20 +0000 (07:05 +0000)]
* kadm_net.c (kadm_cli_send): Use 0, not NULL, when checking numeric
error codes.
(Removes the two occurrences of "comparison between pointer and
integer" in the build.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17872
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 8 Apr 2006 06:52:21 +0000 (06:52 +0000)]
Move definitions of KRB5_PRIVATE and KRB5_DEPRECATED from autoconf.h
to $(ALL_CFLAGS).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17871
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 8 Apr 2006 04:41:48 +0000 (04:41 +0000)]
* fakeenv.c: Unused file deleted
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17867
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 5 Apr 2006 21:22:10 +0000 (21:22 +0000)]
Add prerequisites for some header checks to avoid "present but cannot
be compiled" warnings.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17856
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 21:31:43 +0000 (21:31 +0000)]
* setenv.c: Include autoconf.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17844
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 21:22:17 +0000 (21:22 +0000)]
* getdate.y: Include autoconf.h always. Don't include config.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17843
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 20:14:24 +0000 (20:14 +0000)]
* Makefile.in ($(srcdir)/profile_tcl.c): Don't invoke swig automatically
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17841
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 03:29:48 +0000 (03:29 +0000)]
make depend
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17840
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 03:09:55 +0000 (03:09 +0000)]
more DEFS=
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17839
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 01:44:28 +0000 (01:44 +0000)]
set DEFS empty in more places
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17838
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 01:37:52 +0000 (01:37 +0000)]
* err_handle.c: Include autoconf.h and string.h.
(HAVE_PTHREAD_H): Undefine.
* Makefile.in (DEFS): Make empty.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17837
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 4 Apr 2006 01:28:03 +0000 (01:28 +0000)]
* Makefile.in (DEFS): Make empty.
* stdcc_util.h: Include autoconf.h.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17836
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 3 Apr 2006 01:33:54 +0000 (01:33 +0000)]
include autoconf.h in a few more places
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17835
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 2 Apr 2006 07:31:52 +0000 (07:31 +0000)]
* Makefile.in (DEFS): Make empty
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17833
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Sun, 2 Apr 2006 04:28:26 +0000 (04:28 +0000)]
Results from Kerberos Interop session:
- 64-bit Windows compatibility
- correct uninitialized variables
- work without kerberos 4 libraries including krb524
- add a mechanism to add and remove identities from
the options dialog. This allows a configuration
to be specified using a separate file based ccache
for each identity
- work without availability of ccapi
- force a renew of credentials on startup to support
the case when MSLSA is the only credential cache
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17832
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Sun, 2 Apr 2006 04:21:29 +0000 (04:21 +0000)]
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17831
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 2 Apr 2006 00:22:59 +0000 (00:22 +0000)]
don't use configure-defined macros on command line, use autoconf.h only
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17830
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Apr 2006 03:11:10 +0000 (03:11 +0000)]
make depend
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17826
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Apr 2006 03:08:17 +0000 (03:08 +0000)]
Include autoconf.h (or include it earlier) in a bunch of files that are
currently depending on command-line macro settings.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17825
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Apr 2006 02:56:40 +0000 (02:56 +0000)]
* db2_exp.c, kdb_db2.c: Include k5-int.h earlier
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17824
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Apr 2006 01:26:39 +0000 (01:26 +0000)]
* configure.in: Check for access, ftime, getcwd, srand48, srand, srandom, stat,
strchr, strerror, strstr, timezone, umask, waitpid, sem_init, sem_trywait,
daemon, alloca.h, dlfcn.h, limits.h, pthread.h, semaphore.h, krb_db.h, kdc.h,
sockaddr.sa_len, sockaddr_in.sin_len, stat.st_mtimensec,
stat.st_mtimespec.tv_nsec, and stat.st_mtim.tv_nsec. Invoke
KRB5_AC_REGEX_FUNCS, AC_TYPE_OFF_T, CHECK_WAIT_TYPE, CHECK_SIGPROCMASK,
AC_TYPE_GETGROUPS, CHECK_SETJMP, and DECLARE_SYS_ERRLIST. Add checks for
perror declaration, strptime prototype, setrpcent and endrpcent return types
from configure.in scripts in subdirectories.
With this patch, nearly every -D option used to compile a file that we care
about for KfM should now be duplicated in include/autoconf.h. There are still
other -D options not represented here (e.g., in appl/, util/pty, and the python
sample plugin).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17823
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Apr 2006 01:20:24 +0000 (01:20 +0000)]
* aclocal.m4 (KRB5_SOCKADDR_SA_LEN): Use AC_CHECK_MEMBER.
(CHECK_UTMP): Use AC_CHECK_MEMBERS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17822
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Apr 2006 01:17:47 +0000 (01:17 +0000)]
* configure.in: Never define size_t
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17821
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Mar 2006 23:09:53 +0000 (23:09 +0000)]
* configure.in: Always provide three arguments to AC_DEFINE
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17820
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Mar 2006 21:16:59 +0000 (21:16 +0000)]
* configure.in: Remove the #undef lines for the PACKAGE_ macros
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17819
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Mar 2006 21:00:40 +0000 (21:00 +0000)]
* configure.in: Don't test word sizes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17818
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Mar 2006 20:08:46 +0000 (20:08 +0000)]
* kt_file.c (krb5_ktf_keytab_externalize, krb5_ktf_keytab_internalize): Read
and write file position as 64 bits rather than trying to figure out size of
long.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17817
dc483132-0cff-0310-8789-
dd5450dbe970