diff options
author | Damien Miller <djm@mindrot.org> | 2002-09-04 08:39:48 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-09-04 08:39:48 +0200 |
commit | f7c2391d83ba859a4581c3ce52804e6f61fd6adb (patch) | |
tree | 8edc5dc8cd1e08b21109aa17e934656d19340018 /ssh-rsa.c | |
parent | - markus@cvs.openbsd.org 2002/08/22 21:45:41 (diff) | |
download | openssh-f7c2391d83ba859a4581c3ce52804e6f61fd6adb.tar.xz openssh-f7c2391d83ba859a4581c3ce52804e6f61fd6adb.zip |
- stevesk@cvs.openbsd.org 2002/08/27 17:13:56
[ssh-rsa.c]
RSA_public_decrypt() returns -1 on error so len must be signed;
ok markus@
Diffstat (limited to 'ssh-rsa.c')
-rw-r--r-- | ssh-rsa.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-rsa.c,v 1.25 2002/08/02 22:20:30 markus Exp $"); +RCSID("$OpenBSD: ssh-rsa.c,v 1.26 2002/08/27 17:13:56 stevesk Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -211,7 +211,8 @@ static int openssh_RSA_verify(int type, u_char *hash, u_int hashlen, u_char *sigbuf, u_int siglen, RSA *rsa) { - u_int ret, rsasize, len, oidlen = 0, hlen = 0; + u_int ret, rsasize, oidlen = 0, hlen = 0; + int len; const u_char *oid = NULL; u_char *decrypted = NULL; |