From 5d517459f51d3bf660674d1abd141f8a3a82416b Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 2 May 1990 15:56:05 +0000 Subject: [PATCH] add arg to fetch_mkey git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@674 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/create/kdb5_create.c | 4 ++-- src/admin/stash/kdb5_stash.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/admin/create/kdb5_create.c b/src/admin/create/kdb5_create.c index 001a4a91a..fef0c261c 100644 --- a/src/admin/create/kdb5_create.c +++ b/src/admin/create/kdb5_create.c @@ -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); diff --git a/src/admin/stash/kdb5_stash.c b/src/admin/stash/kdb5_stash.c index 253c51155..d9394aedf 100644 --- a/src/admin/stash/kdb5_stash.c +++ b/src/admin/stash/kdb5_stash.c @@ -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(); -- 2.26.2