krb5.git
29 years agoAdd DES_CBC_MD5 and DES_CBC_CRC with the V4 salt as default key/salt
Theodore Tso [Fri, 15 Sep 1995 18:23:25 +0000 (18:23 +0000)]
Add DES_CBC_MD5 and DES_CBC_CRC with the V4 salt as default key/salt
tuples to be added.  (Once proven's DES_* folding code is implemented,
we can shorten this list.) Eventually, this list should be read in
from kdc.conf.

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

29 years agoUpdate production rule of kerbsrc-nt.zip to be like the modified
Theodore Tso [Fri, 15 Sep 1995 09:08:10 +0000 (09:08 +0000)]
Update production rule of kerbsrc-nt.zip to be like the modified
kerbsrc.zip rule.

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

29 years agosim_client.c (main): Added better options parsing for more flexibility
Theodore Tso [Fri, 15 Sep 1995 09:03:42 +0000 (09:03 +0000)]
sim_client.c (main): Added better options parsing for more flexibility
in calling this program.  Worked around breakage in the Solaris
Streams Sockets emulation where getsockname() can not be used to find
out the address of a network interface.

configure.in: If we are including both -lsocket and -lnsl, #define
BROKEN_STREAMS_SOCKETS.

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

29 years agoStop after finding the first TGS key which matches an entry in the
Theodore Tso [Fri, 15 Sep 1995 05:50:03 +0000 (05:50 +0000)]
Stop after finding the first TGS key which matches an entry in the
key/salt list.  (Typo; added missing '!')

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

29 years ago * krb524d.c (usage): needs to get context to pass to
Mark Eichin [Thu, 14 Sep 1995 21:39:03 +0000 (21:39 +0000)]
* krb524d.c (usage): needs to get context to pass to
cleanup_and_exit so it does get freed, since it is allocated
before parsing arguments.
(main): change caller as well.

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

29 years agoWed Sep 13 23:53:19 1995 Mark Eichin <eichin@cygnus.com>
Mark Eichin [Thu, 14 Sep 1995 03:55:13 +0000 (03:55 +0000)]
Wed Sep 13 23:53:19 1995  Mark Eichin  <eichin@cygnus.com>

* kprop.h (KPROP_SRVTAB, KPROP_DEFAULT_FILE, KPROPD_DEFAULT_FILE,
KPROPD_DEFAULT_KDB5_EDIT, KPROPD_DEFAULT_KRB_DB, KPROPD_ACL_FILE):
removed configurable pathnames, they are now in osconf.h (which
gets included here via k5-int.h).

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

29 years agoWed Sep 13 23:50:02 1995 Mark Eichin <eichin@cygnus.com>
Mark Eichin [Thu, 14 Sep 1995 03:52:05 +0000 (03:52 +0000)]
Wed Sep 13 23:50:02 1995  Mark Eichin  <eichin@cygnus.com>

* osconf.h (KPROP_DEFAULT_FILE, KPROPD_DEFAULT_FILE,
KPROPD_DEFAULT_KDB5_EDIT, KPROPD_DEFAULT_KRB_DB): set defaults
correctly for kprop/kpropd in respect to prefix.

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

29 years ago(key_encrypt_keys): Remove equally errneous krb5_use_enctype() call
Theodore Tso [Thu, 14 Sep 1995 02:54:13 +0000 (02:54 +0000)]
(key_encrypt_keys): Remove equally errneous krb5_use_enctype() call
from key_encrypt_keys().

(key_string2key_keysalt and key_randomkey_keysalt): Install really
ugly hack to prevent these routines from munging the master_encblock.
This is not the correct fix.  Proven will be making the correct fix
which will involve removing these routines and using the corect
libkdb functions.

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

29 years agomoderately clean handling of allocated storage on error during partial
Mark Eichin [Thu, 14 Sep 1995 02:41:33 +0000 (02:41 +0000)]
moderately clean handling of allocated storage on error during partial
construction, in spite of not having exception handling in the language.

