summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-rsa.c
diff options
context:
space:
mode:
authorstevesk <stevesk@openbsd.org>2002-06-10 16:53:06 +0000
committerstevesk <stevesk@openbsd.org>2002-06-10 16:53:06 +0000
commitcf52295bbea981e8a49a433af11121c9f55830ce (patch)
tree38783f815e54f0928c8ddc09b81870905cf50066 /usr.bin/ssh/ssh-rsa.c
parentMove enum out of struct (gcc 3.1 wasn't happy), from David Krause (diff)
downloadwireguard-openbsd-cf52295bbea981e8a49a433af11121c9f55830ce.tar.xz
wireguard-openbsd-cf52295bbea981e8a49a433af11121c9f55830ce.zip
display minimum RSA modulus in error(); ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-rsa.c')
-rw-r--r--usr.bin/ssh/ssh-rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-rsa.c b/usr.bin/ssh/ssh-rsa.c
index 458c9c840ef..3e66294e9f8 100644
--- a/usr.bin/ssh/ssh-rsa.c
+++ b/usr.bin/ssh/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);