diff options
author | Todd Zullinger <[email protected]> | 2021-11-26 08:35:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-04-25 10:09:50 +0000 |
commit | beb79f2705ad24665f54c9ea2042a73b1f16f6bc (patch) | |
tree | 8976e5ea7bfb84eab9f545e4fc5d5775ff1a95a0 /g10/parse-packet.c | |
parent | Deprecate the --supervised options. (diff) | |
download | gnupg-beb79f2705ad24665f54c9ea2042a73b1f16f6bc.tar.gz gnupg-beb79f2705ad24665f54c9ea2042a73b1f16f6bc.zip |
sm: Use gpg_err_code() instead of -1
* sm/verify.c (gpgsm_verify): use gpg_err_code instead of 'rc == -1'
comparison.
--
In ed6ebb696e (sm: Implement initial support for keyboxd., 2020-09-10),
the return of keydb_search() was changed to use gpg_err_code(). Adjust
gpgsm_verify() to use it. This provides a nicer error message to users
when a certificate is not found -- the same error that is seen from 2.2.
Prior to this change, when a cert was not found, gpgsm output:
gpgsm: failed to find the certificate: Not found
as opposed to the more human-readable message from 2.2:
gpgsm: certificate not found
They now return the same message.
Signed-off-by: Todd Zullinger <[email protected]>
Diffstat (limited to 'g10/parse-packet.c')
0 files changed, 0 insertions, 0 deletions