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 44287fa26..d7b2918f9 100644
--- a/ssh-rsa.c
+++ b/ssh-rsa.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: ssh-rsa.c,v 1.25 2002/08/02 22:20:30 markus Exp $"); 26RCSID("$OpenBSD: ssh-rsa.c,v 1.26 2002/08/27 17:13:56 stevesk Exp $");
27 27
28#include <openssl/evp.h> 28#include <openssl/evp.h>
29#include <openssl/err.h> 29#include <openssl/err.h>
@@ -211,7 +211,8 @@ static int
211openssh_RSA_verify(int type, u_char *hash, u_int hashlen, 211openssh_RSA_verify(int type, u_char *hash, u_int hashlen,
212 u_char *sigbuf, u_int siglen, RSA *rsa) 212 u_char *sigbuf, u_int siglen, RSA *rsa)
213{ 213{
214 u_int ret, rsasize, len, oidlen = 0, hlen = 0; 214 u_int ret, rsasize, oidlen = 0, hlen = 0;
215 int len;
215 const u_char *oid = NULL; 216 const u_char *oid = NULL;
216 u_char *decrypted = NULL; 217 u_char *decrypted = NULL;
217 218