From: Chris Provenzano Date: Thu, 7 Sep 1995 19:09:58 +0000 (+0000) Subject: * ktutil_funcs.c : Do appropriate magic for enctype/keytype cleanup X-Git-Tag: krb5-1.0-beta6~1128 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=575545acc213cef9500dff76b0bfbc5abeade61c;p=krb5.git * 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 --- diff --git a/src/kadmin/ktutil/ChangeLog b/src/kadmin/ktutil/ChangeLog index 9aab9650a..65eb38271 100644 --- a/src/kadmin/ktutil/ChangeLog +++ b/src/kadmin/ktutil/ChangeLog @@ -1,3 +1,8 @@ + +Thu Sep 07 15:06:57 1995 Chris Provenzano (proven@mit.edu) + + * ktutil_funcs.c : Do appropriate magic for enctype/keytype cleanup. + Thu Aug 24 19:20:26 1995 Theodore Y. Ts'o * .Sanitize: Added .Sanitize file. diff --git a/src/kadmin/ktutil/ktutil_funcs.c b/src/kadmin/ktutil/ktutil_funcs.c index 2702c840e..9143b7fb6 100644 --- a/src/kadmin/ktutil/ktutil_funcs.c +++ b/src/kadmin/ktutil/ktutil_funcs.c @@ -255,8 +255,7 @@ krb5_error_code ktutil_read_srvtab(context, name, list) if (retval) break; entry->key.magic = KV5M_KEYBLOCK; - entry->key.etype = ETYPE_UNKNOWN; - entry->key.keytype = KEYTYPE_DES; + entry->key.enctype = ENCTYPE_DES_CBC_CRC; entry->key.length = sizeof (key); entry->key.contents = (krb5_octet *)malloc(sizeof (key)); if (!entry->key.contents) { @@ -303,7 +302,7 @@ krb5_error_code ktutil_read_srvtab(context, name, list) /* * Writes a kt_list out to a krb4 srvtab file. Note that it first * prunes the kt_list so that it won't contain any keys that are not - * the most recent, and ignores keys that are not KEYTYPE_DES. + * the most recent, and ignores keys that are not ENCTYPE_DES. */ krb5_error_code ktutil_write_srvtab(context, list, name) krb5_context context; @@ -319,7 +318,7 @@ krb5_error_code ktutil_write_srvtab(context, list, name) /* First do heinous stuff to prune the list. */ for (lp = list; lp; lp = lp->next) { - if (lp->entry->key.keytype == KEYTYPE_DES) { /* only DES keys! */ + if (lp->entry->key.enctype == ENCTYPE_DES_CBC_CRC) {/* only DES keys! */ for (lp1 = pruned; lp1; prev = lp1, lp1 = lp1->next) { /* Hunt for the current principal in the pruned list */ if (krb5_principal_compare(context,