2003-07-22 Sam Hartman * ccbase.c: Always register the file credentials cache type. If we do not, then when USE_CCAPI is defined, it will not be available. 2003-03-06 Alexandra Ellwood * ccdefault.c: Remove Mac header goober and include k5-int.h after KerberosLoginPrivate.h. 2003-01-10 Ken Raeburn * Makefile.in: Add AC_SUBST_FILE marker for libobj_frag. 2003-01-07 Ken Raeburn * cc_file.c (krb5_cc_file_ops, krb5_fcc_ops): Now const. * fcc.h (krb5_cc_file_ops): Update decl. * cc_memory.c (krb5_mcc_ops): Now const. * ccbase.c (krb5_mcc_ops): Update decl. * ccdefops.c (krb5_cc_dfl_ops): Now points to const. * t_cc.c (krb5_fcc_ops, krb5_mcc_ops): Update decls. 2002-09-03 Ken Raeburn * cc_file.c, cc_memory.c, cc_retr.c, ccbase.c, cccopy.c, ccdefault.c, ser_cc.c, t_cc.c: Use prototype style function definitions. 2002-08-29 Ken Raeburn * Makefile.in: Revert $(S)=>/ change, for Windows support. 2002-08-23 Ken Raeburn * Makefile.in: Change $(S)=>/ and $(U)=>.. globally. 2002-08-15 Ken Raeburn * cc_file.c (ALLOC): Use calloc, not malloc. (krb5_fcc_read_principal): Check bounds on number of components before calling ALLOC. 2002-08-15 Tom Yu * t_cc.c: Remove references to STDIO ccache. 2002-08-14 Ken Raeburn * cc_file.c: Merge in cc_stdio.c, under preprocessor test for USE_STDIO. (USE_STDIO): Define it if HAVE_SYS_TYPES_H. (krb5_change_cache, krb5_get_notification_message): Always define. (ALLOC): New macro, with overflow checking. (krb5_fcc_read_principal, krb5_fcc_read_addrs, krb5_fcc_read_authdata): Use it, and fix other overflow checks. (my_fopen): Support non-Mac environments. (krb5_fcc_open_file) [USE_STDIO]: Always use my_fopen. (NO_FILE): New macro. All functions changed to test or assign it rather than -1 or (FILE*)NULL. (krb5_fcc_read_keyblock, krb5_fcc_read_data): Rewrite bounds check. (BINARY_MODE): Always define. (setvbuf) [!HAVE_SETVBUF]: Define as macro using setbuf. (krb5_fcc_open_file): Change file descriptor variable to "f" and combine newly matching stdio and file sections. Use setvbuf instead of checking whether to use setbuf. * cc_stdio.c: Deleted. * Makefile.in (STLIBOBJS, OBJS, SRCS): Updated. * ccdefops.c (krb5_cc_dfl_ops) [!USE_CCAPI]: Always use krb5_fcc_ops. 2002-08-09 Ken Raeburn * cc_file.c: All functions except krb5_change_cache and krb5_get_notification_message now static. Minor other shuffling to become more similar to cc_stdio.c. (krb5_fcc_data): Rename "fd" to "file"; change all uses. * cc_stdio.c: All functions now static. Rename all krb5_scc_ functions, data types and macros to use krb5_fcc_ prefix instead. Minor other shuffling to become more similar to cc_file.c. (krb5_fcc_data): Rename from krb5_scc_data; reorder some fields. (krb5_fcc_close_file): Never call fflush on a read-only file. (BINARY_MODE): New macro. (krb5_fcc_open_file): Combine ANSI_STDIO and non-ANSI cases statements by using BINARY_MODE and compile-time string concatenation. Choose lock flag value separately from call to krb5_lock_file. (krb5_fcc_generate_new): Use BINARY_MODE. 2002-07-09 Ken Raeburn * cc_file.c: Put # for cpp directives in first column. 2002-60-20 Danilo Almeida * Makefile.in: Build cc accessor functions on Windows. [pullup from 1-2-2-branch] 2002-06-20 Alexandra Ellwood * ccdefault.c: updated to new KLL function name * ccdefault.c: swapped include of KerberosLoginPrivate with k5-int.h to avoid problems with including CoreServices.h after profile.h and krb.h * ccdefault.c: Updated Mac OS X headers to new framework layout * ccdefops.c: created #define for USE_CCAPI now that both Mac OS 9 and Mac OS 10 use ccapi. [pullups from 1-2-2-branch] 2002-04-10 Danilo Almeida * cc_file.c: Use _WIN32 instead of _WINSOCKAPI_ because _WINSOCKAPI_ depends on the Winsock header used (i.e., Winsock 2 does not define this). What we are really trying to check for is Win32. Include port-sockets.h for Win32. (NOTE: Why is NEED_SOCKETS being defined after the inclusion of k5-int.h? That is pretty useless... What we probably should do is more consitently used NEED_SOCKETS instead of manually putting in network code. However, some people would probably have issues with the build being slower...) 2001-10-10 Ezra Peisach * cc_file.c (krb5_fcc_read): Remove const from fourth argument to function to match prototype earlier in file. 2001-10-09 Ken Raeburn * cc_file.c, cc_memory.c, cc_stdio.c, ser_cc.c: Make prototypes unconditional. 2001-10-05 Ken Raeburn * cc_file.c, cc_stdio.c: Delete _MSDOS (win16) support. * cc_memory.c, ccbase.c, ccdefault.c, ccfns.c: Don't explicitly declare pointers FAR any more. 2001-10-03 Ken Raeburn * cc_file.c, ccbase.c, cccopy.c, ccdefault.c, fcc.h, ser_cc.c: Don't use KRB5_DLLIMP. 2000-10-30 Tom Yu * cc_stdio.c: Add a "mode" field to krb5_scc_data to keep track of what mode the file was opened in. (krb5_scc_close_file): Ignore EBADF from fflush() if the file was opened for readonly access. For some reason NetBSD's fflush() exhibits this behavior. (krb5_scc_open_file): Save the mode with which the file was opened in data->mode. 2000-10-17 Ezra Peisach * cc_stdio.c, cc_file.c: Unsigned/signed int cleanup. 2000-10-03 Ezra Peisach * ser_cc.c (krb5_ccache_externalize): Use krb5_cc_get_name instead of krb5_rc_get_name on credential cache. * cc_file.c (krb5_fcc_get_name): * cc_stdio.c (krb5_scc_get_name): * cc_memory.c (krb5_mcc_get_name): * ccfns.c (krb5_cc_get_name): Declare as returning const char *. 2000-09-25 Ezra Peisach * cc_file.c ccbase.c, cc_stdio.c, cc_retr.c, cc_memory.c: More signed/unsigned fixes. Sat Sep 23 23:42:32 2000 Ezra Peisach * t_cc.c: Code cleanup. Test more failure modes of the cache library. * cccopy.c (krb5_cc_copy_creds): Memory leak. Call krb5_cc_end_seq_get. * cc_file.c (krb5_fcc_generate_new): Set flags to KRB5_TC_OPENCLOSE, otherwise parts of the library assumes that the file is open, when it is not. * cc_stdio.c (krb5_scc_generate_new): Same as cc_file.c change. 2000-09-22 Ezra Peisach * Makefile.in (check-unix): Build and exectute t_cc. * t_cc.c: Test harness for memory, stdio and file caches. 2000-07-20 Danilo Almeida * cc_file.c, cc_stdio.c: Remove unused krb5_[fs]cc_default_name() prototype. * cc_stdio.c: Fix calling convention for op functions. * ccfns.c (krb5_cc_get_type): Fix calling convention. * Makefile.in: Change ${CC} and ${OBJS} to $(CC) and $(OBJS) so nmake does not freak out. 2000-07-19 Ken Raeburn * cc_memory.c (mcc_head): Combine static declaration and initialization. 2000-07-14 Ken Raeburn * t_stdio.c, t_file.c, t_memory.c: Test cases copied from old subdirectories. Currently unused. * Makefile.in (t_stdio): New target, basically same as 'test' in old stdio/Makefile.in. * file, memory, stdio: Subdirectories deleted. * cc_file.c, cc_stdio.c, cc_memory.c: New files, built from source files of appropriate subdirectories. * fcc.h, scc.h: New files, copied from subdirectories; temporary. * ccfns.c: New file, implementing what used to be krb5_cc_* macros in krb5.h. * Makefile.in (STLIBOBJS, OBJS, SRCS): Updated. (LOCAL_SUBDIRS): Now empty. (LOCALINCLUDES): Remove file and stdio subdirs. (MAC_SUBDIRS): Remove file, stdio, memory. (##DOS## stuff, clean-windows): Delete file and memory parts. * cc_memory.c (mcc_head): Now static. 2000-06-28 Ezra Peisach * ccdefault.c: Add newline at end of file (compiler warning) 2000-5-31 Alexandra Ellwood * ccdefault.c: Changed kerberosPrincipal_V5 to kerberosVersion_V5 to reflect the new constant name. 2000-4-26 Alexandra Ellwood * ccdefault.c: Added version number to internal Kerberos Login Library routine. 2000-4-13 Alexandra Ellwood * ccdefault.c: Added Kerberos Login library support (with ifdefs to control whether or not it is on. Also added support to store a krb5_principal in the os_context along with the default ccache name (if known, this principal is the same as the last time we looked at the ccache. * ccdefname.c: Added support to store a krb5_principal in the os_context along with the default ccache name (if known, this principal is the same as the last time we looked at the ccache. 1999-10-26 Wilfredo Sanchez * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES such that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. 1999-08-23 Ken Raeburn * cc_retr.c: New file. (krb5_cc_retrieve_cred_seq): New function, derived from fcc_retrieve but takes an optional list of enctypes to look for in priority order. (krb5_cc_retrieve_cred_default): New function. Same signature as original fcc_retrieve but if new flag KRB5_TC_SUPPORTED_KTYPES is set, calls krb5_get_tgs_ktypes to get a list of enctypes to look for. * Makefile.in (STLIBOBJS, OBJS, SRCS): Add it. Tue May 18 19:52:56 1999 Danilo Almeida * Makefile.in: Remove - from recursive Win32 make invocation. Mon May 17 14:11:45 1999 Danilo Almeida * Makefile.in: Clean ccapi subdirectory in clean-windows target. Mon May 10 15:24:08 1999 Danilo Almeida * Makefile.in: Do win32 build in subdir. 1999-03-31 Theodore Ts'o * ccdefops.c: Change the default ccache type under windows to be original FILE ccache type; this will get set to ccapi if the krbcc32.dll can be found. Mon Feb 8 21:53:37 1999 Theodore Y. Ts'o * Makefile.in: Enable the ccapi directory for windows builds. * ccdefops.c: Make the ccapi the default ccache type for Windows machines. 1999-01-26 Theodore Ts'o * Makefile.in: Add ccapi to the include path so we can find stdcc.h 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are relative to buildtop and thisconfigdir, respectively.) Sat Dec 5 01:20:31 1998 Theodore Y. Ts'o * Makefile.in, ccdefops.c: Temporarily back out the ccapi ccache under Windows so we can make sure the rest of the krb5 tree builds correctly under Windows. (Note: I didn't revert lib/krb5/os/ccdefname.c, so setting KRB5_CC_NAME to FILE:C:\tmp\tkt is required to make things work.) 1998-08-24 Theodore Ts'o * Makefile.in: Add windows build instructions to build CCache API Cache implementation. Fri Aug 20 18:30:00 1998 Miro Jurisic * Added Frank's CCache API cache implementation and made it default on the Mac Thu Jul 30 13:12:30 1998 Sam Hartman * ccbase.c: Enable memory ccache (merge adapted from Kerbnet) 1998-05-27 Theodore Ts'o * Makefile.in: Add ccache/memory as a directory to be recursively built by this makefile under Windows. Fri Feb 27 18:03:33 1998 Theodore Ts'o * Makefile.in: Changed thisconfigdir to point at the lib/krb5 directory, since we've moved the configure.in tests in this directory to the toplevel lib/krb5 configure.in Wed Feb 18 16:19:12 1998 Tom Yu * Makefile.in: Remove trailing slash from thisconfigdir. Fix up BUILDTOP for new conventions. Thu Feb 12 16:17:46 1998 Tom Yu * configure.in: Add commented out AC_OUTPUT to force autoreconf to rebuild the configure script. Wed Feb 11 22:56:49 1998 Theodore Ts'o * Makefile.in: Define BUILDTOP and thisconfigdir in the Makefile * configure.in: Create the makefiles for all of the subdirectories and move all of the configure.in tests from the subdirectories into this configure.in. Sat Dec 6 02:26:16 1997 Tom Yu * Makefile.in: Add cccopy.c. * cccopy.c: New file; krb5_cc_copy_creds from Cygnus. Mon Sep 15 15:14:16 1997 Ezra Peisach * ccbase.c (krb5_cc_resolve): Incoming cache name is const. Thu Nov 21 11:55:16 EST 1996 Richard Basch * Makefile.in: win32 build * ccbase.c, ccdefault.c: DLL export basic ccache functions Thu Jan 2 16:57:35 1997 Tom Yu * Makefile.in: * configure.in: Update to new lib build procedure. Thu Jun 6 00:04:38 1996 Theodore Y. Ts'o * Makefile.in (all-windows): Don't pass $(LIBCMD) on the command line. It's set in the windows.in prologue for all Makefiles anyway. Wed Feb 7 00:23:18 1996 Theodore Y. Ts'o * Makefile.in: Folded in danw's changes to allow building Makefiles for the Macintosh. We now can build MPW makefiles which are interpreted by CodeWarrior. Fri Nov 3 21:12:31 1995 Theodore Y. Ts'o * configure.in: Added memory subdirectory Fri Oct 6 22:03:30 1995 Theodore Y. Ts'o * Makefile.in: Remove ##DOS!include of config/windows.in. config/windows.in is now included by wconfig. Mon Sep 25 16:56:30 1995 Theodore Y. Ts'o * Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the Makefile. Tue Aug 29 13:35:23 EDT 1995 Paul Park (pjpark@mit.edu) * Makefile.in, .Sanitize, ser_cc.c - Add new ccache handle serialization routines. Fri Jun 9 19:31:13 1995 * configure.in: Remove standardized set of autoconf macros, which are now handled by CONFIG_RULES. Use DO_SUBDIRS to recurse down subdirectories. Fri May 26 20:19:26 1995 Theodore Y. Ts'o (tytso@dcl) * configure.in, Makefile.in: Add support for building shared libraries. Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com) * ccbase.c: removed unneeded INTERFACE from non-api functions. Wed Mar 22 11:47:49 1995 * Makefile.in (CFLAGS): Make -I options work when the build and source tree are different. Fri Mar 17 19:19:07 1995 John Gilmore (gnu at toad.com) * Makefile.in (LDFLAGS): Remove, duplicates config/pre.in. (CFLAGS): Add -I options for file and stdio, to avoid paths in #include statements. (all-mac, clean-mac): Add. * ccdefops.c: Avoid includes with pathnames, since they don't work on the Mac. Configure the default cache based on whether the system has (which defines types for low-level file operations, among other things). * configure.in (CONFIG_DIRS): Build stdio before file, for Mac convenience (where file doesn't build). Wed Mar 15 20:23:17 1995 Keith Vetter (keithv@fusion.com) * Makefile.in: cleaned up for the PC Tue Mar 7 19:53:05 1995 Mark Eichin * configure.in: take out ISODE_DEFS. Tue Mar 7 15:55:12 1995 Keith Vetter (keithv@fusion.com) * ccbase.c, ccdefault.c: added window INTERFACE keyword. * Makefile.in: made to work on the PC. Tue Feb 28 00:35:33 1995 John Gilmore (gnu at toad.com) * ccbase.c, ccdefault.c: Avoid includes. Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu) * Added krb5_context to all krb5_routines Thu Oct 13 17:23:08 1994 Theodore Y. Ts'o (tytso@maytag) * configure.in: Add ISODE_DEFS