ruby-gpgme
ruby-gpgme copied to clipboard
Signature#to_s returns nil if public key is not available.
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?
I'm running ruby-gpgme 2.0.12 and gpgme 1.7.1 and libgpg-error 1.25.
And if I'm trying to access signature.key in this case, an EOFError is raised. But that's a different issue, I guess?