diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.366 2009/01/22 10:02:34 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.367 2009/05/28 16:50:16 andreas Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -117,6 +117,7 @@ | |||
117 | #include "ssh-gss.h" | 117 | #include "ssh-gss.h" |
118 | #endif | 118 | #endif |
119 | #include "monitor_wrap.h" | 119 | #include "monitor_wrap.h" |
120 | #include "roaming.h" | ||
120 | #include "version.h" | 121 | #include "version.h" |
121 | 122 | ||
122 | #ifdef USE_SECURITY_SESSION_API | 123 | #ifdef USE_SECURITY_SESSION_API |
@@ -423,7 +424,7 @@ sshd_exchange_identification(int sock_in, int sock_out) | |||
423 | server_version_string = xstrdup(buf); | 424 | server_version_string = xstrdup(buf); |
424 | 425 | ||
425 | /* Send our protocol version identification. */ | 426 | /* Send our protocol version identification. */ |
426 | if (atomicio(vwrite, sock_out, server_version_string, | 427 | if (roaming_atomicio(vwrite, sock_out, server_version_string, |
427 | strlen(server_version_string)) | 428 | strlen(server_version_string)) |
428 | != strlen(server_version_string)) { | 429 | != strlen(server_version_string)) { |
429 | logit("Could not write ident string to %s", get_remote_ipaddr()); | 430 | logit("Could not write ident string to %s", get_remote_ipaddr()); |
@@ -433,7 +434,7 @@ sshd_exchange_identification(int sock_in, int sock_out) | |||
433 | /* Read other sides version identification. */ | 434 | /* Read other sides version identification. */ |
434 | memset(buf, 0, sizeof(buf)); | 435 | memset(buf, 0, sizeof(buf)); |
435 | for (i = 0; i < sizeof(buf) - 1; i++) { | 436 | for (i = 0; i < sizeof(buf) - 1; i++) { |
436 | if (atomicio(read, sock_in, &buf[i], 1) != 1) { | 437 | if (roaming_atomicio(read, sock_in, &buf[i], 1) != 1) { |
437 | logit("Did not receive identification string from %s", | 438 | logit("Did not receive identification string from %s", |
438 | get_remote_ipaddr()); | 439 | get_remote_ipaddr()); |
439 | cleanup_exit(255); | 440 | cleanup_exit(255); |
@@ -581,7 +582,7 @@ demote_sensitive_data(void) | |||
581 | static void | 582 | static void |
582 | privsep_preauth_child(void) | 583 | privsep_preauth_child(void) |
583 | { | 584 | { |
584 | u_int32_t rnd[256]; | 585 | u_int32_t rnd[256]; |
585 | gid_t gidset[1]; | 586 | gid_t gidset[1]; |
586 | 587 | ||
587 | /* Enable challenge-response authentication for privilege separation */ | 588 | /* Enable challenge-response authentication for privilege separation */ |