mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +01:00
gpg: Sync keylist output and warning messages.
* g10/keylist.c (list_all): Flush stdout before logging. * g10/misc.c (print_pubkey_algo_note): Ditto. (print_cipher_algo_note): Ditto. (print_digest_algo_note): Ditto. (print_md5_rejected_note): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
b6507bb80e
commit
60e21d8b85
@ -496,6 +496,7 @@ list_all (int secret, int mark_secret)
|
||||
keyblock = NULL;
|
||||
}
|
||||
while (!(rc = keydb_search_next (hd)));
|
||||
es_fflush (es_stdout);
|
||||
if (rc && gpg_err_code (rc) != GPG_ERR_NOT_FOUND)
|
||||
log_error ("keydb_search_next failed: %s\n", g10_errstr (rc));
|
||||
|
||||
|
@ -298,12 +298,14 @@ print_pubkey_algo_note (pubkey_algo_t algo)
|
||||
if(!warn)
|
||||
{
|
||||
warn=1;
|
||||
es_fflush (es_stdout);
|
||||
log_info (_("WARNING: using experimental public key algorithm %s\n"),
|
||||
openpgp_pk_algo_name (algo));
|
||||
}
|
||||
}
|
||||
else if (algo == PUBKEY_ALGO_ELGAMAL)
|
||||
{
|
||||
es_fflush (es_stdout);
|
||||
log_info (_("WARNING: Elgamal sign+encrypt keys are deprecated\n"));
|
||||
}
|
||||
}
|
||||
@ -317,6 +319,7 @@ print_cipher_algo_note (cipher_algo_t algo)
|
||||
if(!warn)
|
||||
{
|
||||
warn=1;
|
||||
es_fflush (es_stdout);
|
||||
log_info (_("WARNING: using experimental cipher algorithm %s\n"),
|
||||
openpgp_cipher_algo_name (algo));
|
||||
}
|
||||
@ -332,13 +335,17 @@ print_digest_algo_note (digest_algo_t algo)
|
||||
if(!warn)
|
||||
{
|
||||
warn=1;
|
||||
es_fflush (es_stdout);
|
||||
log_info (_("WARNING: using experimental digest algorithm %s\n"),
|
||||
gcry_md_algo_name (algo));
|
||||
}
|
||||
}
|
||||
else if(algo==DIGEST_ALGO_MD5)
|
||||
{
|
||||
es_fflush (es_stdout);
|
||||
log_info (_("WARNING: digest algorithm %s is deprecated\n"),
|
||||
gcry_md_algo_name (algo));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -349,6 +356,7 @@ print_md5_rejected_note (void)
|
||||
|
||||
if (!shown)
|
||||
{
|
||||
es_fflush (es_stdout);
|
||||
log_info
|
||||
(_("Note: signatures using the %s algorithm are rejected\n"),
|
||||
"MD5");
|
||||
|
Loading…
x
Reference in New Issue
Block a user