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. * g10.c: Alias --personal-xxx-prefs to --personal-xxx-preferences.
This commit is contained in:
parent
ebe6f4999f
commit
5028edd538
3 changed files with 23 additions and 8 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