* kdb5_create.c : Remove krb5_enctype from krb5_string_to_key() args
authorChris Provenzano <proven@mit.edu>
Thu, 9 Nov 1995 22:22:34 +0000 (22:22 +0000)
committerChris Provenzano <proven@mit.edu>
Thu, 9 Nov 1995 22:22:34 +0000 (22:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7076 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/create/ChangeLog
src/admin/create/kdb5_create.c

index 1045e9f98510a44230b6fa9a4bb8e932bfec4f53..00ec86e3baa32834a7c041e714ef233adfddc417 100644 (file)
@@ -1,3 +1,7 @@
+Thu Nov 09 17:05:57 1995  Chris Provenzano (proven@mit.edu)
+
+       * kdb5_create.c : Remove krb5_enctype from krb5_string_to_key() args.
+
 Wed Oct 18 14:25:29 1995    <tytso@rsts-11.mit.edu>
 
        * kdb5_create.c (main): Add new option 's' which automatically
index f1733baf17e26d2ee0dcc9a5817602e34273cb35..5ed26eaa2f37537058ace2632949e0795559498a 100644 (file)
@@ -321,12 +321,9 @@ master key name '%s'\n",
        com_err(argv[0], retval, "while calculated master key salt");
        exit(1);
     }
-    retval = krb5_string_to_key(context, &master_encblock, 
-                               master_keyblock.enctype, &master_keyblock, 
-                               &pwd, &master_salt);
-    if (retval) {
-       com_err(argv[0], retval,
-               "while transforming master key from password");
+    if (retval = krb5_string_to_key(context, &master_encblock, 
+                                   &master_keyblock, &pwd, &master_salt)) {
+       com_err(argv[0], retval, "while transforming master key from password");
        exit(1);
     }
 
@@ -420,10 +417,8 @@ tgt_keysalt_iterate(ksent, ptr)
     krb5_use_enctype(context, &random_encblock, ksent->ks_enctype);
     pwd.data = mkey_password;
     pwd.length = strlen(mkey_password);
-    kret = krb5_string_to_key(context, &random_encblock, 
-                               ksent->ks_enctype, &random_keyblock, 
-                               &pwd, &master_salt);
-    if (kret)
+    if (kret = krb5_string_to_key(context, &random_encblock, &random_keyblock, 
+                             &pwd, &master_salt))
        return kret;
     if ((kret = krb5_init_random_key(context, &random_encblock, 
                                       &random_keyblock, &rseed)))