Fix handling of default etype
authorPaul Park <pjpark@mit.edu>
Mon, 17 Jul 1995 19:39:02 +0000 (19:39 +0000)
committerPaul Park <pjpark@mit.edu>
Mon, 17 Jul 1995 19:39:02 +0000 (19:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6307 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/create/ChangeLog
src/tests/create/kdb5_mkdums.c
src/tests/verify/ChangeLog
src/tests/verify/kdb5_verify.c

index b390de7394f635eebef6617d6d570252a2f93176..bc5e24ad20e4dfb8151a5cc3101e8ebebf857e82 100644 (file)
@@ -1,4 +1,10 @@
 
+Mon Jul 17 15:23:24 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * kdb5_mkdums.c - Change setting of defaulted keytype to be DEFAULT_
+               KDC_ETYPE instead of using the keytype array to find the
+               etype.
+
+
 Wed Jul 12 12:31:27 EDT 1995   Paul Park       (pjpark@mit.edu)
        * configure.in - Remove V5_USE_SHARED_LIB.
 
index e801643b8fb07bbbd80017102d8a1178a877c4a4..05b93e3854f99540ca38f66d2c8b00e7efecc94a 100644 (file)
@@ -182,7 +182,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,
@@ -362,7 +362,7 @@ char *dbname;
        free(scratch.data);
     } else {
        if (retval = krb5_db_fetch_mkey(test_context, master_princ, &master_encblock,
-                                       manual_mkey, FALSE, 0,
+                                       manual_mkey, FALSE, (char *) NULL, 0,
                                        &master_keyblock)) {
            com_err(pname, retval, "while reading master key");
            return(1);
index c39c2aa34a0e4232f06854fedd55102b2e5caa5e..5edc19280a62bc0cbeb76a6c789d7c215647a8b4 100644 (file)
@@ -1,4 +1,10 @@
 
+Mon Jul 17 15:25:03 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * kdb5_verify.c - Change setting of defaulted keytype to be DEFAULT_
+               KDC_ETYPE instead of using the keytype array to find the
+               etype.
+
+
 Wed Jul 12 12:33:00 EDT 1995   Paul Park       (pjpark@mit.edu)
        * configure.in - Remove V5_USE_SHARED_LIB.
 
index ffd61b5bba122943bf4056685297e0b5716d2c48..696ad9e4db997279eaaae8f27dbb81cd9115898d 100644 (file)
@@ -175,7 +175,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,
@@ -413,7 +413,7 @@ set_dbname_help(context, pname, dbname)
        free(scratch.data);
     } else {
        if (retval = krb5_db_fetch_mkey(context, master_princ, &master_encblock,
-                                       manual_mkey, FALSE, 0,
+                                       manual_mkey, FALSE, (char *) NULL, 0,
                                        &master_keyblock)) {
            com_err(pname, retval, "while reading master key");
            return(1);