diff options
author | David Shaw <[email protected]> | 2002-12-11 17:50:38 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-12-11 17:50:38 +0000 |
commit | eb9607707e5f8e86e732b92b137cb55ff6b26c71 (patch) | |
tree | 0b6ccb58c2439262252afe98a571aaacc8162907 /g10/keygen.c | |
parent | * gpg.sgml: Clarify include-revoked and include-disabled so they match (diff) | |
download | gnupg-eb9607707e5f8e86e732b92b137cb55ff6b26c71.tar.gz gnupg-eb9607707e5f8e86e732b92b137cb55ff6b26c71.zip |
* tdbio.c (tdbio_read_record, tdbio_write_record): Compact the
RECTYPE_TRUST records a bit.
* g10.c (main): Comment out --list-trust-path until it can be implemented.
* import.c (import_one): Warn when importing an Elgamal primary that this
may take some time (to verify self-sigs). (chk_self_sigs): Try and cache
all self-sigs so the keyblock is written to the keyring with a good rich
cache.
* keygen.c (ask_algo): Make the Elgamal sign+encrypt warning stronger, and
remove the RSA sign+encrypt warning.
Diffstat (limited to '')
-rw-r--r-- | g10/keygen.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/g10/keygen.c b/g10/keygen.c index 24ba95fb9..82d11303f 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -980,12 +980,9 @@ ask_algo (int addmode, unsigned int *r_usage) break; } else if( algo == 7 && opt.expert ) { - if (cpr_get_answer_is_yes ("keygen.algo.rsa_se",_( - "The use of this algorithm is deprecated - create anyway? "))){ - algo = PUBKEY_ALGO_RSA; - *r_usage = PUBKEY_USAGE_ENC | PUBKEY_USAGE_SIG; - break; - } + algo = PUBKEY_ALGO_RSA; + *r_usage = PUBKEY_USAGE_ENC | PUBKEY_USAGE_SIG; + break; } else if( algo == 6 && addmode ) { algo = PUBKEY_ALGO_RSA; @@ -997,12 +994,19 @@ ask_algo (int addmode, unsigned int *r_usage) *r_usage = PUBKEY_USAGE_SIG; break; } - else if( algo == 4 && opt.expert) { - if( cpr_get_answer_is_yes("keygen.algo.elg_se",_( - "The use of this algorithm is deprecated - create anyway? "))){ + else if( algo == 4 && opt.expert) + { + tty_printf(_( +"The use of this algorithm is only supported by GnuPG. You will not be\n" +"able to use this key to communicate with PGP users. This algorithm is also\n" +"very slow, and may not be as secure as the other choices.\n")); + + if( cpr_get_answer_is_yes("keygen.algo.elg_se", + _("Create anyway? "))) + { algo = PUBKEY_ALGO_ELGAMAL; break; - } + } } else if( algo == 3 && addmode ) { algo = PUBKEY_ALGO_ELGAMAL_E; |