[key.c]
     add comment:
     key_verify returns 1 for a correct signature, 0 for an incorrect signature
     and -1 on error.
This commit is contained in:
Ben Lindstrom 2002-06-06 20:54:07 +00:00
parent 511bb24c5b
commit 01fff0c9d4
2 changed files with 11 additions and 2 deletions

View File

@ -68,6 +68,11 @@
- markus@cvs.openbsd.org 2002/05/31 11:35:15 - markus@cvs.openbsd.org 2002/05/31 11:35:15
[auth.h auth2.c] [auth.h auth2.c]
move Authmethod definitons to per-method file. move Authmethod definitons to per-method file.
- markus@cvs.openbsd.org 2002/05/31 13:16:48
[key.c]
add comment:
key_verify returns 1 for a correct signature, 0 for an incorrect signature
and -1 on error.
20020604 20020604
- (stevesk) [channels.c] bug #164 patch from YOSHIFUJI Hideaki (changed - (stevesk) [channels.c] bug #164 patch from YOSHIFUJI Hideaki (changed
@ -752,4 +757,4 @@
- (stevesk) entropy.c: typo in debug message - (stevesk) entropy.c: typo in debug message
- (djm) ssh-keygen -i needs seeded RNG; report from markus@ - (djm) ssh-keygen -i needs seeded RNG; report from markus@
$Id: ChangeLog,v 1.2163 2002/06/06 20:52:37 mouring Exp $ $Id: ChangeLog,v 1.2164 2002/06/06 20:54:07 mouring Exp $

6
key.c
View File

@ -32,7 +32,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "includes.h" #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 <openssl/evp.h> #include <openssl/evp.h>
@ -779,6 +779,10 @@ key_sign(
} }
} }
/*
* key_verify returns 1 for a correct signature, 0 for an incorrect signature
* and -1 on error.
*/
int int
key_verify( key_verify(
Key *key, Key *key,