aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-10-10 15:27:14 +0000
committerDavid Shaw <[email protected]>2004-10-10 15:27:14 +0000
commitf3687f6b6c9c8d3e28be3cc9ab7967d108ff71bc (patch)
tree39d7fcfd0589852bf0adda9b59691163ea8eca4d /g10/keygen.c
parent* keygen.c (ask_key_flags): New. (ask_algo): Call it here in --expert mode (diff)
downloadgnupg-f3687f6b6c9c8d3e28be3cc9ab7967d108ff71bc.tar.gz
gnupg-f3687f6b6c9c8d3e28be3cc9ab7967d108ff71bc.zip
* card-util.c, keyedit.c, openfile.c, pkclist.c, delkey.c, keygen.c,
photoid.c, revoke.c: Some yes-or-no prompts end in "(y/n)". Some don't. Consistently use y/n everywhere.
Diffstat (limited to 'g10/keygen.c')
-rw-r--r--g10/keygen.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index bbda8753c..05ad85b28 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1400,12 +1400,13 @@ ask_keysize( int algo )
_("Keysizes larger than 2048 are not suggested because\n"
"computations take REALLY long!\n"));
if( cpr_get_answer_is_yes("keygen.size.huge.okay",_(
- "Are you sure that you want this keysize? ")) ) {
+ "Are you sure that you want this keysize? (y/N) ")) )
+ {
tty_printf(_("Okay, but keep in mind that your monitor "
"and keyboard radiation is also very vulnerable "
"to attacks!\n"));
break;
- }
+ }
}
else
break;
@@ -1529,7 +1530,7 @@ ask_expire_interval(int object)
}
if( cpr_enabled() || cpr_get_answer_is_yes("keygen.valid.okay",
- _("Is this correct (y/n)? ")) )
+ _("Is this correct? (y/N) ")) )
break;
}
m_free(answer);
@@ -2974,7 +2975,7 @@ generate_subkeypair( KBNODE pub_keyblock, KBNODE sec_keyblock )
nbits = ask_keysize( algo );
expire = ask_expire_interval(0);
if( !cpr_enabled() && !cpr_get_answer_is_yes("keygen.sub.okay",
- _("Really create? ") ) )
+ _("Really create? (y/N) ")))
goto leave;
if( passphrase ) {
@@ -3096,7 +3097,7 @@ generate_card_subkeypair (KBNODE pub_keyblock, KBNODE sec_keyblock,
else
use = PUBKEY_USAGE_AUTH;
if (!cpr_enabled() && !cpr_get_answer_is_yes("keygen.cardsub.okay",
- _("Really create? ") ) )
+ _("Really create? (y/N) ")))
goto leave;
if (passphrase)