ueno / ruby-gpgme

a ruby interface to GnuPG Made Easy (GPGME).
GNU Lesser General Public License v2.1
232 stars 99 forks source link

Signature#to_s returns nil if public key is not available. #86

Open duckdalbe opened 7 years ago

duckdalbe commented 7 years ago

It should return "No public key for #{from}" but apparently the status_code doesn't match any of the constants in the case-statement.

status_code is 1 in my case, which according to gpg-errors.h is GPG_ERR_GENERAL. So maybe gpgme is to blame?

But I'm not sure if I followed the code correctly. Could you confirm or confront my assumption?

duckdalbe commented 7 years ago

I'm running ruby-gpgme 2.0.12 and gpgme 1.7.1 and libgpg-error 1.25.

duckdalbe commented 7 years ago

And if I'm trying to access signature.key in this case, an EOFError is raised. But that's a different issue, I guess?