summaryrefslogtreecommitdiff
path: root/ssh-rsa.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-04 16:39:48 +1000
committerDamien Miller <djm@mindrot.org>2002-09-04 16:39:48 +1000
commitf7c2391d83ba859a4581c3ce52804e6f61fd6adb (patch)
tree8edc5dc8cd1e08b21109aa17e934656d19340018 /ssh-rsa.c
parent5a80bba86f60c2ba8447c764ad2fd4e6207b544a (diff)
- 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 44287fa2..d7b2918f 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;