summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sshd.c b/sshd.c
index bd671160d..248ad2976 100644
--- a/sshd.c
+++ b/sshd.c
@@ -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
@@ -430,7 +431,7 @@ sshd_exchange_identification(int sock_in, int sock_out)
430 server_version_string = xstrdup(buf); 431 server_version_string = xstrdup(buf);
431 432
432 /* Send our protocol version identification. */ 433 /* Send our protocol version identification. */
433 if (atomicio(vwrite, sock_out, server_version_string, 434 if (roaming_atomicio(vwrite, sock_out, server_version_string,
434 strlen(server_version_string)) 435 strlen(server_version_string))
435 != strlen(server_version_string)) { 436 != strlen(server_version_string)) {
436 logit("Could not write ident string to %s", get_remote_ipaddr()); 437 logit("Could not write ident string to %s", get_remote_ipaddr());
@@ -440,7 +441,7 @@ sshd_exchange_identification(int sock_in, int sock_out)
440 /* Read other sides version identification. */ 441 /* Read other sides version identification. */
441 memset(buf, 0, sizeof(buf)); 442 memset(buf, 0, sizeof(buf));
442 for (i = 0; i < sizeof(buf) - 1; i++) { 443 for (i = 0; i < sizeof(buf) - 1; i++) {
443 if (atomicio(read, sock_in, &buf[i], 1) != 1) { 444 if (roaming_atomicio(read, sock_in, &buf[i], 1) != 1) {
444 logit("Did not receive identification string from %s", 445 logit("Did not receive identification string from %s",
445 get_remote_ipaddr()); 446 get_remote_ipaddr());
446 cleanup_exit(255); 447 cleanup_exit(255);
@@ -588,7 +589,7 @@ demote_sensitive_data(void)
588static void 589static void
589privsep_preauth_child(void) 590privsep_preauth_child(void)
590{ 591{
591 u_int32_t rnd[256]; 592 u_int32_t rnd[256];
592 gid_t gidset[1]; 593 gid_t gidset[1];
593 594
594 /* Enable challenge-response authentication for privilege separation */ 595 /* Enable challenge-response authentication for privilege separation */