summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index aa7e016bf..298a1b6bd 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.146 2001/01/07 11:28:07 markus Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.147 2001/01/10 19:43:20 deraadt Exp $");
44 44
45#include "xmalloc.h" 45#include "xmalloc.h"
46#include "rsa.h" 46#include "rsa.h"
@@ -266,8 +266,8 @@ grace_alarm_handler(int sig)
266 * do anything with the private key or random state before forking. 266 * do anything with the private key or random state before forking.
267 * Thus there should be no concurrency control/asynchronous execution 267 * Thus there should be no concurrency control/asynchronous execution
268 * problems. 268 * problems.
269 * XXX calling log() is not safe from races.
269 */ 270 */
270/* XXX do we really want this work to be done in a signal handler ? -m */
271void 271void
272generate_empheral_server_key(void) 272generate_empheral_server_key(void)
273{ 273{
@@ -279,6 +279,7 @@ generate_empheral_server_key(void)
279 arc4random_stir(); 279 arc4random_stir();
280 log("RSA key generation complete."); 280 log("RSA key generation complete.");
281} 281}
282
282void 283void
283key_regeneration_alarm(int sig) 284key_regeneration_alarm(int sig)
284{ 285{