Keith Vetter [Wed, 22 Mar 1995 05:12:02 +0000 (05:12 +0000)]
Bug fixes in ccache/file for the PC: files need to be opened in binary mode,
unitialized variable and changed some clever code that depends upon 32 bit
integers. Also, added hooks, ala k4, that notify the world when the cache changes.
John Gilmore [Sun, 19 Mar 1995 20:51:13 +0000 (20:51 +0000)]
* aclocal.m4 (CHECK_STDARG): Remove; we're just using AC_HEADER_CHECK.
(V5_AC_OUTPUT_MAKEFILE): Reorder the Makefile output so that it can be
run through `sed' for the Macintosh.
* acconfig.h: Remove STDARG_PROTOTYPES.
John Gilmore [Sat, 18 Mar 1995 04:42:05 +0000 (04:42 +0000)]
* acgeneral.m4: Report the update status of the cache better;
show diffs if an unwriteable cache gets updated, for manually
configuring the Mac config.cache.
* configure: Update with this acgeneral.m4.
[This change, or one very close to it, was submitted for autoconf 2.2.]
John Gilmore [Sat, 18 Mar 1995 03:55:46 +0000 (03:55 +0000)]
* Makefile.in (check-mac): Add.
* compat_recv.c, get_fcreds.c, recvauth.c: Eliminate Unix socket
#includes, which are now handled by k5-int.h (via k5-config.h).
* conv_princ.c: Rename variable "comp" to another name; "comp"
apparently bothers the MPW compiler...
* rd_cred.c: Avoid (void) casts of void functions, for MPW.
* t_walk_rtree.c: Put com_err.h after k5_int for <sys/types> stuff.
(main): Declare and initialize the krb5_context that's being
passed to everything.
John Gilmore [Sat, 18 Mar 1995 03:44:45 +0000 (03:44 +0000)]
* Makefile.in (LDFLAGS): Eliminate, duplicate.
(SRCS): Eliminate $(srcdir) which causes mac problems.
(all-unix): Eliminate obsolete "includes".
(all-mac): Add.
(unixmac): Add $(SRCS) so that the .c source files will be created
here in the original "configure tree on Unix" stage of the build.
Theodore Tso [Sat, 18 Mar 1995 03:44:09 +0000 (03:44 +0000)]
Fix rules for localdr.c, ustime.c, and memmove.c so that they
reference $(srcdir) where appropriate. (The conversion to use the
$(S)$(U) hacks screwed this up.)
John Gilmore [Sat, 18 Mar 1995 03:34:17 +0000 (03:34 +0000)]
* scc_errs.c: Mac doesn't have EISDIR error.
* scc_gennew.c, scc_maybe.c: Eliminate the use of htons and ntohs
for byte order handling; just do it by hand.
* scc_read.c (krb5_scc_read_authdatum): Zap unused variable "ret".
* Makefile.in (LDFLAGS): Eliminate, duplicates config/pre.in.
John Gilmore [Sat, 18 Mar 1995 03:23:02 +0000 (03:23 +0000)]
* 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 <sys/types.h> (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).
John Gilmore [Sat, 18 Mar 1995 03:15:52 +0000 (03:15 +0000)]
* krb5.h: Move <sys/types> and u_long (etc) code to krb5/k5-config.h.
It is needed there when NEED_SOCKETS is defined.
* Makefile.in (all-mac, clean-mac): Add.
John Gilmore [Sat, 18 Mar 1995 03:15:26 +0000 (03:15 +0000)]
* k5-config.h: Move <sys/types.h> handling from ../krb5.h to
here, because we need <sys/types.h> or the u_* types to be defined
before we include the Unix socket include files a little later in
k5-config.h. We actually add this code twice, once in the MSDOS
section and once in the Unix/Mac section.
(NEED_SOCKETS): Also include <net/if.h>, for localaddr.c.
* Makefile.in (clean-mac): Add.
John Gilmore [Sat, 18 Mar 1995 03:08:48 +0000 (03:08 +0000)]
* Makefile.in: Remove redundant definitions from config/pre.in
(clean-mac): Add.
* asn1_misc.c: Avoid <malloc.h> and <memory.h> includes, for Mac.
(asn1_krb5_realm_copy): Use malloc, not calloc, since we're
about to clobber the storage anyway.
* configure.in (WITH_KRB5ROOT): Remove, not needed.
* krbasn1.h: Document that <limits.h> is needed for INT_MAX.
John Gilmore [Fri, 17 Mar 1995 05:19:53 +0000 (05:19 +0000)]
* Makefile.in (LDFLAGS): Remove, conflicts with pre.in.
(clean): Insert FIXME.
(verify$(EXEEXT), destest$(EXEEXT)): Make them work on Mac.
(check-mac): Add, identical to Unix.
(clean): Use $(EXEEXT).
* des_int.h (mit_des_cbc_cksum): Fix prototype from void to long,
to match the actual function.
John Gilmore [Fri, 17 Mar 1995 05:16:22 +0000 (05:16 +0000)]
* Makefile.in (crctest, crctest.exe): Replace crctest-unix and
crctest-windows with versions that work for Mac too.
(check): Build and run crctest$(EXEEXT). This runs on MPW now.
John Gilmore [Fri, 17 Mar 1995 05:14:11 +0000 (05:14 +0000)]
* Makefile.in (CFLAGS): Avoid continuation line that starts with
dash; it confuses the Unix->MPW makefile converter.
(##DOSLIBNAME): No longer needed since DLL built one level up.
(all-mac): Add.
(libcrypto.a): Use explicit "./" on paths to DONE files, to
help Unix->MPW makefile converter with rotten Mac pathname conventions.
John Gilmore [Fri, 17 Mar 1995 05:03:27 +0000 (05:03 +0000)]
* configure.in: Replace nonstandard CHECK_STDARG with
AC_CHECK_HEADERS. Also check for header file macsock.h, which
is a dummy test -- it's false on Unix and PC's, but on the Mac
we hand-configure it to be true, to indicate that we want Mac
socket support rather than Unix socket support.
* base-defs.h, k5-config.h: Use HAVE_STDARG_H, not STDARG_PROTOTYPES.
* k5-config.h (NEED_SOCKETS): Add new section which brings in
socket include files for the appropriate compilation environment
(Mac or Unix; Windows already did this).
* macsock.h: New include file, derived from Cygnus Network Security
Mac K4 release, for simulating sockets under MacTCP.
John Gilmore [Fri, 17 Mar 1995 04:57:34 +0000 (04:57 +0000)]
First cut at Macintosh configuration support
* mac-config.cache: New file, a hand-built autoconf `config.cache'
file with the right values for building under MPW.
* mac-config.README: Documentation for mac-config.cache.
* mac-pre.in, mac-post.in: Versions of pre.in and post.in for
configuring on MPW.
* mac-mf.sed: A `sed' script which will turn carefully constructed
Unix Makefiles into carefully constructed Macintosh MPW Makefiles.
John Gilmore [Fri, 17 Mar 1995 04:53:15 +0000 (04:53 +0000)]
* configure.in: Replace CHECK_STDARG with AC_CHECK_HEADERS.
* main.c (print_status): Use HAVE_STDARG_H to control whether to
declare with ", ..."; not STDARG_PROTOTYPES.
* ksu.h: Don't include <stdarg.h> or <varargs.h>, since they
are already included by "com_err.h".
Theodore Tso [Fri, 10 Mar 1995 19:24:26 +0000 (19:24 +0000)]
Removed definition of FD_SETSIZE, FD_SET, FD_CLR, FD_ISSET, and
FD_ZERO. Defining them in favor of using the system include files is
almost always wrong.
Chris Provenzano [Fri, 10 Mar 1995 17:26:04 +0000 (17:26 +0000)]
* auth_con.h auth_con.c Added for krb5_auth_con definition and
support routines.
* mk_req.c (krb5_mk_req())
* mk_req_ext.c (krb5_mk_req_extended())
* rd_rep.c (krb5_rd_rep())
* sendauth.c (krb5_sendauth())
* mk_priv.c (krb5_mk_priv())
* mk_safe.c (krb5_mk_safe())
* rd_priv.c (krb5_rd_priv())
* rd_safe.c (krb5_rd_safe())
Added a krb5_auth_context argument and eliminated many of
the other arguments because they are included in the
krb5_auth_context structure.
* send_tgs.c (krb5_send_tgs()) Eliminate call to krb5_mk_req_extended(),
which does far more than krb5_send_tgs() needs.
Chris Provenzano [Fri, 10 Mar 1995 17:24:24 +0000 (17:24 +0000)]
* init_sec_context.c (krb5_gss_init_sec_context())
Use new calling convention for krb5_mk_req_ext() and
krb5_rd_rep().
* gssapiP_krb5.h Added a krb5_auth_context pointer to the
krb5_gss_ctx_id_rec structure to store the auth_context
between multiple calls to krb5_gss_init_sec_context().
Chris Provenzano [Fri, 10 Mar 1995 17:12:29 +0000 (17:12 +0000)]
* func-proto.h (krb5_mk_req(), krb5_mk_req_extended(), krb5_rd_rep(),
krb5_sendauth(), krb5_mk_priv(), krb5_rd_priv(), krb5_mk_safe(),
and krb5_rd_safe()). Added a krb5_auth_context argument and
eliminated many of the other arguments because they are
included in the krb5_auth_context structure.
* fieldbits.h Added #define AP_OPTS_USE_SUBKEY 0x00000001 for a
new option to an ap req message. This is mainly a clean way
to inform krb5_mk_req() and krb5_mk_req_extended() to
create the subkey without adding an extra argument.
* safepriv.h Replace safe/priv flags with flags for krb5_auth_context
and add krb5_replay_data structure for when the appilication
want to do it's own replay detection for safe and priv calls.
Mark Eichin [Wed, 8 Mar 1995 01:21:10 +0000 (01:21 +0000)]
* aclocal.m4 (UsePepsy, PepsyTarget): removed, not referenced
anywhere in the tree.
(ISODE_INCLUDE, ISODE_DEFS): removed along with remaining
references in the tree. --enable-isode is dead.
* configure.in (most directories): removed last remaining
ISODE_INCLUDE and ISODE_DEFS.
Keith Vetter [Sat, 4 Mar 1995 04:14:07 +0000 (04:14 +0000)]
Finished off changed needed for making libcrypto.dll. Biggest change
is that you can't pull in data from a DLL so had to add three routines
that return the address of various data structures.
John Gilmore [Fri, 3 Mar 1995 07:27:20 +0000 (07:27 +0000)]
Make include files begin to work on the Macintosh
* k5-int.h: Remove krb5/ from #includes. Rearrange #includes
so that time_t is defined before kdb.h is included.
* krb5.h: Include k5-config.h first, so its #define's can
control the rest of the file. If <sys/types.h> is not present,
define u_long, etc, manually.