Home GnuPG
Diffusion GpgOL 9124f33b9737

Catch all canceled decryptions

Description

Catch all canceled decryptions

* src/mail.h declare new member function realyDecryptedSuccessfull
* src/mail.cpp implement realyDecryptedSuccessfull which checks for
  just signed or return code of decryption operation is ok
* src/ribbon-callbacks.cpp: get_is_crypto_mail now uses the new
  realyDecryptedSuccessful function

We got GPG_ERR_NOT_FOUND back from cancel pin/password dialog
which worked and GPG_ERR_CANCELED which resulted in true for a null
chech of error and thus didn't. Now the new function checks for 0
(OK) as error code.