* krb5_decode.c (clean_krb5_authenticator, clean_krb5_ticket,
clean_krb5_enc_tkt_part,clean_krb5_ap_req,
clean_krb5_ap_rep_enc_part, clean_krb5_safe,
clean_krb5_priv_enc_part, clean_krb5_cred_enc_part,
clean_krb5_error): new static functions to free objects that may
be partially constructed.
(setup_buf_only, setup_no_tagnum, setup_no_length, setup): define
in terms of each other to remove duplication, then add local
variable error_cleanup to common declarations.
(clean_return): new macro, uses error_cleanup on rep if possible
and the allows the argument to be returned.
(alloc_field, check_apptag, next_tag, begin_structure,
get_field_body, get_field, get_lenfield_body, get_lenfield): use
clean_return.
(free_field): new macro to simplify the writing of clean_*.
(clear_field): macro to clean up preparation of fields for later
use by clean_* functions.
(decode_krb5_authenticator, decode_krb5_ticket,
decode_krb5_encryption_key, decode_krb5_enc_tkt_part,
decode_krb5_enc_kdc_rep_part, decode_krb5_as_rep,
decode_krb5_tgs_rep, decode_krb5_ap_req, decode_krb5_ap_rep,
decode_krb5_ap_rep_enc_part, decode_krb5_as_req,
decode_krb5_tgs_req, decode_krb5_kdc_req_body, decode_krb5_safe,
decode_krb5_priv, decode_krb5_enc_priv_part, decode_krb5_cred,
decode_krb5_enc_cred_part, decode_krb5_error,
decode_krb5_authdata, decode_krb5_pwd_sequence,
decode_krb5_pwd_data, decode_krb5_padata_sequence,
decode_krb5_alt_method, decode_krb5_etype_info): change setup
macro to pass a cleanup method (or just free if there were no
partial allocations, or 0 for the two cases with no allocation at
all.) Also explicitly zero pointer subfields, since calloc is not
a safe way to assure that. Generally, provide for automatic
deallocation of storage on error.

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

29 years agoKeys are encrypted in the key of the master key encryption type, not
Theodore Tso [Thu, 14 Sep 1995 02:26:18 +0000 (02:26 +0000)]
Keys are encrypted in the key of the master key encryption type, not
in the keytype of the key!!!  Removed erroneous krb5_use_enctype()
call.

Fixed -Wall flames all over the file.

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

29 years ago(tgt_keysalt_iterate): Don't bash the master key encblock when
Theodore Tso [Wed, 13 Sep 1995 23:04:30 +0000 (23:04 +0000)]
(tgt_keysalt_iterate): Don't bash the master key encblock when
creating the various TGT keys.  Otherwise, the keys end up getting
encrypted using the wrong encryption algorithm.  Initialize a new
encblock, random_encblock, from the master key password.

(main): Prompt for the master key password ourselves, and store it
away so that it can be used by tgt_keysalt_iterate.

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

29 years agoClear the buffer before calling the SIOCGIFCONF ioctl. This makes
Theodore Tso [Wed, 13 Sep 1995 23:02:18 +0000 (23:02 +0000)]
Clear the buffer before calling the SIOCGIFCONF ioctl.  This makes
purify happy.

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

29 years agoRemove definition of the profile field, which is being desupported from kdc.conf
Theodore Tso [Wed, 13 Sep 1995 23:01:48 +0000 (23:01 +0000)]
Remove definition of the profile field, which is being desupported from kdc.conf

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

29 years agoFix memory leak. Free the default realm when we're done. Remove the
Theodore Tso [Wed, 13 Sep 1995 23:01:22 +0000 (23:01 +0000)]
Fix memory leak.  Free the default realm when we're done.  Remove the
"profile" parameter from the kdc.conf file.  This is bad idea,
architecturally.

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

29 years agoFix memory leaks and lint flames
Theodore Tso [Wed, 13 Sep 1995 22:14:59 +0000 (22:14 +0000)]
Fix memory leaks and lint flames

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

29 years agofetch_mkey.c (krb5_db_fetch_mkey): This routine now sets the master
Theodore Tso [Wed, 13 Sep 1995 21:05:01 +0000 (21:05 +0000)]
fetch_mkey.c (krb5_db_fetch_mkey): This routine now sets the master
encblock's crypto system using krb5_use_enctype() from the stored
keytype of the master key.

decrypt_key.c (krb5_dbekd_decrypt_key_data): Remove the encryption
type; the master_encblock should always be set correctly.

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

29 years agoSave the key used to generate the database files. Also generate a set
Theodore Tso [Wed, 13 Sep 1995 19:34:11 +0000 (19:34 +0000)]
Save the key used to generate the database files.  Also generate a set
of environment setup scripts.  These are the convenience of someone
who wishes to run some of the tests by hand, when tests are bombing.

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

