diff options
Diffstat (limited to 'ssh-rsa.c')
-rw-r--r-- | ssh-rsa.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: ssh-rsa.c,v 1.16 2002/02/24 19:14:59 markus Exp $"); | 26 | RCSID("$OpenBSD: ssh-rsa.c,v 1.17 2002/03/29 19:18:33 stevesk Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | #include <openssl/err.h> | 29 | #include <openssl/err.h> |
@@ -35,6 +35,7 @@ RCSID("$OpenBSD: ssh-rsa.c,v 1.16 2002/02/24 19:14:59 markus Exp $"); | |||
35 | #include "key.h" | 35 | #include "key.h" |
36 | #include "ssh-rsa.h" | 36 | #include "ssh-rsa.h" |
37 | #include "compat.h" | 37 | #include "compat.h" |
38 | #include "ssh.h" | ||
38 | 39 | ||
39 | /* RSASSA-PKCS1-v1_5 (PKCS #1 v2.0 signature) with SHA1 */ | 40 | /* RSASSA-PKCS1-v1_5 (PKCS #1 v2.0 signature) with SHA1 */ |
40 | int | 41 | int |
@@ -129,7 +130,7 @@ ssh_rsa_verify( | |||
129 | error("ssh_rsa_verify: SSH_BUG_SIGBLOB not supported"); | 130 | error("ssh_rsa_verify: SSH_BUG_SIGBLOB not supported"); |
130 | return -1; | 131 | return -1; |
131 | } | 132 | } |
132 | if (BN_num_bits(key->rsa->n) < 768) { | 133 | if (BN_num_bits(key->rsa->n) < SSH_RSA_MINIMUM_MODULUS_SIZE) { |
133 | error("ssh_rsa_verify: n too small: %d bits", | 134 | error("ssh_rsa_verify: n too small: %d bits", |
134 | BN_num_bits(key->rsa->n)); | 135 | BN_num_bits(key->rsa->n)); |
135 | return -1; | 136 | return -1; |