summaryrefslogtreecommitdiff
path: root/ssh-rsa.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-02 20:43:11 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-02 20:43:11 +0000
commit03f3932829d5246d41c26b3d9f9482c618356430 (patch)
tree2e9fc48045d178227c9eafe9788ea543dcccccc9 /ssh-rsa.c
parent0d0be02a2963db5b4d850bd42c6db1fd2347bb5d (diff)
- stevesk@cvs.openbsd.org 2002/03/29 19:18:33
[auth-rsa.c ssh-rsa.c ssh.h] make RSA modulus minimum #define; 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 8e79d4e1..b2fcc340 100644
--- a/ssh-rsa.c
+++ b/ssh-rsa.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-rsa.c,v 1.16 2002/02/24 19:14:59 markus Exp $");
+RCSID("$OpenBSD: ssh-rsa.c,v 1.17 2002/03/29 19:18:33 stevesk Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -35,6 +35,7 @@ RCSID("$OpenBSD: ssh-rsa.c,v 1.16 2002/02/24 19:14:59 markus Exp $");
#include "key.h"
#include "ssh-rsa.h"
#include "compat.h"
+#include "ssh.h"
/* RSASSA-PKCS1-v1_5 (PKCS #1 v2.0 signature) with SHA1 */
int
@@ -129,7 +130,7 @@ ssh_rsa_verify(
error("ssh_rsa_verify: SSH_BUG_SIGBLOB not supported");
return -1;
}
- if (BN_num_bits(key->rsa->n) < 768) {
+ if (BN_num_bits(key->rsa->n) < SSH_RSA_MINIMUM_MODULUS_SIZE) {
error("ssh_rsa_verify: n too small: %d bits",
BN_num_bits(key->rsa->n));
return -1;