summaryrefslogtreecommitdiff
path: root/ssh-rsa.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-11 15:47:42 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-11 15:47:42 +0000
commit2779d28a0f96fc4675638d85869dcc4448e83453 (patch)
tree2c2c50016cb4204beb2a1d404db5131772189113 /ssh-rsa.c
parent18a32a7efa9ca967bf1ca2b55a6543c180aceaeb (diff)
- stevesk@cvs.openbsd.org 2002/06/10 16:53:06
[auth-rsa.c ssh-rsa.c] display minimum RSA modulus in error(); ok markus@
Diffstat (limited to 'ssh-rsa.c')
-rw-r--r--ssh-rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-rsa.c b/ssh-rsa.c
index 458c9c84..3e66294e 100644
--- a/ssh-rsa.c
+++ b/ssh-rsa.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-rsa.c,v 1.19 2002/05/31 13:20:50 markus Exp $");
+RCSID("$OpenBSD: ssh-rsa.c,v 1.20 2002/06/10 16:53:06 stevesk Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -123,8 +123,8 @@ ssh_rsa_verify(
return -1;
}
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));
+ error("ssh_rsa_verify: RSA modulus too small: %d < minimum %d bits",
+ BN_num_bits(key->rsa->n), SSH_RSA_MINIMUM_MODULUS_SIZE);
return -1;
}
buffer_init(&b);