summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--auth-rsa.c6
-rw-r--r--ssh-rsa.c6
3 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c2c13aa10..950214376 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,9 @@
7 - itojun@cvs.openbsd.org 2002/06/09 22:17:21 7 - itojun@cvs.openbsd.org 2002/06/09 22:17:21
8 [sshconnect.c] 8 [sshconnect.c]
9 pass salen to sockaddr_ntop so that we are happy on linux/solaris 9 pass salen to sockaddr_ntop so that we are happy on linux/solaris
10 - stevesk@cvs.openbsd.org 2002/06/10 16:53:06
11 [auth-rsa.c ssh-rsa.c]
12 display minimum RSA modulus in error(); ok markus@
10 13
1120020609 1420020609
12 - (bal) OpenBSD CVS Sync 15 - (bal) OpenBSD CVS Sync
@@ -872,4 +875,4 @@
872 - (stevesk) entropy.c: typo in debug message 875 - (stevesk) entropy.c: typo in debug message
873 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 876 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
874 877
875$Id: ChangeLog,v 1.2201 2002/06/11 15:46:34 mouring Exp $ 878$Id: ChangeLog,v 1.2202 2002/06/11 15:47:42 mouring Exp $
diff --git a/auth-rsa.c b/auth-rsa.c
index 493f14b11..92f6277f9 100644
--- a/auth-rsa.c
+++ b/auth-rsa.c
@@ -14,7 +14,7 @@
14 */ 14 */
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$OpenBSD: auth-rsa.c,v 1.55 2002/03/29 19:18:33 stevesk Exp $"); 17RCSID("$OpenBSD: auth-rsa.c,v 1.56 2002/06/10 16:53:06 stevesk Exp $");
18 18
19#include <openssl/rsa.h> 19#include <openssl/rsa.h>
20#include <openssl/md5.h> 20#include <openssl/md5.h>
@@ -81,8 +81,8 @@ auth_rsa_verify_response(Key *key, BIGNUM *challenge, u_char response[16])
81 81
82 /* don't allow short keys */ 82 /* don't allow short keys */
83 if (BN_num_bits(key->rsa->n) < SSH_RSA_MINIMUM_MODULUS_SIZE) { 83 if (BN_num_bits(key->rsa->n) < SSH_RSA_MINIMUM_MODULUS_SIZE) {
84 error("auth_rsa_verify_response: n too small: %d bits", 84 error("auth_rsa_verify_response: RSA modulus too small: %d < minimum %d bits",
85 BN_num_bits(key->rsa->n)); 85 BN_num_bits(key->rsa->n), SSH_RSA_MINIMUM_MODULUS_SIZE);
86 return (0); 86 return (0);
87 } 87 }
88 88
diff --git a/ssh-rsa.c b/ssh-rsa.c
index 458c9c840..3e66294e9 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.19 2002/05/31 13:20:50 markus Exp $"); 26RCSID("$OpenBSD: ssh-rsa.c,v 1.20 2002/06/10 16:53:06 stevesk Exp $");
27 27
28#include <openssl/evp.h> 28#include <openssl/evp.h>
29#include <openssl/err.h> 29#include <openssl/err.h>
@@ -123,8 +123,8 @@ ssh_rsa_verify(
123 return -1; 123 return -1;
124 } 124 }
125 if (BN_num_bits(key->rsa->n) < SSH_RSA_MINIMUM_MODULUS_SIZE) { 125 if (BN_num_bits(key->rsa->n) < SSH_RSA_MINIMUM_MODULUS_SIZE) {
126 error("ssh_rsa_verify: n too small: %d bits", 126 error("ssh_rsa_verify: RSA modulus too small: %d < minimum %d bits",
127 BN_num_bits(key->rsa->n)); 127 BN_num_bits(key->rsa->n), SSH_RSA_MINIMUM_MODULUS_SIZE);
128 return -1; 128 return -1;
129 } 129 }
130 buffer_init(&b); 130 buffer_init(&b);