krb5.git
29 years agoChange prototypes of auth_enable() and auth_disable() to be a char *
Theodore Tso [Tue, 8 Nov 1994 03:43:16 +0000 (03:43 +0000)]
Change prototypes of auth_enable() and auth_disable() to be a char *

Print an error message if there are no arguments to "auth" or
"encrypt", instead of core dumping.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4638 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoChange the input type to be a char *, which is what auth_onoff wants anyway
Theodore Tso [Tue, 8 Nov 1994 03:42:10 +0000 (03:42 +0000)]
Change the input type to be a char *, which is what auth_onoff wants anyway

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4637 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't define time() manually; pull it in from <time.h>
Theodore Tso [Tue, 8 Nov 1994 03:31:30 +0000 (03:31 +0000)]
Don't define time() manually; pull it in from <time.h>

Add checking for whether we should be pulling in <time.h> and <sys/time.h>

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4636 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd check for util library (needed for the Alpha)
Theodore Tso [Tue, 8 Nov 1994 03:17:51 +0000 (03:17 +0000)]
Add check for util library (needed for the Alpha)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4635 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoFix lineage check so that we don't fail if we're cross-authenticating
Theodore Tso [Tue, 8 Nov 1994 03:14:31 +0000 (03:14 +0000)]
Fix lineage check so that we don't fail if we're cross-authenticating
with a realm with the same length as our own.  ('||' should have been '&&')

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4634 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoUse published interface to call krb5_random_key()
Theodore Tso [Tue, 8 Nov 1994 03:13:58 +0000 (03:13 +0000)]
Use published interface to call krb5_random_key()

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4633 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoChecked in Richard's changes of November 2nd. (See changelog). Lots of
Theodore Tso [Tue, 8 Nov 1994 02:37:55 +0000 (02:37 +0000)]
Checked in Richard's changes of November 2nd.  (See changelog).  Lots of
portability fixes: POSIX_SIGNALS, POSIX_SETJMP, use of POSIX waitpid, etc.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4632 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdded checks POSIX setjmp handling and POSIX signal handling
Theodore Tso [Tue, 8 Nov 1994 02:29:39 +0000 (02:29 +0000)]
Added checks POSIX setjmp handling and POSIX signal handling
(CHECK_SETJMP, CHECK_SIGNALS)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4631 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoUse POSIX method of obtaining fd table size, if available
Theodore Tso [Tue, 8 Nov 1994 02:23:44 +0000 (02:23 +0000)]
Use POSIX method of obtaining fd table size, if available

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4630 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoMissing comma on all of the error_code lines. (Oops!)
Theodore Tso [Sat, 5 Nov 1994 00:45:29 +0000 (00:45 +0000)]
Missing comma on all of the error_code lines.  (Oops!)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4629 dc483132-0cff-0310-8789-dd5450dbe970

29 years agomake this not zero length
Mark Eichin [Fri, 4 Nov 1994 04:59:05 +0000 (04:59 +0000)]
make this not zero length

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4628 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * Makefile.in: stop building f_pcbc.c, since it belongs in
Mark Eichin [Thu, 3 Nov 1994 23:33:21 +0000 (23:33 +0000)]
* Makefile.in: stop building f_pcbc.c, since it belongs in
libdes425, but leave it here for reference.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4627 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * pcbc_encrypt.c: moved from f_pcbc.c in lib/crypto/des, and
Mark Eichin [Thu, 3 Nov 1994 23:31:51 +0000 (23:31 +0000)]
* pcbc_encrypt.c: moved from f_pcbc.c in lib/crypto/des, and
inlined proper des.h to avoid confusion in names.
* Makefile.in: add -I to CFLAGS to get f_tables.h from
lib/crypto/des as well.

