mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* options.h, g10.c (main), mainproc.c (proc_encrypted): --ignore-mdc-error
option to turn a MDC check error into a warning.
This commit is contained in:
parent
58b0a36d6b
commit
63a71c1ff9
5 changed files with 11 additions and 3 deletions
|
@ -492,11 +492,11 @@ proc_encrypted( CTX c, PACKET *pkt )
|
|||
m_free(c->dek); c->dek = NULL;
|
||||
if( result == -1 )
|
||||
;
|
||||
else if( !result ) {
|
||||
else if( !result || (result==G10ERR_BAD_SIGN && opt.ignore_mdc_error)) {
|
||||
write_status( STATUS_DECRYPTION_OKAY );
|
||||
if( opt.verbose > 1 )
|
||||
log_info(_("decryption okay\n"));
|
||||
if( pkt->pkt.encrypted->mdc_method )
|
||||
if( pkt->pkt.encrypted->mdc_method && !result )
|
||||
write_status( STATUS_GOODMDC );
|
||||
else if(!opt.no_mdc_warn)
|
||||
log_info ("WARNING: message was not integrity protected\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue