summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sshd.c b/sshd.c
index d35403f20..b5e2d0f6f 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.184 2001/03/29 21:06:21 stevesk Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.185 2001/03/29 23:42:01 djm Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -278,12 +278,13 @@ generate_ephemeral_server_key(void)
278 u_int32_t rand = 0; 278 u_int32_t rand = 0;
279 int i; 279 int i;
280 280
281 log("Generating %s%d bit RSA key.", sensitive_data.server_key ? "new " : "", 281 verbose("Generating %s%d bit RSA key.",
282 options.server_key_bits); 282 sensitive_data.server_key ? "new " : "", options.server_key_bits);
283 if (sensitive_data.server_key != NULL) 283 if (sensitive_data.server_key != NULL)
284 key_free(sensitive_data.server_key); 284 key_free(sensitive_data.server_key);
285 sensitive_data.server_key = key_generate(KEY_RSA1, options.server_key_bits); 285 sensitive_data.server_key = key_generate(KEY_RSA1,
286 log("RSA key generation complete."); 286 options.server_key_bits);
287 verbose("RSA key generation complete.");
287 288
288 for (i = 0; i < SSH_SESSION_KEY_LENGTH; i++) { 289 for (i = 0; i < SSH_SESSION_KEY_LENGTH; i++) {
289 if (i % 4 == 0) 290 if (i % 4 == 0)