mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* mainproc.c (proc_symkey_enc): Don't show algorithm information when
--quiet is set. Suggested by Duncan Harris. Also don't fail with BUG() when processing a --symmetric message with a cipher we don't have. * pkclist.c (build_pk_list): Revert last change. There are too many side effects for stable.
This commit is contained in:
parent
71e1d13238
commit
96f429ecee
3 changed files with 43 additions and 39 deletions
|
@ -292,19 +292,22 @@ proc_symkey_enc( CTX c, PACKET *pkt )
|
|||
int algo = enc->cipher_algo;
|
||||
const char *s = cipher_algo_to_string (algo);
|
||||
|
||||
if( s )
|
||||
if(s)
|
||||
{
|
||||
if(enc->seskeylen)
|
||||
log_info(_("%s encrypted session key\n"), s );
|
||||
else
|
||||
log_info(_("%s encrypted data\n"), s );
|
||||
if(!opt.quiet)
|
||||
{
|
||||
if(enc->seskeylen)
|
||||
log_info(_("%s encrypted session key\n"), s );
|
||||
else
|
||||
log_info(_("%s encrypted data\n"), s );
|
||||
}
|
||||
}
|
||||
else
|
||||
log_info(_("encrypted with unknown algorithm %d\n"), algo );
|
||||
log_error(_("encrypted with unknown algorithm %d\n"), algo );
|
||||
|
||||
c->last_was_session_key = 2;
|
||||
if ( opt.list_only )
|
||||
goto leave;
|
||||
if(!s || opt.list_only)
|
||||
goto leave;
|
||||
c->dek = passphrase_to_dek( NULL, 0, algo, &enc->s2k, 0, NULL, NULL );
|
||||
if(c->dek)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue