diff options
author | Werner Koch <[email protected]> | 2017-07-12 16:30:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-12 16:30:49 +0000 |
commit | ad0c5ab4cd8d3a1b11b37dc137b75a67aa26da37 (patch) | |
tree | a8ee1156e1672fae12a5f1136c76705cc2d7449a /doc | |
parent | core: Return CANCELED and BAD_PASSPHRASE error code on decryption. (diff) | |
download | gpgme-ad0c5ab4cd8d3a1b11b37dc137b75a67aa26da37.tar.gz gpgme-ad0c5ab4cd8d3a1b11b37dc137b75a67aa26da37.zip |
core: Return NO_SECKEY error code on decryption
* src/decrypt.c (op_data_t): Add flag any_no_seckey.
(_gpgme_decrypt_status_handler): Consult that flag.
(_gpgme_decrypt_status_handler): Set that flag.
--
The NO_SECKEY is emitted instead of an "S ERROR pkdecrypt_failed" if
gpg knowns that a key has been encrypted to that key (cf. "S ENC_TO").
it is not fool proffof but in the majority of cases we can provide a
better error message than just DECRYPTION_FAILED.
GnuPG-bug-id: 3270
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gpgme.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi index bc40430a..31929d34 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -4893,7 +4893,7 @@ if @var{ctx}, @var{cipher} or @var{plain} is not a valid pointer, @code{GPG_ERR_NO_DATA} if @var{cipher} does not contain any data to decrypt, @code{GPG_ERR_DECRYPT_FAILED} if @var{cipher} is not a valid cipher text, @code{GPG_ERR_BAD_PASSPHRASE} if the passphrase for the -secret key could not be retrieved, and passes through any errors that +secret key could not be retrieved, and passes through some errors that are reported by the crypto engine support routines. @end deftypefun |