29 years agoFree the auth context when freeing the GSSAPI context structure
Theodore Tso [Wed, 13 Sep 1995 19:33:23 +0000 (19:33 +0000)]
Free the auth context when freeing the GSSAPI context structure

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

29 years agoFix fencepost error; use argv[1] to test for a specfied host if argc
Theodore Tso [Wed, 13 Sep 1995 17:59:23 +0000 (17:59 +0000)]
Fix fencepost error; use argv[1] to test for a specfied host if argc
is >= 1, not just > 1.

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

29 years agoMinor updates in generation of kerbsrc.mac
Keith Vetter [Wed, 13 Sep 1995 03:49:49 +0000 (03:49 +0000)]
Minor updates in generation of kerbsrc.mac

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

29 years agoAdded inclusion of des_int.h
Keith Vetter [Wed, 13 Sep 1995 03:06:22 +0000 (03:06 +0000)]
Added inclusion of des_int.h

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

29 years agoRemoved duplicate definitions of KRB5_REALM_CANT_RESOLVE,
Keith Vetter [Wed, 13 Sep 1995 03:03:54 +0000 (03:03 +0000)]
Removed duplicate definitions of KRB5_REALM_CANT_RESOLVE,
PROF_NO_SECTION and PROF_NO_RELATION

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

29 years agoRevert keytype -> emctype changes.
Ezra Peisach [Tue, 12 Sep 1995 17:24:11 +0000 (17:24 +0000)]
Revert keytype -> emctype changes.
Document the Macintosh changes to adm_conn.c (hardwired path for adm cache)

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

29 years agoUndo MACINTOSH changes to path in these files - theye were correct. The
Ezra Peisach [Tue, 12 Sep 1995 17:07:46 +0000 (17:07 +0000)]
Undo MACINTOSH changes to path in these files - theye were correct. The
Makefile.in alread specifies the right locations to include so that
,krb5/...> is not required for unix

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

29 years agoReintegrate the keytab -> enctype changes
Ezra Peisach [Tue, 12 Sep 1995 17:01:25 +0000 (17:01 +0000)]
Reintegrate the keytab -> enctype changes

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

29 years agoPut back in the keytype -> enctype changes
Ezra Peisach [Tue, 12 Sep 1995 16:48:09 +0000 (16:48 +0000)]
Put back in the keytype -> enctype changes

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

29 years agoReintegrate Macintosh changes
Ezra Peisach [Tue, 12 Sep 1995 16:43:27 +0000 (16:43 +0000)]
Reintegrate Macintosh changes

t_ser.c: Work around an optimizer bug in gcc under OSF/1 2.1.

The timeofday calls were left in the stage as described in the ChangeLog

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

29 years agoDocument that Makefile.in has changed.
Ezra Peisach [Tue, 12 Sep 1995 02:08:35 +0000 (02:08 +0000)]
Document that Makefile.in has changed.
Replace top level Makefile with the one indicating that one should read the
documentation. (not one generated from Makefile.in)

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

29 years agoIntegrate Macintosh changes into previous sources
Ezra Peisach [Tue, 12 Sep 1995 01:25:10 +0000 (01:25 +0000)]
Integrate Macintosh changes into previous sources

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

29 years agoReintegrate changes lost during Macintosh checkin
Ezra Peisach [Tue, 12 Sep 1995 01:14:12 +0000 (01:14 +0000)]
Reintegrate changes lost during Macintosh checkin

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

29 years agoReinstate previous changes that were lost
Ezra Peisach [Tue, 12 Sep 1995 00:56:25 +0000 (00:56 +0000)]
Reinstate previous changes that were lost

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

29 years agoReinstate the keytype -> enctype changes and keep the new Mac changes
Ezra Peisach [Tue, 12 Sep 1995 00:42:25 +0000 (00:42 +0000)]
Reinstate the keytype -> enctype changes and keep the new Mac changes

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

29 years agoRvert lost changes
Ezra Peisach [Tue, 12 Sep 1995 00:27:48 +0000 (00:27 +0000)]
Rvert lost changes

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

29 years agoReintegrate the keytype->enctype changes
Ezra Peisach [Tue, 12 Sep 1995 00:24:13 +0000 (00:24 +0000)]
Reintegrate the keytype->enctype changes

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

