krb5.git
30 years agoMake sure mod time on the dump_ok file is updated. (Some systems
Theodore Tso [Thu, 29 Sep 1994 20:54:22 +0000 (20:54 +0000)]
Make sure mod time on the dump_ok file is updated.  (Some systems
don't update the mod-time when a file is opened for writing.)

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

30 years agoRelink executable when libraries change
Theodore Tso [Thu, 29 Sep 1994 20:50:48 +0000 (20:50 +0000)]
Relink executable when libraries change

Apply suggested change from Openvision so that principals with spaces
in their names can be read in.

Pass variable with correct type to ctime().

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

30 years agoOops.. Missing close brace
Theodore Tso [Thu, 29 Sep 1994 20:33:59 +0000 (20:33 +0000)]
Oops..  Missing close brace

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

30 years agoExit with a non-zero status if there was an error in an executed command.
Theodore Tso [Thu, 29 Sep 1994 20:27:35 +0000 (20:27 +0000)]
Exit with a non-zero status if there was an error in an executed command.
(Useful when the -R option is used in a shell-script.)

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

30 years agoAdd support for KRB5_KDCREP_SKEW error code
Theodore Tso [Thu, 29 Sep 1994 19:46:22 +0000 (19:46 +0000)]
Add support for KRB5_KDCREP_SKEW error code

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

30 years agoAdded new error codes (from suggested changes from Openvision)
Theodore Tso [Thu, 29 Sep 1994 19:43:18 +0000 (19:43 +0000)]
Added new error codes (from suggested changes from Openvision)

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

30 years agoReturn new error codes KRB5_IN_TKT_REALM_MISTCH and KRB5_KDCREP_SKEW
Theodore Tso [Thu, 29 Sep 1994 19:39:52 +0000 (19:39 +0000)]
Return new error codes KRB5_IN_TKT_REALM_MISTCH and KRB5_KDCREP_SKEW
instead of more generic error codes.

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

30 years agoAdded realm compare function
Theodore Tso [Thu, 29 Sep 1994 19:29:34 +0000 (19:29 +0000)]
Added realm compare function

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

30 years agoAlways fill in a NULL for a zero-length char string or octet string in
Theodore Tso [Thu, 29 Sep 1994 18:44:51 +0000 (18:44 +0000)]
Always fill in a NULL for a zero-length char string or octet string in
asn1_remove_charstring or asn1_remove_octetstring.  This means we do
the same thing no matter whether the system returns NULL for malloc(0) or not.

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

30 years agoReturn the most recent key (with the greatest kvno) instead of the
Theodore Tso [Thu, 29 Sep 1994 18:40:00 +0000 (18:40 +0000)]
Return the most recent key (with the greatest kvno) instead of the
first key found in the keytab file.

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

30 years agonot quite first cut "safety" checkin
Tom Yu [Thu, 29 Sep 1994 04:39:35 +0000 (04:39 +0000)]
not quite first cut "safety" checkin

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

30 years agoRelink executable when library changes
Theodore Tso [Thu, 29 Sep 1994 04:04:56 +0000 (04:04 +0000)]
Relink executable when library changes

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

30 years ago (K4LIB): add libdes.a, needed for des_pcbc_encrypt
Mark Eichin [Thu, 29 Sep 1994 03:41:48 +0000 (03:41 +0000)]
(K4LIB): add libdes.a, needed for des_pcbc_encrypt

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

30 years agoupdated as pre Barr3y's comments (forgot to check in earlier)
Tom Yu [Thu, 29 Sep 1994 02:33:50 +0000 (02:33 +0000)]
updated as pre Barr3y's comments (forgot to check in earlier)

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

30 years ago * configure.in (srand48): check for srand48, and if it exists,
Mark Eichin [Thu, 29 Sep 1994 01:04:59 +0000 (01:04 +0000)]
* configure.in (srand48): check for srand48, and if it exists,
substitute it for srandom (and lrand48 for random.)

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

30 years agoWed Sep 28 14:36:29 1994 Mark Eichin (eichin@rtl.cygnus.com)
Mark Eichin [Wed, 28 Sep 1994 21:44:18 +0000 (21:44 +0000)]
Wed Sep 28 14:36:29 1994  Mark Eichin  (eichin@rtl.cygnus.com)

* Makefile.in: always put $(K4LIB) before $(KLIB) so that
references to libcrypto.a get resolved.

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

30 years agoget NULL from stdio for sunos
Mark Eichin [Wed, 28 Sep 1994 20:36:26 +0000 (20:36 +0000)]
get NULL from stdio for sunos

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

30 years ago= should have been == in commented out code
Theodore Tso [Wed, 28 Sep 1994 03:33:29 +0000 (03:33 +0000)]
= should have been == in commented out code

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

30 years agoFix to reflect fact that krb5_rc_dfl_close() now frees the rcache structure
Theodore Tso [Wed, 28 Sep 1994 03:32:08 +0000 (03:32 +0000)]
Fix to reflect fact that krb5_rc_dfl_close() now frees the rcache structure

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

30 years agofix initial test/square-bracket bug
Mark Eichin [Wed, 28 Sep 1994 00:17:46 +0000 (00:17 +0000)]
fix initial test/square-bracket bug

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

30 years agoMark this as OV confidential. It's ugly but it'll do for now
Jon Rochlis [Fri, 23 Sep 1994 20:22:58 +0000 (20:22 +0000)]
Mark this as OV confidential. It's ugly but it'll do for now

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

30 years agoChange the interface of krb5_ktfile_read_entry and
Theodore Tso [Fri, 23 Sep 1994 02:55:29 +0000 (02:55 +0000)]
Change the interface of krb5_ktfile_read_entry and
krb5_ktfile_internal_read_entry so that they don't allocate memory for
the top-level structure.  All of their callers didn't need it and were
freeing it anyway.

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

30 years agoAdd dependencies for the libraries (so the executables are automatically
Theodore Tso [Fri, 23 Sep 1994 02:48:49 +0000 (02:48 +0000)]
Add dependencies for the libraries (so the executables are automatically
relinked when the libraries change)

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

30 years agoMake sure all object files are removed in a make clean operation
Theodore Tso [Fri, 23 Sep 1994 02:47:21 +0000 (02:47 +0000)]
Make sure all object files are removed in a make clean operation

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

30 years agoFix memory leak in klist --- the returned credentials should be freed before
Theodore Tso [Fri, 23 Sep 1994 02:42:51 +0000 (02:42 +0000)]
Fix memory leak in klist --- the returned credentials should be freed before
the next set is fetched.

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

30 years agoxfree() should have been krb5_xfree()
Theodore Tso [Fri, 23 Sep 1994 02:31:58 +0000 (02:31 +0000)]
xfree() should have been krb5_xfree()

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

30 years agoOops. One more free needed to be inserted
Theodore Tso [Fri, 23 Sep 1994 01:54:30 +0000 (01:54 +0000)]
Oops.  One more free needed to be inserted

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

30 years agoFix memory leak caused by not freeing top-level structure
Theodore Tso [Fri, 23 Sep 1994 01:53:08 +0000 (01:53 +0000)]
Fix memory leak caused by not freeing top-level structure

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

30 years agoTighten up wording of krb5_cc_destroy and krb5_cc_close to make it clear
Theodore Tso [Fri, 23 Sep 1994 01:46:17 +0000 (01:46 +0000)]
Tighten up wording of krb5_cc_destroy and krb5_cc_close to make it clear
that the credentials cache object is freed.

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

30 years agoMake sure memory associated the credentials cache is freed after the
Theodore Tso [Fri, 23 Sep 1994 01:39:18 +0000 (01:39 +0000)]
Make sure memory associated the credentials cache is freed after the
cache is destroyed.

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

30 years agoFix silly spelling typo
Theodore Tso [Fri, 23 Sep 1994 01:30:17 +0000 (01:30 +0000)]
Fix silly spelling typo

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

30 years agoFix typo in comment. (Silly spelling mistake)
Theodore Tso [Fri, 23 Sep 1994 01:16:21 +0000 (01:16 +0000)]
Fix typo in comment.  (Silly spelling mistake)

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

30 years agoFix so that autoconf actually checks for bison/yacc/byacc, so that systems
Theodore Tso [Fri, 23 Sep 1994 01:14:35 +0000 (01:14 +0000)]
Fix so that autoconf actually checks for bison/yacc/byacc, so that systems
without yacc will win.  (Previously, the com_err and ss libraries assumed that
yacc existed.)

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

30 years agoFix order of autoconf macros so that the tests can find CC properly.
Theodore Tso [Fri, 23 Sep 1994 00:49:31 +0000 (00:49 +0000)]
Fix order of autoconf macros so that the tests can find CC properly.
(WITH_CCOPTS was too late in the file.  We need a standard order to be
documented and enforced!)

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

30 years agoApplied Cybersafe's changes to do transited realm path checking
Theodore Tso [Thu, 22 Sep 1994 16:39:53 +0000 (16:39 +0000)]
Applied Cybersafe's changes to do transited realm path checking

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

30 years agoFix memory leak in decode timestamp return
Theodore Tso [Wed, 21 Sep 1994 20:55:11 +0000 (20:55 +0000)]
Fix memory leak in decode timestamp return

Initialize return variable in decode_krb5_authdata()

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

30 years agoFix typo which was causing krb5_encode_test.c to fail due to trying to
Theodore Tso [Wed, 21 Sep 1994 04:03:06 +0000 (04:03 +0000)]
Fix typo which was causing krb5_encode_test.c to fail due to trying to
free the wrong thing.

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

30 years agoKbuild is a program which builds a Kerberos V5 distribution with a
Theodore Tso [Wed, 21 Sep 1994 02:45:20 +0000 (02:45 +0000)]
Kbuild is a program which builds a Kerberos V5 distribution with a
specific set of compilation programs and configuration options, in a
repeatable manner.

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

30 years agoindex() -> strchr()
Theodore Tso [Thu, 15 Sep 1994 22:41:12 +0000 (22:41 +0000)]
index() -> strchr()

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

30 years agoPut the tests directory under autoconf
Theodore Tso [Thu, 15 Sep 1994 22:34:43 +0000 (22:34 +0000)]
Put the tests directory under autoconf

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

30 years agoPut the tests directory under autoconf
Theodore Tso [Thu, 15 Sep 1994 22:34:11 +0000 (22:34 +0000)]
Put the tests directory under autoconf

Incorporate krb5_encode_test_body.c into krb5_encode_test.c (no longer
any need to keep them as separate files.)

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

30 years agoCreate database with key version number of 1
Theodore Tso [Thu, 15 Sep 1994 21:22:10 +0000 (21:22 +0000)]
Create database with key version number of 1

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

30 years agoInitialize key version numbers to be 1
Theodore Tso [Thu, 15 Sep 1994 21:16:07 +0000 (21:16 +0000)]
Initialize key version numbers to be 1

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

30 years agoDon't chop off last character of principal name if it is passed in to
Theodore Tso [Thu, 15 Sep 1994 20:57:54 +0000 (20:57 +0000)]
Don't chop off last character of principal name if it is passed in to
the add principal function.

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

30 years agoOnly report errors to syslog if the debug flag is not set. (Otherwise
Theodore Tso [Thu, 15 Sep 1994 16:49:32 +0000 (16:49 +0000)]
Only report errors to syslog if the debug flag is not set.  (Otherwise
send them to stderr.)

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

30 years agoTODO file updated from tsx-11
Theodore Tso [Thu, 15 Sep 1994 16:17:13 +0000 (16:17 +0000)]
TODO file updated from tsx-11

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

30 years agoMoved CONFIG_RULES before AC_HAVE_LIBRARY() rules, so that they work
Theodore Tso [Thu, 15 Sep 1994 15:35:45 +0000 (15:35 +0000)]
Moved CONFIG_RULES before AC_HAVE_LIBRARY() rules, so that they work

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

30 years agoUse krb5_rd_req instead of krb5_rd_req_decode, to eliminate some code
Theodore Tso [Thu, 15 Sep 1994 15:11:02 +0000 (15:11 +0000)]
Use krb5_rd_req instead of krb5_rd_req_decode, to eliminate some code
duplication.

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

30 years agoFix error string ("for reading" -> "for writing")
Theodore Tso [Thu, 15 Sep 1994 15:03:00 +0000 (15:03 +0000)]
Fix error string ("for reading" -> "for writing")

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

30 years agoApply new copyright notice to the krb524 sources. (1993, GZA -> 1994 OV)
Theodore Tso [Thu, 15 Sep 1994 14:51:08 +0000 (14:51 +0000)]
Apply new copyright notice to the krb524 sources.  (1993, GZA -> 1994 OV)

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

30 years agoFix bug in V4 emulation where it was always assuming the master key
Theodore Tso [Thu, 15 Sep 1994 04:24:09 +0000 (04:24 +0000)]
Fix bug in V4 emulation where it was always assuming the master key
version number was zero.  Now it actually reads it in from the master
key database entry.

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

30 years agoFix a number of pointer aliasing bugs
Theodore Tso [Thu, 15 Sep 1994 04:22:13 +0000 (04:22 +0000)]
Fix a number of pointer aliasing bugs

Make sure the master key version number is propgated correctly for new keys.

Fixed bug where process_client tried to free an automatic variable.

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

30 years agoRemoved an excess free() call
Theodore Tso [Thu, 15 Sep 1994 04:20:26 +0000 (04:20 +0000)]
Removed an excess free() call

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

30 years agoFixed bug reported by Bill Sommerfeld where a missing byte-swap on a
Theodore Tso [Thu, 15 Sep 1994 01:58:33 +0000 (01:58 +0000)]
Fixed bug reported by Bill Sommerfeld where a missing byte-swap on a
little-endian machine causes the delete operation fail.

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

30 years agoFixed stupid type in make install target
Theodore Tso [Thu, 15 Sep 1994 01:49:54 +0000 (01:49 +0000)]
Fixed stupid type in make install target

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

30 years agoBack out the randkey changes (revision 1.11)
Jonathan Kamens [Tue, 13 Sep 1994 18:33:54 +0000 (18:33 +0000)]
Back out the randkey changes (revision 1.11)

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

30 years agoBack out randkey changes
Jonathan Kamens [Tue, 13 Sep 1994 18:33:17 +0000 (18:33 +0000)]
Back out randkey changes

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

30 years agoGet rid of periods in error table messages.
Jonathan Kamens [Mon, 12 Sep 1994 20:53:00 +0000 (20:53 +0000)]
Get rid of periods in error table messages.
Fix a typo in the API versioning messages.
Reword some of the API versioning messages so that they're in the same
syntax as the other messages.

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

30 years agoIncrement the current API version number, document the new behavior of
Jonathan Kamens [Mon, 12 Sep 1994 20:29:29 +0000 (20:29 +0000)]
Increment the current API version number, document the new behavior of
randkey_principal in API version 2 (return the new kvno as well as the
keyblock).

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

30 years agoMention that in randkey_principal, the new key version number is only
Jonathan Kamens [Mon, 12 Sep 1994 20:28:54 +0000 (20:28 +0000)]
Mention that in randkey_principal, the new key version number is only
returned for API versions greater than 1.

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

30 years agoTwo global variables didn't need to be global; changed to be static
Theodore Tso [Fri, 9 Sep 1994 03:36:01 +0000 (03:36 +0000)]
Two global variables didn't need to be global; changed to be static

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

30 years agoReversed order of \n\r to make jik happy
Theodore Tso [Fri, 9 Sep 1994 02:35:42 +0000 (02:35 +0000)]
Reversed order of \n\r to make jik happy

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

30 years agoAdded declaration for strdup() if HAS_STRDUP is not defined
Theodore Tso [Wed, 31 Aug 1994 01:35:49 +0000 (01:35 +0000)]
Added declaration for strdup() if HAS_STRDUP is not defined

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

30 years agoFix pointer aliasing problem between newkey and authent->subkey
Theodore Tso [Sat, 20 Aug 1994 05:48:18 +0000 (05:48 +0000)]
Fix pointer aliasing problem between newkey and authent->subkey

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

30 years agoFix wrong OID's!
Theodore Tso [Sat, 20 Aug 1994 05:37:33 +0000 (05:37 +0000)]
Fix wrong OID's!

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

30 years agoFix bug of trying to use freed memory
Theodore Tso [Sat, 20 Aug 1994 05:36:24 +0000 (05:36 +0000)]
Fix bug of trying to use freed memory

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

30 years agoproposed ovsec_kadm_init_* changes
Barry Jaspan [Fri, 19 Aug 1994 18:52:35 +0000 (18:52 +0000)]
proposed ovsec_kadm_init_* changes

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

30 years agoAdded #ifdef NEED_SYS_FCNTL_H around <sys/fcntl.h>
Theodore Tso [Thu, 18 Aug 1994 23:08:56 +0000 (23:08 +0000)]
Added #ifdef NEED_SYS_FCNTL_H around <sys/fcntl.h>

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

30 years agoFix KRB4 handling (was broken, just like kdc directory)
Theodore Tso [Thu, 18 Aug 1994 23:03:05 +0000 (23:03 +0000)]
Fix KRB4 handling (was broken, just like kdc directory)

Fix bug to allow cross-realm forwarded credentials to work.

Store the forwarded credentials in a pid-dependent file, so that
different rlogin sessions get different credentials caches.

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

30 years agoalways substitute
Mark Eichin [Thu, 18 Aug 1994 22:56:37 +0000 (22:56 +0000)]
always substitute

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

30 years agodocument previous stamping
Mark Eichin [Thu, 18 Aug 1994 22:37:33 +0000 (22:37 +0000)]
document previous stamping

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 22:35:24 +0000 (22:35 +0000)]
stamp out rcs keywords

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

30 years agoFix broken $(KRB4)/lib/libdes.a inclusion in the Makefile --- should have
Theodore Tso [Thu, 18 Aug 1994 22:21:04 +0000 (22:21 +0000)]
Fix broken $(KRB4)/lib/libdes.a inclusion in the Makefile --- should have
been checked and done in configure.in only if KRB4 is defined.

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 22:14:44 +0000 (22:14 +0000)]
stamp out rcs keywords

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 22:08:45 +0000 (22:08 +0000)]
stamp out rcs keywords

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 21:37:43 +0000 (21:37 +0000)]
stamp out rcs keywords

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 21:20:03 +0000 (21:20 +0000)]
stamp out rcs keywords

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 21:11:37 +0000 (21:11 +0000)]
stamp out rcs keywords

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 20:56:02 +0000 (20:56 +0000)]
stamp out rcs keywords

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

