From 902e2aef9cd3a3a4e0bc7acd3ef7a239dcbfce73 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 20 Nov 1990 13:27:04 +0000 Subject: [PATCH] use default keytypes/etypes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1479 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/edit/kdb5_edit.c | 4 ++-- src/admin/stash/kdb5_stash.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index 4757fbb0c..0477c2cd8 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -162,7 +162,7 @@ char *argv[]; } if (!keytypedone) - master_keyblock.keytype = KEYTYPE_DES; + master_keyblock.keytype = DEFAULT_KDC_KEYTYPE; if (!valid_keytype(master_keyblock.keytype)) { com_err(progname, KRB5_PROG_KEYTYPE_NOSUPP, @@ -171,7 +171,7 @@ char *argv[]; } if (etype == 0xffff) - etype = krb5_keytype_array[master_keyblock.keytype]->system->proto_enctype; + etype = DEFAULT_KDC_ETYPE; if (!valid_etype(etype)) { com_err(progname, KRB5_PROG_ETYPE_NOSUPP, diff --git a/src/admin/stash/kdb5_stash.c b/src/admin/stash/kdb5_stash.c index acf100afc..c9275210c 100644 --- a/src/admin/stash/kdb5_stash.c +++ b/src/admin/stash/kdb5_stash.c @@ -99,7 +99,7 @@ char *argv[]; } if (!keytypedone) - master_keyblock.keytype = KEYTYPE_DES; + master_keyblock.keytype = DEFAULT_KDC_KEYTYPE; if (!valid_keytype(master_keyblock.keytype)) { com_err(argv[0], KRB5_PROG_KEYTYPE_NOSUPP, @@ -108,7 +108,7 @@ char *argv[]; } if (etype == 0xffff) - etype = krb5_keytype_array[master_keyblock.keytype]->system->proto_enctype; + etype = DEFAULT_KDC_ETYPE; if (!valid_etype(etype)) { com_err(argv[0], KRB5_PROG_ETYPE_NOSUPP, -- 2.26.2