gpg-rs / gpgme

GPGme bindings for Rust
GNU Lesser General Public License v2.1
83 stars 13 forks source link

Error on decrypt. #3

Open dpc opened 8 years ago

dpc commented 8 years ago

Hi,

I'm pretty sure it's not rust-gpgme issue, but I'll ask anyway.

On ctx.decrypt(...).unwrap() I'm getting

thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Error { err: 117440664 }', ../src/libcore/result.rs:688

With:

$ gpg-error 117440664
117440664 = (7, 152) = (GPG_ERR_SOURCE_GPGME, GPG_ERR_DECRYPT_FAILED) = (GPGME, Decryption failed)

Decrypting the same file manually with gpg -e <file> seem to work fine.

I tried using with_passphrase_handler, but it's not being called.

The only informative reference about error 117440664 I've found: https://lists.gnupg.org/pipermail/gnupg-devel/2005-June/022154.html