add arg to fetch_mkey
authorJohn Kohl <jtkohl@mit.edu>
Wed, 2 May 1990 15:56:05 +0000 (15:56 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 2 May 1990 15:56:05 +0000 (15:56 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@674 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/create/kdb5_create.c
src/admin/stash/kdb5_stash.c

index 001a4a91a738b0db82fd5d56920c4b3a674123e9..fef0c261c1a11ad7555d25c77ced7c12f3a8112e 100644 (file)
@@ -214,8 +214,8 @@ master key name '%s'\n",
     printf("It is important that you NOT FORGET this password.\n");
     fflush(stdout);
 
-    /* TRUE here means read the keyboard */
-    if (retval = krb5_db_fetch_mkey(master_princ, &master_encblock, TRUE,
+    /* TRUE here means read the keyboard, and do it twice */
+    if (retval = krb5_db_fetch_mkey(master_princ, &master_encblock, TRUE, TRUE,
                                    &master_keyblock)) {
        com_err(argv[0], retval, "while reading master key");
        exit(1);
index 253c51155e20a3edc2cbcb6377f855adcd8fc247..d9394aedf40ae0c28c7ea96de749004700b1bdc9 100644 (file)
@@ -153,8 +153,9 @@ char *argv[];
        exit(1);
     }
 
-    /* TRUE here means read the keyboard */
+    /* TRUE here means read the keyboard, but only once */
     if (retval = krb5_db_fetch_mkey(master_princ, &master_encblock, TRUE,
+                                   FALSE,
                                    &master_keyblock)) {
        com_err(argv[0], retval, "while reading master key");
        (void) krb5_db_fini();