gpg: Return an error code from keygrip_from_pk.
authorWerner Koch <wk@gnupg.org>
Thu, 7 Jan 2016 18:07:59 +0000 (19:07 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 7 Jan 2016 18:09:16 +0000 (19:09 +0100)
commit8fd406c317ad7c2e375ae4f7d20656dadf6d7fcc
tree83fbab50e48e71eada6c7b38933116de13029ea0
parent8a56a38387c10c02ba0790c655dd5c1d08e4a724
gpg: Return an error code from keygrip_from_pk.

* g10/keyid.c (keygrip_from_pk): Return an error code.
--

The error was show but the function did not return it.  This change
should improve error messages for unknown algorithms.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keyid.c