ruby-gpgme icon indicating copy to clipboard operation
ruby-gpgme copied to clipboard

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

Open duckdalbe opened this issue 9 years ago • 2 comments

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 avatar Dec 17 '16 10:12 duckdalbe

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

duckdalbe avatar Dec 17 '16 10:12 duckdalbe

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

duckdalbe avatar Dec 17 '16 10:12 duckdalbe