diff options
author | Chris Provenzano <proven@mit.edu> | 1995-09-07 19:09:58 +0000 |
---|---|---|
committer | Chris Provenzano <proven@mit.edu> | 1995-09-07 19:09:58 +0000 |
commit | 575545acc213cef9500dff76b0bfbc5abeade61c (patch) | |
tree | c93b0beaa8298d3352640b5178abdcd9c5aaeefc /src/kadmin/ktutil | |
parent | 90165f6569d067b69325f00100b23de5f1da4bf3 (diff) | |
download | krb5-575545acc213cef9500dff76b0bfbc5abeade61c.tar.gz krb5-575545acc213cef9500dff76b0bfbc5abeade61c.tar.xz krb5-575545acc213cef9500dff76b0bfbc5abeade61c.zip |
* 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
Diffstat (limited to 'src/kadmin/ktutil')
-rw-r--r-- | src/kadmin/ktutil/ChangeLog | 5 | ||||
-rw-r--r-- | src/kadmin/ktutil/ktutil_funcs.c | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/kadmin/ktutil/ChangeLog b/src/kadmin/ktutil/ChangeLog index 9aab9650a3..65eb382710 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 <tytso@dcl> * .Sanitize: Added .Sanitize file. diff --git a/src/kadmin/ktutil/ktutil_funcs.c b/src/kadmin/ktutil/ktutil_funcs.c index 2702c840e8..9143b7fb6a 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, |