rnp
rnp copied to clipboard
FFI: add some API allowing to check whether signature is weak or why validation failed.
Description
Users may wish to know why signature is marked as invalid (including cases with weak hash algorithm/public key algorithm/wrong subpackets/whatever else).
This could be done via some vector as field of the signature, which includes specific signature invalidation error codes, and FFI API which would allow to return those from the signature.