Change error return in case of bad passphrase to PEP_DECRYPT_NO_KEY
authorEdouard Tisserant
Thu, 09 Jun 2016 18:44:35 +0200
changeset 725188c7813590a
parent 721 caca7a254581
child 726 3316d3bad10f
Change error return in case of bad passphrase to PEP_DECRYPT_NO_KEY
src/pgp_gpg.c
     1.1 --- a/src/pgp_gpg.c	Tue Jun 07 18:51:22 2016 +0200
     1.2 +++ b/src/pgp_gpg.c	Thu Jun 09 18:44:35 2016 +0200
     1.3 @@ -539,7 +539,8 @@
     1.4                  break;
     1.5              }
     1.6              case GPG_ERR_BAD_PASSPHRASE:
     1.7 -                NOT_IMPLEMENTED;
     1.8 +                result = PEP_DECRYPT_NO_KEY;
     1.9 +                break;
    1.10              case GPG_ERR_DECRYPT_FAILED:
    1.11              default:
    1.12              {