summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-12-27 03:25:24 +0000
committerDamien Miller <djm@mindrot.org>2018-12-27 14:38:22 +1100
commit0a843d9a0e805f14653a555f5c7a8ba99d62c12d (patch)
tree481f36e9fd1918be5449e369a97c086a1a8d2432 /ssh.c
parent434b587afe41c19391821e7392005068fda76248 (diff)
upstream: move client/server SSH-* banners to buffers under
ssh->kex and factor out the banner exchange. This eliminates some common code from the client and server. Also be more strict about handling \r characters - these should only be accepted immediately before \n (pointed out by Jann Horn). Inspired by a patch from Markus Schmidt. (lots of) feedback and ok markus@ OpenBSD-Commit-ID: 1cc7885487a6754f63641d7d3279b0941890275b
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index c6cb7847d..16536a97a 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.496 2018/11/23 05:08:07 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.497 2018/12/27 03:25:25 djm 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
@@ -1490,7 +1490,7 @@ main(int ac, char **av)
1490 signal(SIGCHLD, main_sigchld_handler); 1490 signal(SIGCHLD, main_sigchld_handler);
1491 1491
1492 /* Log into the remote system. Never returns if the login fails. */ 1492 /* Log into the remote system. Never returns if the login fails. */
1493 ssh_login(&sensitive_data, host, (struct sockaddr *)&hostaddr, 1493 ssh_login(ssh, &sensitive_data, host, (struct sockaddr *)&hostaddr,
1494 options.port, pw, timeout_ms); 1494 options.port, pw, timeout_ms);
1495 1495
1496 if (packet_connection_is_on_socket()) { 1496 if (packet_connection_is_on_socket()) {