29 years agoInitial version of a sscanf() replacement, for those platforms (like
Theodore Tso [Tue, 12 Sep 1995 00:22:10 +0000 (00:22 +0000)]
Initial version of a sscanf() replacement, for those platforms (like
Macroloss) that don't have sscanf().

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

29 years agoReplace nuked history in ChangeLog
Ezra Peisach [Tue, 12 Sep 1995 00:18:58 +0000 (00:18 +0000)]
Replace nuked history in ChangeLog

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

29 years agoReintegrate the keytype->enctype changes
Ezra Peisach [Tue, 12 Sep 1995 00:14:28 +0000 (00:14 +0000)]
Reintegrate the keytype->enctype changes

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

29 years agoReintegrate the keytype -> enctype changes
Ezra Peisach [Tue, 12 Sep 1995 00:11:23 +0000 (00:11 +0000)]
Reintegrate the keytype -> enctype changes

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

29 years agoRevert back proven's changes which were removed
Ezra Peisach [Tue, 12 Sep 1995 00:08:35 +0000 (00:08 +0000)]
Revert back proven's changes which were removed

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

29 years agoReintegrate Macintosh changes while keeping Proven's changes
Ezra Peisach [Mon, 11 Sep 1995 23:52:35 +0000 (23:52 +0000)]
Reintegrate Macintosh changes while keeping Proven's changes

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

29 years agoReplace function declaration back to taking an int. SOCKET is defined as
Ezra Peisach [Mon, 11 Sep 1995 22:00:16 +0000 (22:00 +0000)]
Replace function declaration back to taking an int. SOCKET is defined as
unsigned int under unix and this causes a prototype error

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

29 years agoConvert C+ comment to older 'standard' C style comment
Ezra Peisach [Mon, 11 Sep 1995 19:33:00 +0000 (19:33 +0000)]
Convert C+ comment to older 'standard' C style comment

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

29 years agoMac Beta 1 submission
Keith Vetter [Mon, 11 Sep 1995 19:06:45 +0000 (19:06 +0000)]
Mac Beta 1 submission

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

29 years agoWhen checking for master in tthe list of valid encryption types, do not
Ezra Peisach [Sun, 10 Sep 1995 14:54:30 +0000 (14:54 +0000)]
When checking for master in tthe list of valid encryption types, do not
stop after checking the first one.

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

29 years agoAdd des-cbc-crc to supported_enctypes as krb5_edit requires it to generate random...
Ezra Peisach [Sun, 10 Sep 1995 14:12:52 +0000 (14:12 +0000)]
Add des-cbc-crc to supported_enctypes as krb5_edit requires it to generate random keys

Note: this is to work around a misfeature which should be changed.

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

29 years agosupported_keytypes -> supported_enctypes in the kdc.conf file
Ezra Peisach [Sat, 9 Sep 1995 20:30:16 +0000 (20:30 +0000)]
supported_keytypes -> supported_enctypes in the kdc.conf file

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

29 years agoSet the encryption type before decrypting
Ezra Peisach [Sat, 9 Sep 1995 19:05:42 +0000 (19:05 +0000)]
Set the encryption type before decrypting

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

29 years ago(gss_delete_sec_context): Add extra indirection so that we actually
Theodore Tso [Sat, 9 Sep 1995 04:17:29 +0000 (04:17 +0000)]
(gss_delete_sec_context): Add extra indirection so that we actually
fetch the context correctly.

(gss_accept_sec_context): Remove unused code.

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

29 years agodecrypt_key.c: Upon error, after freeing contents field, set to
Ezra Peisach [Fri, 8 Sep 1995 23:55:28 +0000 (23:55 +0000)]
decrypt_key.c: Upon error, after freeing contents field, set to
null to indicate to upper levels that it is really empty.

Another bug discovered by purify...

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

29 years agoChanges to compile under AIX--made a while back but never committed
Sam Hartman [Fri, 8 Sep 1995 20:01:16 +0000 (20:01 +0000)]
Changes to compile under AIX--made a while back but never committed

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

29 years agoIf V4 compatibility is not enabled, provide a dummy routine for
Ezra Peisach [Fri, 8 Sep 1995 11:38:11 +0000 (11:38 +0000)]
If V4 compatibility is not enabled, provide a dummy routine for
loading a v4 database.

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

29 years agoAdded Macintosh source tree for mac development
Keith Vetter [Fri, 8 Sep 1995 03:16:18 +0000 (03:16 +0000)]
Added Macintosh source tree for mac development

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

29 years agoRenamed a file since the Mac can't have two files with the same name
Keith Vetter [Fri, 8 Sep 1995 03:07:52 +0000 (03:07 +0000)]
Renamed a file since the Mac can't have two files with the same name

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

29 years ago * scc_gennew.c (krb5_scc_generate_new): don't use automatic
Mark Eichin [Thu, 7 Sep 1995 22:14:58 +0000 (22:14 +0000)]
* scc_gennew.c (krb5_scc_generate_new): don't use automatic
aggregate initialization.

so we can still compile under sunos

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

29 years agoGlobally change use of ENCTYPE_DES_CBC_MD5 to DEFAULT_KDC_ENCTYPE, so
Theodore Tso [Thu, 7 Sep 1995 21:56:02 +0000 (21:56 +0000)]
Globally change use of ENCTYPE_DES_CBC_MD5 to DEFAULT_KDC_ENCTYPE, so
that we use the same encryption type by default for all KDC server
programs.

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

29 years agosrv_key.c: Globally change use of ENCTYPE_DES_CBC_MD5 to
Theodore Tso [Thu, 7 Sep 1995 21:55:29 +0000 (21:55 +0000)]
srv_key.c: Globally change use of ENCTYPE_DES_CBC_MD5 to
DEFAULT_KDC_ENCTYPE, so that we use the same encryption type by
default for all KDC server programs.

srv_main.c (main): Set the default realm from the -r argument, so that
correct defaulting takes place for things like krb5_parse().

srv_net.c (net_init): Use KRB5_ADM_SERVICE_INSTANCE to determine the
service instance, instance of KRB5_ADMIN_SERVICE_NAME.

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

29 years agoUse official IANA assigned name for the port, which is kpasswd, not
Theodore Tso [Thu, 7 Sep 1995 21:51:35 +0000 (21:51 +0000)]
Use official IANA assigned name for the port, which is kpasswd, not
changepw.  Add new define, KRB5_ADM_SERVICE_INSTANCE, which defines
the instance name used for the kadmin name.

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

29 years agoUse KRB5_ADM_SERVICE_INSTANCE for the instance name, instead of
Theodore Tso [Thu, 7 Sep 1995 21:50:53 +0000 (21:50 +0000)]
Use KRB5_ADM_SERVICE_INSTANCE for the instance name, instead of
KRB5_ADM_SERVICE_NAME.

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

29 years ago * ktutil_funcs.c : Do appropriate magic for enctype/keytype cleanup
Chris Provenzano [Thu, 7 Sep 1995 19:09:58 +0000 (19:09 +0000)]
* ktutil_funcs.c : Do appropriate magic for enctype/keytype cleanup

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

29 years ago * kdb5_verify.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:22:02 +0000 (19:22 +0000)]
    * kdb5_verify.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * kdc5_hammer.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:21:21 +0000 (19:21 +0000)]
    * kdc5_hammer.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * kdb5_mkdums.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:21:00 +0000 (19:21 +0000)]
    * kdb5_mkdums.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * ktest.c, ktest_equal.c, ktest_equal.h :
