summaryrefslogtreecommitdiffstats
path: root/ssh-rsa.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-04 08:39:48 +0200
committerDamien Miller <djm@mindrot.org>2002-09-04 08:39:48 +0200
commitf7c2391d83ba859a4581c3ce52804e6f61fd6adb (patch)
tree8edc5dc8cd1e08b21109aa17e934656d19340018 /ssh-rsa.c
parent - markus@cvs.openbsd.org 2002/08/22 21:45:41 (diff)
downloadopenssh-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-rsa.c b/ssh-rsa.c
index 44287fa26..d7b2918f9 100644
--- a/ssh-rsa.c
+++ b/ssh-rsa.c
@@ -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;