summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2002-08-27 17:13:57 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2002-08-27 17:13:57 +0000
commit74bcbc8c4dfd1c6e78c9f6bbcd10fefe73f902ae (patch)
tree17cb7afea745f656d486fe646cfdaff0e13721f0 /usr.bin/ssh
parentabbfc9d5d261de5834fd68427237717e01ca76aa (diff)
RSA_public_decrypt() returns -1 on error so len must be signed; ok markus@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/ssh-rsa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-rsa.c b/usr.bin/ssh/ssh-rsa.c
index 44287fa260f..d7b2918f938 100644
--- a/usr.bin/ssh/ssh-rsa.c
+++ b/usr.bin/ssh/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;