Chris Provenzano [Wed, 6 Sep 1995 19:19:54 +0000 (19:19 +0000)]
    * ktest.c, ktest_equal.c, ktest_equal.h :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * test1.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:18:25 +0000 (19:18 +0000)]
    * test1.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * auth_con.c, decrypt_tk.c, encode_kdc.c, encrypt_tk.c,
Chris Provenzano [Wed, 6 Sep 1995 19:17:35 +0000 (19:17 +0000)]
    * auth_con.c, decrypt_tk.c, encode_kdc.c, encrypt_tk.c,
* gc_frm_kdc.c, gen_seqnum.c, get_creds.c, get_in_tkt.c,
* in_tkt_ktb.c, in_tkt_pwd.c, in_tkt_sky.c, init_ctx.c,
* kdc_rep_dc.c, mk_cred.c, mk_priv.c, mk_rep.c, mk_req._ext.c,
* preauth.c, rd_cred.c, rd_priv.c, rd_rep.c, rd_req_dec.c,
* send_tgs.c, sendauth.c, ser_actx.c, ser_ctx.c, ser_eblk.c,
* ser_key.c, t_ser.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * ktf_g_ent.c, ktf_remove.c, ktf_util.c, ktfile.h :
Chris Provenzano [Wed, 6 Sep 1995 19:15:36 +0000 (19:15 +0000)]
    * ktf_g_ent.c, ktf_remove.c, ktf_util.c, ktfile.h :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * read_servi.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:14:36 +0000 (19:14 +0000)]
    * read_servi.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * kdb5_err.et : Change KRB5_KDB_BAD_KEYTYPE to KRB5_KDB_BAD_ENCTYPE
