https://bugs.documentfoundation.org/show_bug.cgi?id=160184
--- Comment #4 from Patrick Luby (volunteer) <[email protected]> --- I ran LibreOffice in a debugger and found the code that fails. In the following code in comphelper/source/misc/storagehelper.cxx, gpgme's ctx->encrypt() function returns an error (error code 53) and len is 0. I verified that "keys" contains a single cert with the same fingerprint as shown in the GPG Keychain application. So, the question is why is this gpgme function failing when a public key's Ownertrust is not set to Ultimate?: GpgME::EncryptionResult crypt_res = ctx->encrypt( keys, plain, cipher, GpgME::Context::NoCompress); off_t result = cipher.seek(0,SEEK_SET); (void) result; assert(result == 0); int len=0, curr=0; char buf; while( (curr=cipher.read(&buf, 1)) ) len += curr; if(crypt_res.error() || !len) throw lang::IllegalArgumentException( "Not a suitable key, or failed to encrypt.", css::uno::Reference<css::uno::XInterface>(), -1); -- You are receiving this mail because: You are the assignee for the bug.
