diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.146 2001/01/07 11:28:07 markus Exp $"); | 43 | RCSID("$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 */ | ||
271 | void | 271 | void |
272 | generate_empheral_server_key(void) | 272 | generate_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 | |||
282 | void | 283 | void |
283 | key_regeneration_alarm(int sig) | 284 | key_regeneration_alarm(int sig) |
284 | { | 285 | { |