30 years agostamp out rcs keywords
Mark Eichin [Thu, 18 Aug 1994 20:48:46 +0000 (20:48 +0000)]
stamp out rcs keywords

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

30 years agoFix to srvmatch so that when comparing the server, we ignore the realm for
Theodore Tso [Thu, 18 Aug 1994 20:38:48 +0000 (20:38 +0000)]
Fix to srvmatch so that when comparing the server, we ignore the realm for
the purposes of the comparison.  This used to be the what this worked, but it
was broken in the krb5 principal cutover long ago.  Since we weren't doing
cross-realm authentication, no one noticed....

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

30 years agoAdded missing $(LIBS) to link line
Theodore Tso [Thu, 18 Aug 1994 20:18:04 +0000 (20:18 +0000)]
Added missing $(LIBS) to link line

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

30 years agoFixes for Solaris:
Theodore Tso [Thu, 18 Aug 1994 18:56:21 +0000 (18:56 +0000)]
Fixes for Solaris:
Added NEED_SYS_FCNTL_H
Added $(LIBS) to link line in Makefile

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

30 years agoMinor updates
Jonathan Kamens [Thu, 18 Aug 1994 18:30:07 +0000 (18:30 +0000)]
Minor updates

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

30 years agoAdded a section for requirements and put the versioning requirements
Jonathan Kamens [Thu, 18 Aug 1994 18:21:38 +0000 (18:21 +0000)]
Added a section for requirements and put the versioning requirements
in it.

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

