diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-11 06:20:23 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-11 06:20:23 +0000 |
commit | 2f959b4cd1d1afcd241d7ffa06a34646c0c89969 (patch) | |
tree | a83ffc7dd3f484af4debdad46c5de25e985bf4ad /sshd.c | |
parent | fd9885e3264ea16c75b61812d17ed64ca8dfd308 (diff) |
20010112
- (bal) OpenBSD Sync
- markus@cvs.openbsd.org 2001/01/10 22:56:22
[bufaux.h bufaux.c sftp-server.c sftp.h getput.h]
cleanup sftp-server implementation:
add buffer_get_int64, buffer_put_int64, GET_64BIT, PUT_64BIT
parse SSH2_FILEXFER_ATTR_EXTENDED
send SSH2_FX_EOF if readdir returns no more entries
reply to SSH2_FXP_EXTENDED message
use #defines from the draft
move #definations to sftp.h
more info:
http://www.ietf.org/internet-drafts/draft-ietf-secsh-filexfer-00.txt
- markus@cvs.openbsd.org 2001/01/10 19:43:20
[sshd.c]
XXX - generate_empheral_server_key() is not safe against races,
because it calls log()
- markus@cvs.openbsd.org 2001/01/09 21:19:50
[packet.c]
allow TCP_NDELAY for ipv6; from netbsd via itojun@
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 | { |