Chris Provenzano [Wed, 6 Sep 1995 19:13:34 +0000 (19:13 +0000)]
    * kdb5_err.et : Change KRB5_KDB_BAD_KEYTYPE to KRB5_KDB_BAD_ENCTYPE
* krb5_err.et : Change KRB5_BAD_KEYTYPE to KRB5_BAD_ENCTYPE

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

29 years ago * scc_read.c, scc_write.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:13:02 +0000 (19:13 +0000)]
    * scc_read.c, scc_write.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * file_read.c, file_write.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:12:39 +0000 (19:12 +0000)]
    * file_read.c, file_write.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * asn1_k_decode.c, asn1_k_decode.h, asn1_k_encode.c, asn1_k_encode.h,
Chris Provenzano [Wed, 6 Sep 1995 19:12:06 +0000 (19:12 +0000)]
    * asn1_k_decode.c, asn1_k_decode.h, asn1_k_encode.c, asn1_k_encode.h,
* krb5_decode.c, krb5_encode.c: s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * get_cred.c, mk_priv.c, mk_safe.c, rd_priv.c, rd_req.c, rd_safe.c,
Chris Provenzano [Wed, 6 Sep 1995 19:11:25 +0000 (19:11 +0000)]
    * get_cred.c, mk_priv.c, mk_safe.c, rd_priv.c, rd_req.c, rd_safe.c,
* set_key.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * DNR.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:10:46 +0000 (19:10 +0000)]
    * DNR.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * decrypt_key.c, encrypt_key.c, fetch_mkey.c, kdb_compat.c,
Chris Provenzano [Wed, 6 Sep 1995 19:10:10 +0000 (19:10 +0000)]
    * decrypt_key.c, encrypt_key.c, fetch_mkey.c, kdb_compat.c,
* kdb_cpw.c, kdb_xdr.c, store_mkey.c, t_kdb.c :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * adm_kt_dec.c, adm_kt_enc.c, alt_prof.c, keysalt.c, str_conv.c :
Chris Provenzano [Wed, 6 Sep 1995 19:09:36 +0000 (19:09 +0000)]
    * adm_kt_dec.c, adm_kt_enc.c, alt_prof.c, keysalt.c, str_conv.c :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * accept_sec_context.c, init_sec_context.c, util.c :
Chris Provenzano [Wed, 6 Sep 1995 19:09:02 +0000 (19:09 +0000)]
    * accept_sec_context.c, init_sec_context.c, util.c :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * string2key.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:08:22 +0000 (19:08 +0000)]
    * string2key.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * md5crypto.c, t_cksum.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:07:49 +0000 (19:07 +0000)]
    * md5crypto.c, t_cksum.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * md4crypto.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:07:21 +0000 (19:07 +0000)]
    * md4crypto.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * des_int.h, destest.c, init_rkey.c, random_key.c, string2key.c
Chris Provenzano [Wed, 6 Sep 1995 19:07:04 +0000 (19:07 +0000)]
    * des_int.h, destest.c, init_rkey.c, random_key.c, string2key.c
* verify.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * cryptoconf.c, des_crc.c, des_md5.c raw_des.c
Chris Provenzano [Wed, 6 Sep 1995 19:06:38 +0000 (19:06 +0000)]
    * cryptoconf.c, des_crc.c, des_md5.c raw_des.c
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * cnv_tkt_skey.c, conv_creds.c, get_cred.c k524init.c krb524d.c,
Chris Provenzano [Wed, 6 Sep 1995 19:06:09 +0000 (19:06 +0000)]
    * cnv_tkt_skey.c, conv_creds.c, get_cred.c k524init.c krb524d.c,
