use default keytypes/etypes
authorJohn Kohl <jtkohl@mit.edu>
Tue, 20 Nov 1990 13:19:29 +0000 (13:19 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 20 Nov 1990 13:19:29 +0000 (13:19 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1478 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/create/kdb5_create.c

index 060caf0483b84f2fc483ad915f3d2ded6642483c..3bbe5f6db04157079952143316ab4bf26a82dc21 100644 (file)
@@ -152,7 +152,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,
@@ -161,7 +161,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,