John Gilmore [Fri, 17 Feb 1995 04:13:43 +0000 (04:13 +0000)]
* configure.in: Use AC_HAVE_HEADER rather than AC_HEADER_CHECK.
(Fixes resulting #define names to HAVE_XXX rather than HAS_XXX,
which is not only consistent but also matches what's in sysincl.h.)
John Gilmore [Wed, 15 Feb 1995 02:37:02 +0000 (02:37 +0000)]
* Makefile.in: made to work under Windows
- added windows only make preamble
- moved the all target after the objects it depends on
- used $(OBJEXT) and $(EXEEXT) where needed
- split crctest into unix rules and windows rules
- changed file separatars into macros where needed
* crctest.c: changed int to long to work on 16 bit machines
* crc.c: added Windows calling convention to the function
and casted the assignment of the function.
[There's a minor problem -- the cast should be fixed another way --
but I'll check it in this way and then Keith will fix it.]
John Gilmore [Wed, 15 Feb 1995 02:02:17 +0000 (02:02 +0000)]
* configure.in: added header checks for sys/param.h and sys/file.h.
* encryption.h: added typedef prototype for sum_func function
with the windows api to make microsoft compiler happy.
* sysincl.h: conditionally include sys/file.h and sys/param.h since
windows doesn't have them.
* Makefile.in:
- changed macros with ${...} to $(...) since nmake barfs on {}.
- added windows only make preamble
- split the all target into unix and windows branches
John Gilmore [Wed, 15 Feb 1995 01:04:57 +0000 (01:04 +0000)]
* pre.in: Added macros for directory syntax, filename extensions
and what system we're building on (defaults to Unix).
* post.in: split clean into unix and windows branches
* windows.in: new file--makefile macros and rules for windows
* rm.bat: new file--DOS batch file to mimic Unix's rm command
Theodore Tso [Sat, 11 Feb 1995 00:05:33 +0000 (00:05 +0000)]
Add check for libsocket and libnsl (sigh). krb5_init_ctx drags in
cryptoconf.c, which drags in enough of the crypto library that
socket() gets called. We should to fix this eventually to make klist
smaller, but the fix will be subtle. Sigh....
Theodore Tso [Sat, 11 Feb 1995 00:04:58 +0000 (00:04 +0000)]
Add check for libsocket and libnsl (sigh). krb5_init_ctx drags in
cryptoconf.c, which drags in enough of the crypto library that
socket() gets called. We should to fix this eventually to make klist
smaller, but the fix will be subtle. Sigh....
Theodore Tso [Fri, 10 Feb 1995 19:39:18 +0000 (19:39 +0000)]
krb5_use_keytype() was being called when the argument was a encryption
type. Change use to krb5_use_cstype(). Actually, any use of
krb5_use_keytype() is a bug by definition.
Changed the args to the key_proc arg of krb5_get_in_tkt()
to be the following (krb5_context, const krb5_keytype,
krb5_data *, krb5_const_pointer, krb5_keyblock **)
* in_tkt_ktb.c (krb5_get_in_tkt_with_keytab()) Added this routine
to replace krb5_get_in_tkt_with_skey() in kinit.
* func-proto.h (krb5_get_in_tkt()) Changed key_proc args to be the
following (krb5_context, const krb5_keytype, krb5_data *,
krb5_const_pointer, krb5_keyblock **)
* func-proto.h (krb5_get_in_tkt_*()) Removed krb5_keytype, changed
krb5_enctype to krb5_enctype *, changed krb5_preauthtype to
krb5_preauthtype *.
* func-proto.h Added new routine krb5_get_in_tkt_with_keytab().
* kinit.c (main()) Removed krb5_keytype, changed krb5_enctype to
krb5_enctype *, changed krb5_preauthtype to krb5_preauthtype *
for krb5_get_in_tkt_with_password() rotuine.
* kinit.c (main()) use new API for krb5_get_in_tkt(), and replace
krb5_get_in_tkt_with_skey() with krb5_get_in_tkt_with_keytab()
and remove all unnecessary cruft.
* kinit.c Do a krb5_init_context() before using a krb5_context.
* krb5.tex Documented API changes to krb5_get_in_tkt*() routines
and added krb5_get_in_tkt_with_keytab(). The explanation of
each of these routines still needs appropriate changes.
Theodore Tso [Fri, 3 Feb 1995 17:05:51 +0000 (17:05 +0000)]
Don't define BITS16, BITS32, BITS64, etc. anymore. Instead,
individually test for SIZEOF_SHORT, SIZEOF_INT, and SIZEOF_LONG and
use them as appropriate in wordsize.h
John Gilmore [Fri, 3 Feb 1995 11:05:12 +0000 (11:05 +0000)]
* kadmin.c (main): Real live non-kludged argument parsing.
Add -c option to specify ticket cache location (it really
should just use a cache in memory in the process, but that
isn't written yet). Make some error messages more explicit!
Mark Eichin [Fri, 3 Feb 1995 01:58:30 +0000 (01:58 +0000)]
* get_in_tkt.c (krb5_get_in_tkt): if krb5_is_as_rep fails, check
if the packet might be a V4 error packet. Use modified V4 check so
that it compiles under SCO.
John Gilmore [Thu, 2 Feb 1995 13:13:29 +0000 (13:13 +0000)]
* forward.c: Remove unused #include <krb5/crc-32.h>.
* kerberos5.c (kerberos5_send): Remove code for sending a checksum
of a zero-byte string; we can just send no checksum at all. This
eliminates dependency on <krb5/crc-32.h>.
(kerberos5_forward): Remove extra parameter to krb5_get_for_creds,
probably accidentally inserted during context changes -- which don't
seem to be here in the ChangeLog.
* kerberos.c: Remove prototypes for krb4 functions, since
some of them are wrong with CNS (u_long vs. KRB_INT32 conflicts).
These changes BUILD but have not been RUN yet. But at least they build.
My apologies. -- John
* int-proto.h Update prototypes for krb5_get_cred_via_tgt(), and
krb5_get_cred_via_2tgt().
* get_fcreds.c (krb5_get_for_creds())
* gc_via_tgt.c (krb5_get_cred_via_tgt())
* gc_2tgt.c (krb5_get_cred_via_2tgt())
Removed krb5_enctype argument. Pass NULL list of encryption
types to krb5_send_tgs to get default encryption types.
* gc_frm_kdc.c Removed krb5_enctype argument passed to
krb5_get_cred_via_tgt()
* send_tgs.c (krb5_send_tgs()) Changed krb5_enctype arg to
krb5_enctype *, a NULL terminated array of encryption
types. If argument is NULL then krb5_send_tgs() will
use defaul list of encryption types.
* send_tgs.c (krb5_send_tgs()) To encrypt request ticket use
usecred->keyblock.etype instead of (and now defunct)
krb5_enctype arg.
* init_ctx.c Added krb5_set_default_in_tkt_etypes() and
krb5_get_default_in_tkt_etypes().
* rd_req.c, rd_req_decode.c Removed typedef for rdreq_key_proc
and use krb5_rd_req_decoded in its place.
* get_fcreds.c Really needs #include<krb5/asn1.h> for definition
of krb5_is_krb_error()
Chris Provenzano [Fri, 27 Jan 1995 06:56:33 +0000 (06:56 +0000)]
* Fix scc_read.c (krb5_scc_read_authdatum()) krb5_authdatatype
is of type unsigned int and therefore shouldn't be the
argument to krb5_scc_read_ui_2().
Chris Provenzano [Fri, 27 Jan 1995 06:56:14 +0000 (06:56 +0000)]
* Fix fcc_read.c (krb5_fcc_read_authdatum()) krb5_authdatatype
is of type unsigned int and therefore shouldn't be the
argument to krb5_fcc_read_ui_2().
Chris Provenzano [Fri, 27 Jan 1995 06:38:58 +0000 (06:38 +0000)]
* base-defs.h Typedef krb5_boolean, krb5_msgtype, krb5_kvno,
krb5_addrtype, krb5_keytyp, krb5_enctype, krb5_cksumtype,
and krb5_authdatatype as unsigned int.
* kdb_dbm.h krb5_dbm_db_set_lockmode(), krb5_dbm_db_set_nonblocking()
Fix prototypes to use krb5_boolean and not int.
* kdb.h krb5_db_set_lockmode(), krb5_db_set_nonblocking()
Fix prototypes to use krb5_boolean and not int.
Chris Provenzano [Fri, 27 Jan 1995 01:27:01 +0000 (01:27 +0000)]
* base-defs.h Typedef krb5_boolean, krb5_msgtype, krb5_kvno,
krb5_addrtype, krb5_keytyp, krb5_enctype, krb5_cksumtype,
and krb5_authdatatype as unsigned int.
* kdb_dbm.h krb5_dbm_db_set_lockmode(), krb5_dbm_db_set_nonblocking()
Fix prototypes to use krb5_boolean and not int.
* kdb.h krb5_db_set_lockmode(), krb5_db_set_nonblocking()
Fix prototypes to use krb5_boolean and not int.
Theodore Tso [Thu, 26 Jan 1995 04:21:45 +0000 (04:21 +0000)]
Allow the primary port that the KDC listens on be configurable on the
command line. If the appropriate /etc/services entries aren't found,
use compiled in defaults.