this shouldn't have been in lib/crypto/des in the first place, and the old
version here was nonportable.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4626 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdded a field to hold an encryption type in the keyblock field --- so
Theodore Tso [Thu, 3 Nov 1994 21:47:47 +0000 (21:47 +0000)]
Added a field to hold an encryption type in the keyblock field --- so
routines have a hint of which encryption type they should use.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4625 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd support for the kv5m error table. (For magic numbers.)
Theodore Tso [Thu, 3 Nov 1994 21:44:42 +0000 (21:44 +0000)]
Add support for the kv5m error table.  (For magic numbers.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4624 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd the kv5m error table
Theodore Tso [Thu, 3 Nov 1994 21:43:58 +0000 (21:43 +0000)]
Add the kv5m error table

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4623 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd WITH_CPPOPTS since we're not using CONFIG_RULES (yet)
Theodore Tso [Thu, 3 Nov 1994 04:14:24 +0000 (04:14 +0000)]
Add WITH_CPPOPTS since we're not using CONFIG_RULES (yet)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4622 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoWe're probably not going to be building in the top-level directory,
Theodore Tso [Thu, 3 Nov 1994 04:13:58 +0000 (04:13 +0000)]
We're probably not going to be building in the top-level directory,
but even so, the CFLAGS should include $(DEFS).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4621 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't actually add the $(CPPOPTS) flags to CPPFLAGS; CPPFLAGS has them
Theodore Tso [Thu, 3 Nov 1994 03:56:08 +0000 (03:56 +0000)]
Don't actually add the $(CPPOPTS) flags to CPPFLAGS; CPPFLAGS has them
defined already.  In fact, don't define the CPPOPTS makefile variable
at all; we don't need it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4620 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't recursively pass the CPPOPTS makefile variable down to subdirectories
Theodore Tso [Thu, 3 Nov 1994 03:53:31 +0000 (03:53 +0000)]
Don't recursively pass the CPPOPTS makefile variable down to subdirectories

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4619 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoNULL should not be used as a character assignment value. Use '\0' instead
Theodore Tso [Thu, 3 Nov 1994 02:12:40 +0000 (02:12 +0000)]
NULL should not be used as a character assignment value.  Use '\0' instead

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4618 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoNULL should not be used as a character assignment value. Use '\0'
Theodore Tso [Thu, 3 Nov 1994 02:09:05 +0000 (02:09 +0000)]
NULL should not be used as a character assignment value.  Use '\0'
instead.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4617 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd support for a new --with-cppopts" value where you can put -DXXXXX
Theodore Tso [Thu, 3 Nov 1994 02:05:05 +0000 (02:05 +0000)]
Add support for a new --with-cppopts" value where you can put -DXXXXX
such that they are found by autoconf tests that use run the
preprocessor over header files.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4616 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd support for a new "--with-cppopts" value where you can put -DXXXXX
Theodore Tso [Thu, 3 Nov 1994 02:03:10 +0000 (02:03 +0000)]
Add support for a new "--with-cppopts" value where you can put -DXXXXX
such that they are found by autoconf tests that use run the
preprocessor over header files.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4615 dc483132-0cff-0310-8789-dd5450dbe970

29 years agorevert misguided kstash changes
Mark Eichin [Wed, 2 Nov 1994 18:56:46 +0000 (18:56 +0000)]
revert misguided kstash changes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4614 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * Makefile.in (libkrb5.a): done needs a trailing semicolon if it
Mark Eichin [Wed, 2 Nov 1994 07:40:16 +0000 (07:40 +0000)]
* Makefile.in (libkrb5.a): done needs a trailing semicolon if it
isn't followed by a newline, as does fi, with certain shells.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4613 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoInclude the tag numbers for the krb5 application tags, since that's
Theodore Tso [Wed, 2 Nov 1994 02:07:33 +0000 (02:07 +0000)]
Include the tag numbers for the krb5 application tags, since that's
something we're going to want to check to make sure they're actually
correct.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4612 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd the "-t option to krb5_encode_test, which causes it to use the
Theodore Tso [Wed, 2 Nov 1994 02:01:14 +0000 (02:01 +0000)]
Add the "-t option to krb5_encode_test, which causes it to use the
ASN.1 unparser found in trval.c.  This routine will attempt to decode
the ASN.1 data stream and display it in a logical format for a human
being to decipher.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4611 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoUse library.stamp to determine whether or not $arcmd needs to be rerun
Theodore Tso [Wed, 2 Nov 1994 01:52:41 +0000 (01:52 +0000)]
Use library.stamp to determine whether or not $arcmd needs to be rerun

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4610 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * kdb5_stash.c (main): added -o option to read a Kerberos V4
Mark Eichin [Wed, 2 Nov 1994 01:43:48 +0000 (01:43 +0000)]
* kdb5_stash.c (main): added -o option to read a Kerberos V4
kstash'ed master key.
(usage): mention it in the usage message.
* kdb5_stash.M: document it.

Necessary for practical conversion of a functioning v4 realm...

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4609 dc483132-0cff-0310-8789-dd5450dbe970

29 years agotouch the library first, before running $aradd, in case changing the
Theodore Tso [Wed, 2 Nov 1994 01:22:47 +0000 (01:22 +0000)]
touch the library first, before running $aradd, in case changing the
mod time of the library after running $aradd causes problems on some
systems.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4608 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoadd "ls" and "touch" since libupdate uses them
Theodore Tso [Wed, 2 Nov 1994 01:20:04 +0000 (01:20 +0000)]
add "ls" and "touch" since libupdate uses them

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4607 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoChange use of "head -1" to "sed 1q"
Theodore Tso [Wed, 2 Nov 1994 01:18:31 +0000 (01:18 +0000)]
Change use of "head -1" to "sed 1q"

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4606 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * adm_listen.c (kill_children): use sigprocmask if available
Mark Eichin [Tue, 1 Nov 1994 23:24:08 +0000 (23:24 +0000)]
* adm_listen.c (kill_children): use sigprocmask if available

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4605 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoChange the way the library is built to use the libupdate script
Theodore Tso [Tue, 1 Nov 1994 19:57:42 +0000 (19:57 +0000)]
Change the way the library is built to use the libupdate script

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4604 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAlso clean up config.log, pre.out, post.out and Makefile.out
Theodore Tso [Tue, 1 Nov 1994 19:56:08 +0000 (19:56 +0000)]
Also clean up config.log, pre.out, post.out and Makefile.out

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4603 dc483132-0cff-0310-8789-dd5450dbe970

29 years agolibupdate.sh: Add support for the new libupdate shell script. It
Theodore Tso [Tue, 1 Nov 1994 19:53:16 +0000 (19:53 +0000)]
libupdate.sh: Add support for the new libupdate shell script.  It
automatically updates a library from a file listing of constituent .o
files.  It only calls "ar" if it absolutely has to, in order to speed
things up for partial recompilations.  (ar is dreadfully slow if
you're using one based on the BFD library.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4602 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoBack out POSIX_FILE_LOCKS change. (Should be depending on autoconf.h
Theodore Tso [Mon, 31 Oct 1994 22:06:01 +0000 (22:06 +0000)]
Back out POSIX_FILE_LOCKS change.  (Should be depending on autoconf.h
to supply this #define if necessary.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4601 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoMove WITH_CCOPTS and WITH_KRB5ROOT to the beginning of the file.
Theodore Tso [Mon, 31 Oct 1994 19:45:09 +0000 (19:45 +0000)]
Move WITH_CCOPTS and WITH_KRB5ROOT to the beginning of the file.
Otherwise the other tests won't get the CCOPTS flags correct while
doing the feature tests.

(We need to make sure WITH_CCOPTS is at the beginning of all
configure.in scripts!)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4600 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * ranlib.conf: new file. some svr4 need ranlib too
Mark Eichin [Fri, 28 Oct 1994 23:19:25 +0000 (23:19 +0000)]
* ranlib.conf: new file. some svr4 need ranlib too

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4599 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * gcc.conf (CC_OPTS): don't set CC_OPTS until we figure out
Mark Eichin [Fri, 28 Oct 1994 23:06:53 +0000 (23:06 +0000)]
* gcc.conf (CC_OPTS): don't set CC_OPTS until we figure out
quoting again.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4598 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoshow contents of path too
Mark Eichin [Fri, 28 Oct 1994 23:05:34 +0000 (23:05 +0000)]
show contents of path too

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4597 dc483132-0cff-0310-8789-dd5450dbe970

29 years agofix tests
Mark Eichin [Fri, 28 Oct 1994 23:00:47 +0000 (23:00 +0000)]
fix tests

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4596 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoRemove duplicate definitions for DEFs, CC, CCOPTS and LIBS
Theodore Tso [Fri, 28 Oct 1994 02:33:15 +0000 (02:33 +0000)]
Remove duplicate definitions for DEFs, CC, CCOPTS and LIBS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4595 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * login.c (main): if CSTATUS is missing, don't set c_cc[VSTATUS]
Mark Eichin [Fri, 28 Oct 1994 00:08:14 +0000 (00:08 +0000)]
* login.c (main): if CSTATUS is missing, don't set c_cc[VSTATUS]
(for sunos.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4594 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoautoconf 2.0 release
Mark Eichin [Thu, 27 Oct 1994 22:08:57 +0000 (22:08 +0000)]
autoconf 2.0 release

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4593 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * krlogin.c (des_write): get rid of srandom, since seeding is done
Mark Eichin [Thu, 27 Oct 1994 20:15:00 +0000 (20:15 +0000)]
* krlogin.c (des_write): get rid of srandom, since seeding is done
directly in krb5_random_confounder. get rid of unused variables.
* krlogind.c (v4_des_write): use krb5_random_confounder
directly. get rid of unused variables.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4592 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * login.c (main): if CDISCARD is missing, use CFLUSH instead
Mark Eichin [Thu, 27 Oct 1994 18:51:43 +0000 (18:51 +0000)]
* login.c (main): if CDISCARD is missing, use CFLUSH instead

* configure.in: fix typo in "use streams interface" test (ttold.h
not ttyold.h)

appl/bsd now builds on solaris.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4591 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * configure.in: check for srand48, srand, and srandom.
Mark Eichin [Thu, 27 Oct 1994 18:33:35 +0000 (18:33 +0000)]
* configure.in: check for srand48, srand, and srandom.
* krlogind.c (v4_des_write): use the best available of the three
random number systems for padding (based on code from
lib/crypto/os/rnd_confoun.c.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4590 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdded first cut of lists of operating systems that have various sorts
Theodore Tso [Thu, 27 Oct 1994 06:13:50 +0000 (06:13 +0000)]
Added first cut of lists of operating systems that have various sorts
of bugs in the operating system that causes problems with building or
runing Kerberos 5.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4585 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoautoreconf.local is a locally modified version of autoreconf that will
Theodore Tso [Thu, 27 Oct 1994 06:03:53 +0000 (06:03 +0000)]
autoreconf.local is a locally modified version of autoreconf that will
only rebuild configure files if they need to be (i.e., if configure.in
or aclocal.4 are more recently updated than configure).

reconf has been modified to use it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4584 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoIf the requested kvno is IGNORE_KVNO, fix the error return so that 0
Theodore Tso [Wed, 26 Oct 1994 23:35:10 +0000 (23:35 +0000)]
If the requested kvno is IGNORE_KVNO, fix the error return so that 0
(no error) is returned instead of KTF_NOT_FOUND.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4583 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd verification checks to the test suite
Theodore Tso [Wed, 26 Oct 1994 23:33:25 +0000 (23:33 +0000)]
Add verification checks to the test suite

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4582 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoControl -g/-O via $(CCOPTS)
Theodore Tso [Wed, 26 Oct 1994 23:32:32 +0000 (23:32 +0000)]
Control -g/-O via $(CCOPTS)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4581 dc483132-0cff-0310-8789-dd5450dbe970

29 years agomove for autoreconf to find it
Mark Eichin [Wed, 26 Oct 1994 21:22:34 +0000 (21:22 +0000)]
move for autoreconf to find it

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4580 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoRegenerated configure from configure.in using the latest Autoconf;
Theodore Tso [Wed, 26 Oct 1994 19:37:16 +0000 (19:37 +0000)]
Regenerated configure from configure.in using the latest Autoconf;
otherwise, the generated Makefile would blow out because the it looks
configure scripts generated by 1.125 used @PROGS@, and scripts
generated by 1.126 used @SCRIPTS@, and @SCRIPTS@ wasn't getting
substituted correctly in the Makefile.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4579 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoautoconf v2 testsuite
Mark Eichin [Wed, 26 Oct 1994 06:04:44 +0000 (06:04 +0000)]
autoconf v2 testsuite

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4578 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoautoconf 1.126. This will be released as autoconf 2 on 94/10/27, please
Mark Eichin [Wed, 26 Oct 1994 05:57:22 +0000 (05:57 +0000)]
autoconf 1.126. This will be released as autoconf 2 on 94/10/27, please
don't release before then without checking with Mark Eichin.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4577 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoConversion of autoconfigury to Autoconf V2
Mark Eichin [Wed, 26 Oct 1994 05:45:56 +0000 (05:45 +0000)]
Conversion of autoconfigury to Autoconf V2

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4576 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoCheck for both EAGAIN in addition to EWOULDBLOCK
Theodore Tso [Wed, 26 Oct 1994 04:18:54 +0000 (04:18 +0000)]
Check for both EAGAIN in addition to EWOULDBLOCK

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4575 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoIf the header files have strdup, don't try to redefine it
Theodore Tso [Wed, 26 Oct 1994 03:55:31 +0000 (03:55 +0000)]
If the header files have strdup, don't try to redefine it

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4574 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdded missing continue so that we don't copy both the unprintable
Theodore Tso [Wed, 26 Oct 1994 03:39:46 +0000 (03:39 +0000)]
Added missing continue so that we don't copy both the unprintable
character as well as the quoted version of it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4573 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoOnce more, with the current type!
Theodore Tso [Wed, 26 Oct 1994 03:36:19 +0000 (03:36 +0000)]
Once more, with the current type!

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4572 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdded missing declaration for retval variable
Theodore Tso [Wed, 26 Oct 1994 03:32:35 +0000 (03:32 +0000)]
Added missing declaration for retval variable

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4571 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd include config.h for POSIX_FILE_LOCKS
Theodore Tso [Mon, 24 Oct 1994 20:36:43 +0000 (20:36 +0000)]
Add include config.h for POSIX_FILE_LOCKS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4570 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoThe Kerberos V4 libraries must be linked in after the V5 libraries;
Theodore Tso [Mon, 24 Oct 1994 20:20:46 +0000 (20:20 +0000)]
The Kerberos V4 libraries must be linked in after the V5 libraries;
compat_recvauth pulls in the V4 routines.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4569 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoIf KRB4 is defined, define KRB5_KRB4_COMPAT for compat_recv.c
Theodore Tso [Mon, 24 Oct 1994 20:12:05 +0000 (20:12 +0000)]
If KRB4 is defined, define KRB5_KRB4_COMPAT for compat_recv.c

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4568 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoUse the srand48/lrand48 functions if available
Theodore Tso [Mon, 24 Oct 1994 19:29:47 +0000 (19:29 +0000)]
Use the srand48/lrand48 functions if available

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4563 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't free host_save; it's supposed to be returned by kcmd to the
Theodore Tso [Mon, 24 Oct 1994 19:29:08 +0000 (19:29 +0000)]
Don't free host_save; it's supposed to be returned by kcmd to the
caller!

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4562 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't check for srand48 and then try to define srandom to be srand48.
Theodore Tso [Mon, 24 Oct 1994 19:27:47 +0000 (19:27 +0000)]
Don't check for srand48 and then try to define srandom to be srand48.
This breaks on machines which have both srandom and srand48.  Instead,
change krlogin to use krb5_random_confounder; it will do the right
thing.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4561 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoOnly rerun autoconf if the configure.in file is more recent than the configure
Theodore Tso [Mon, 24 Oct 1994 19:01:21 +0000 (19:01 +0000)]
Only rerun autoconf if the configure.in file is more recent than the configure
file.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4560 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd AC_RETSIGTYPE to get proper return type for signal hanlders
Theodore Tso [Mon, 24 Oct 1994 18:38:32 +0000 (18:38 +0000)]
Add AC_RETSIGTYPE to get proper return type for signal hanlders

Makefile.in: Don't specify an explicit pathname for sed.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4559 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't specify an explicit pathname for sed
Theodore Tso [Mon, 24 Oct 1994 18:36:54 +0000 (18:36 +0000)]
Don't specify an explicit pathname for sed

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4558 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAllow kdc_hammer to be called on an arbitrary realm
Theodore Tso [Mon, 24 Oct 1994 18:33:19 +0000 (18:33 +0000)]
Allow kdc_hammer to be called on an arbitrary realm

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4557 dc483132-0cff-0310-8789-dd5450dbe970

29 years agokdb5_verify.c: Check principals with correct realm name
Theodore Tso [Mon, 24 Oct 1994 18:32:22 +0000 (18:32 +0000)]
kdb5_verify.c: Check principals with correct realm name

configure.in: Look for ndbm or dbm libraries

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4556 dc483132-0cff-0310-8789-dd5450dbe970

29 years agokdb5_mkdums.c: Create principals with correct realm name
Theodore Tso [Mon, 24 Oct 1994 18:31:38 +0000 (18:31 +0000)]
kdb5_mkdums.c: Create principals with correct realm name

configure.in: Look for ndbm or dbm libraries

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4555 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDo checks for depth = 5
Theodore Tso [Mon, 24 Oct 1994 18:30:23 +0000 (18:30 +0000)]
Do checks for depth = 5

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4554 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't need to define POSIX_FILE_LOCKS; just include config.h instead
Theodore Tso [Mon, 24 Oct 1994 18:29:22 +0000 (18:29 +0000)]
Don't need to define POSIX_FILE_LOCKS; just include config.h instead

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4553 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoRemove header file from include directory when doing a make clean
Theodore Tso [Mon, 24 Oct 1994 18:26:59 +0000 (18:26 +0000)]
Remove header file from include directory when doing a make clean

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4552 dc483132-0cff-0310-8789-dd5450dbe970

29 years agosanity checkin again
Tom Yu [Fri, 21 Oct 1994 04:54:27 +0000 (04:54 +0000)]
sanity checkin again

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4550 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoSelect the cryptosystem to be used using krb5_use_cstype() instead of
Theodore Tso [Wed, 19 Oct 1994 22:55:34 +0000 (22:55 +0000)]
Select the cryptosystem to be used using krb5_use_cstype() instead of
using a implementation specific assignment.  Also, allow the
encryption type to be specified using a command line option.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4546 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoChange one last variable to be an unsigned char
Theodore Tso [Wed, 19 Oct 1994 21:36:58 +0000 (21:36 +0000)]
Change one last variable to be an unsigned char

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4545 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoAdd other termios c_cc initializations for the ALPHA
Theodore Tso [Wed, 19 Oct 1994 16:41:45 +0000 (16:41 +0000)]
Add other termios c_cc initializations for the ALPHA

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4544 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoMake protocol buffers be unsigned, since we're comparing against
Theodore Tso [Wed, 19 Oct 1994 16:39:09 +0000 (16:39 +0000)]
Make protocol buffers be unsigned, since we're comparing against
unsigned data.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4543 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoObey CCOPTS in CFLAGS declaration
Theodore Tso [Wed, 19 Oct 1994 16:33:41 +0000 (16:33 +0000)]
Obey CCOPTS in CFLAGS declaration

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4542 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoDon't use LDFLAGS, but CCFLAGS since CCFLAGS is configurable
Theodore Tso [Wed, 19 Oct 1994 16:28:43 +0000 (16:28 +0000)]
Don't use LDFLAGS, but CCFLAGS since CCFLAGS is configurable

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4541 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoLook for man page in the source directory
Theodore Tso [Wed, 19 Oct 1994 16:22:19 +0000 (16:22 +0000)]
Look for man page in the source directory

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4540 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoFix missing $(DESTDIR) in "make install" lines
Theodore Tso [Wed, 19 Oct 1994 16:21:44 +0000 (16:21 +0000)]
Fix missing $(DESTDIR) in "make install" lines

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4539 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoExit with a non-zero exit status when the test suite detects any errors
Theodore Tso [Wed, 19 Oct 1994 15:58:23 +0000 (15:58 +0000)]
Exit with a non-zero exit status when the test suite detects any errors

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4538 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoClear the kvno field when destroying encrypted data
Theodore Tso [Wed, 19 Oct 1994 15:46:04 +0000 (15:46 +0000)]
Clear the kvno field when destroying encrypted data

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4537 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoasn1_decode_k.c (asn1_decode_kdc_req_body): If the authorization field
Theodore Tso [Wed, 19 Oct 1994 15:45:23 +0000 (15:45 +0000)]
asn1_decode_k.c (asn1_decode_kdc_req_body): If the authorization field
is not present, fill in the authorization data fields with all zeros.
Don't set kvno (that's *key* version number, not *Kerberos* version
number) to 5.

err2kerr.c (KRB5_KRB__ERROR2krb5_error): The e_data field wasn't being
decoded when it should have been.

qbuf2data.c (qbuf2krb5_data): Set magic number field to zero.

tgrq2ktgrq.c (KRB5_KDC__REQ__BODY2krb5_kdc_req): Allow the service
principal to be optional.

ktgrq2tgrq.c (krb5_kdc_req2KRB5_KDC__REQ__BODY): ditto

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4536 dc483132-0cff-0310-8789-dd5450dbe970

29 years agosanity checkin
Tom Yu [Wed, 19 Oct 1994 15:14:29 +0000 (15:14 +0000)]
sanity checkin

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4535 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoMakefile.in: "make check" depends on krb5_decode_test and
Theodore Tso [Wed, 19 Oct 1994 14:37:37 +0000 (14:37 +0000)]
Makefile.in: "make check" depends on krb5_decode_test and
krb5_encode_test being up to date.

ktest_equal.c: Don't segfault if one of the arguments is NULL and the
other is not in array_compare.

krb5_decode_test.c: Use krb5_init_ets() instead of explicitly naming
the error tables to initialize.

utility.c: Remove unused routine, and return EINVAL instead of
ASN1_PARSE_ERROR in krb5_data_hex_parse, since the ASN1 error codes
aren't defined if the ISODE routines are being used.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4534 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * krlogind.c: use HAVE_STREAMS, fix TIOCPKT_* test
Mark Eichin [Tue, 18 Oct 1994 20:25:34 +0000 (20:25 +0000)]
* krlogind.c: use HAVE_STREAMS, fix TIOCPKT_* test

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4533 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * raw-des.c (mit_raw_des_decrypt_func): ditto.
Mark Eichin [Tue, 18 Oct 1994 20:14:53 +0000 (20:14 +0000)]
* raw-des.c (mit_raw_des_decrypt_func): ditto.
(mit_raw_des_encrypt_func): ditto.
* des-md5.c (mit_des_md5_decrypt_funct): cast zero_ivec.
(mit_des_md5_encrypt_funct): ditto.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4532 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * des-crc.c (mit_des_crc_decrypt_func): cast key->key->contents to
Mark Eichin [Tue, 18 Oct 1994 19:51:53 +0000 (19:51 +0000)]
* des-crc.c (mit_des_crc_decrypt_func): cast key->key->contents to
krb5_pointer to satisfy sunos cc about :? argument types.
(mit_des_crc_encrypt_funct): ditto.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4531 dc483132-0cff-0310-8789-dd5450dbe970

29 years ago * configure.in (HAVE_STREAMS): test for streams interface headers
Mark Eichin [Tue, 18 Oct 1994 19:50:06 +0000 (19:50 +0000)]
* configure.in (HAVE_STREAMS): test for streams interface headers
in a way that fails on sunos but works on solaris.
* krlogin.c: use HAVE_STREAMS.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4530 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoadd sort for make check
Mark Eichin [Tue, 18 Oct 1994 18:53:08 +0000 (18:53 +0000)]
add sort for make check

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4529 dc483132-0cff-0310-8789-dd5450dbe970

29 years agoClean up the test.out file
Theodore Tso [Mon, 17 Oct 1994 19:28:15 +0000 (19:28 +0000)]
Clean up the test.out file

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4519 dc483132-0cff-0310-8789-dd5450dbe970

30 years agoAdd ISODE_DEFS
Theodore Tso [Sat, 15 Oct 1994 03:53:49 +0000 (03:53 +0000)]
Add ISODE_DEFS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4518 dc483132-0cff-0310-8789-dd5450dbe970