[Libreoffice-bugs] [Bug 116862] GPG: Unclear error message when the OwnerTrust is different than ultimate

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 11 14:04:10 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=116862

--- Comment #9 from Franklin Weng <franklin at goodhorse.idv.tw> ---
(In reply to Thorsten Behrens (CIB) from comment #4)
> Created attachment 142533 [details]
> Hack-around patch - of course we cannot simply trust all keys...
> 
> With the attached patch, it works again. No real solution though

I tried to debug it and have some interesting findings.

https://pastebin.com/ucpjLg4D

in comphelper/source/misc/storagehelper.cxx:496
xSignCertificates.getLength() is 2 though I chose only one recipient. (line 5
in pastebin)

Then I checked keyID at code line 509, after key is pushed back to vector (line
37 in pastebin)
The key is correct (my public key).

In the first iteration the result is correct.  Then goes to the second
iteration (since xSignCertificates.getLength() is 2)

I checked the key in the second iteration (line 119 in pastebin) this time it
returned another keyID (Osvaldo's public key!?)

This time crypt_res.error() returned code 53 and len was 0, so threw exception.

I have not checked why xSignCertificates.getLength() is 2 yet.  Maybe someone
would be interested in it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190811/32894e76/attachment.html>


More information about the Libreoffice-bugs mailing list