]> git.ipfire.org Git - thirdparty/git.git/commit
ssh signing: signal an error with a negative return value
authorJunio C Hamano <gitster@pobox.com>
Thu, 8 Feb 2024 05:29:00 +0000 (21:29 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Feb 2024 05:31:42 +0000 (21:31 -0800)
commit6931049c32ca0271ba95dcd0f197100d22c8d844
treec111c382d0995ed06d26294414f85c1d568b25d4
parentabfbff61efc4d91dc964eb2360760fa640ad0f0f
ssh signing: signal an error with a negative return value

The other backend for the sign_buffer() function followed our usual
"an error is signalled with a negative return" convention, but the
SSH signer did not.  Even though we already fixed the caller that
assumed only a negative return value is an error, tighten the callee
to signal an error with a negative return as well.  This way, the
callees will be strict on what they produce, while the callers will
be lenient in what they accept.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c