summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-rsa.c
diff options
context:
space:
mode:
authorstevesk <stevesk@openbsd.org>2002-08-27 17:13:56 +0000
committerstevesk <stevesk@openbsd.org>2002-08-27 17:13:56 +0000
commit55fb416587ccfd1c6e748241300f4a868563a9e6 (patch)
tree8b56b766f4f07b523d6bd4e161c9c1a3e9d1808e /usr.bin/ssh/ssh-rsa.c
parentAdd <stdlib.h> for malloc prototype (diff)
downloadwireguard-openbsd-55fb416587ccfd1c6e748241300f4a868563a9e6.tar.xz
wireguard-openbsd-55fb416587ccfd1c6e748241300f4a868563a9e6.zip
RSA_public_decrypt() returns -1 on error so len must be signed; ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-rsa.c')
-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;