* test.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * do_as_req.c, do_tgs_req.c, kdc_util.c, kerberos_v4.c, main.c :
Chris Provenzano [Wed, 6 Sep 1995 19:05:41 +0000 (19:05 +0000)]
    * do_as_req.c, do_tgs_req.c, kdc_util.c, kerberos_v4.c, main.c :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * admin_server.c, kadm_funcs.c kadm_ser_wrap.c :
Chris Provenzano [Wed, 6 Sep 1995 19:05:04 +0000 (19:05 +0000)]
    * admin_server.c, kadm_funcs.c kadm_ser_wrap.c :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * adm_adm_func.c, adm_fmt_inq.c, adm_funcs.c, adm_process.c,
Chris Provenzano [Wed, 6 Sep 1995 19:03:38 +0000 (19:03 +0000)]
    * adm_adm_func.c, adm_fmt_inq.c, adm_funcs.c, adm_process.c,
* adm_server.c adm_v4_pwd.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * admin.c, passwd.c, srv_key.c, srv_main.c :
Chris Provenzano [Wed, 6 Sep 1995 19:03:08 +0000 (19:03 +0000)]
    * admin.c, passwd.c, srv_key.c, srv_main.c :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * kadmin5.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:02:41 +0000 (19:02 +0000)]
    * kadmin5.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * osconf.h : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:02:18 +0000 (19:02 +0000)]
    * osconf.h : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * adm.h, adm_proto.h kdb.h : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:01:56 +0000 (19:01 +0000)]
    * adm.h, adm_proto.h kdb.h : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * k5-int.h krb5.hin : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:01:34 +0000 (19:01 +0000)]
    * k5-int.h krb5.hin : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * krb_auth_su.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:00:59 +0000 (19:00 +0000)]
    * krb_auth_su.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * encrypt.h, kerberos5.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:00:37 +0000 (19:00 +0000)]
    * encrypt.h, kerberos5.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * kdb5_stash.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 19:00:09 +0000 (19:00 +0000)]
    * kdb5_stash.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * cpw.c, dump.c, dumpv4.c, kdb5_edit.c, loadv4.c :
Chris Provenzano [Wed, 6 Sep 1995 18:59:17 +0000 (18:59 +0000)]
    * cpw.c, dump.c, dumpv4.c, kdb5_edit.c, loadv4.c :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * kdb5_create.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Chris Provenzano [Wed, 6 Sep 1995 18:58:49 +0000 (18:58 +0000)]
* kdb5_create.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

29 years ago * krb524d.c (main): set timeout inside while loop to prevent spin.
Mark Eichin [Wed, 6 Sep 1995 04:24:13 +0000 (04:24 +0000)]
* krb524d.c (main): set timeout inside while loop to prevent spin.
(cleanup_and_exit): free master_princ or close keytab, and free
the global context, to eliminate spurious storage use in malloc
debugging.
(init_master): free realm.

(emailed to bjaspan@cam.ov.com seperately.)

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

29 years ago * kdb5_verify.c : Remove krb5_enctype references, and replace with
Chris Provenzano [Wed, 6 Sep 1995 03:47:59 +0000 (03:47 +0000)]
    * kdb5_verify.c : Remove krb5_enctype references, and replace with
                krb5_keytype where appropriate

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

29 years ago * kdc5_hammer.c : Remove krb5_enctype references, and replace with
Chris Provenzano [Wed, 6 Sep 1995 03:47:41 +0000 (03:47 +0000)]
    * kdc5_hammer.c : Remove krb5_enctype references, and replace with
                krb5_keytype where appropriate

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

29 years ago * kdb5_mkdums.c : Remove krb5_enctype references, and replace with
Chris Provenzano [Wed, 6 Sep 1995 03:46:57 +0000 (03:46 +0000)]
    * kdb5_mkdums.c : Remove krb5_enctype references, and replace with
                krb5_keytype where appropriate

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

29 years ago * ktest.c, ktest.h, ktest_equal.c, ktest_equal.h : Remove krb5_enctype
Chris Provenzano [Wed, 6 Sep 1995 03:46:24 +0000 (03:46 +0000)]
    * ktest.c, ktest.h, ktest_equal.c, ktest_equal.h : Remove krb5_enctype
references, and replace with krb5_keytype where appropriate

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