30 years agoMove usage() before main() to solve redeclaration error
Theodore Tso [Thu, 18 Aug 1994 18:19:49 +0000 (18:19 +0000)]
Move usage() before main() to solve redeclaration error

Add #include <string.h> to fix compiler kvetching.

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

30 years agoCommented out tests which are obsoleted by the API versioning changes
Jonathan Kamens [Thu, 18 Aug 1994 16:10:01 +0000 (16:10 +0000)]
Commented out tests which are obsoleted by the API versioning changes

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

30 years agoUpdated for API versioning, and some other updates
Jonathan Kamens [Thu, 18 Aug 1994 15:55:16 +0000 (15:55 +0000)]
Updated for API versioning, and some other updates

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

30 years agoMake krb5_encode_kdc_rep pass in the correct msg_type to the ASN.1
Theodore Tso [Wed, 17 Aug 1994 22:28:33 +0000 (22:28 +0000)]
Make krb5_encode_kdc_rep pass in the correct msg_type to the ASN.1
encoding routines.  Not that value is being used now, but it might be
in the future, and we should make sure the high level routines are
doing the right thing.

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

30 years ago1) Stop checking the msg_type field unless KRB5_MSGTYPE_STRICT is defined
Theodore Tso [Wed, 17 Aug 1994 22:08:52 +0000 (22:08 +0000)]
1)  Stop checking the msg_type field unless KRB5_MSGTYPE_STRICT is defined

