From f52d0ea4b40b0ef2b197a228a2025c9607ccc9e7 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Fri, 31 May 2002 13:16:49 +0000 Subject: add comment: key_verify returns 1 for a correct signature, 0 for an incorrect signature and -1 on error. CVS ---------------------------------------------------------------------- --- usr.bin/ssh/key.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.bin/ssh/key.c b/usr.bin/ssh/key.c index 1ce0a87a33b..2d850c8e571 100644 --- a/usr.bin/ssh/key.c +++ b/usr.bin/ssh/key.c @@ -32,7 +32,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: key.c,v 1.43 2002/03/19 10:49:35 markus Exp $"); +RCSID("$OpenBSD: key.c,v 1.44 2002/05/31 13:16:48 markus Exp $"); #include @@ -779,6 +779,10 @@ key_sign( } } +/* + * key_verify returns 1 for a correct signature, 0 for an incorrect signature + * and -1 on error. + */ int key_verify( Key *key, -- cgit v1.2.3