2) Allow the enc_kdc_rep_part structure to have a ASN.1 tag of either
25 (AS REP) or 26 (TGS REP).  Unfortunately, old versions of Kerberos
always use TGS REP (#26), so we can't change the encoder with breaking
compatibility.  Sigh....

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

30 years agolint
Mark Eichin [Wed, 17 Aug 1994 21:07:13 +0000 (21:07 +0000)]
lint

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

30 years agoAdded msg_type field to the krb5_enc_kdc_rep_part structure
Theodore Tso [Wed, 17 Aug 1994 20:36:10 +0000 (20:36 +0000)]
Added msg_type field to the krb5_enc_kdc_rep_part structure

WARNING!  This change will require a global recompile, at least of
those routines that depend on the size of the krb5_enc_kdc_rep_part
structure, as it *will* be changing.

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

30 years agoFixed GSSAPI Object Identifier. (Transcription error between MIT and
Theodore Tso [Wed, 17 Aug 1994 19:53:36 +0000 (19:53 +0000)]
Fixed GSSAPI Object Identifier.  (Transcription error between MIT and
OpenVision....)

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

30 years agosys/select.h
Mark Eichin [Wed, 17 Aug 1994 02:45:40 +0000 (02:45 +0000)]
sys/select.h

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

30 years agoadd sys/ioctl.h
Mark Eichin [Wed, 17 Aug 1994 02:42:26 +0000 (02:42 +0000)]
add sys/ioctl.h

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

30 years agologinlibs, sys/select
Mark Eichin [Wed, 17 Aug 1994 02:39:48 +0000 (02:39 +0000)]
loginlibs, sys/select

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

30 years agofix time includes
Mark Eichin [Wed, 17 Aug 1994 02:28:14 +0000 (02:28 +0000)]
fix time includes

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

30 years agosetup to fix time includes
Mark Eichin [Wed, 17 Aug 1994 02:26:06 +0000 (02:26 +0000)]
setup to fix time includes

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

30 years agolint
Mark Eichin [Tue, 16 Aug 1994 22:17:30 +0000 (22:17 +0000)]
lint

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

30 years agodon't hide termdata under ifdef unix
Mark Eichin [Tue, 16 Aug 1994 22:09:21 +0000 (22:09 +0000)]
don't hide termdata under ifdef unix

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