summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect.h
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2007-09-04 11:15:55 +0000
committerdjm <djm@openbsd.org>2007-09-04 11:15:55 +0000
commit1e5dc185a9ea13fda3c3fa22288185f96883dc88 (patch)
tree5b8f2dac33e7b474950b96f9bb96c3c64d68b5b7 /usr.bin/ssh/sshconnect.h
parentsmall fix in the error path when accepting new relay sessions (diff)
downloadwireguard-openbsd-1e5dc185a9ea13fda3c3fa22288185f96883dc88.tar.xz
wireguard-openbsd-1e5dc185a9ea13fda3c3fa22288185f96883dc88.zip
make ssh(1)'s ConnectTimeout option apply to both the TCP connection and
SSH banner exchange (previously it just covered the TCP connection). This allows callers of ssh(1) to better detect and deal with stuck servers that accept a TCP connection but don't progress the protocol, and also makes ConnectTimeout useful for connections via a ProxyCommand; feedback and "looks ok" markus@
Diffstat (limited to 'usr.bin/ssh/sshconnect.h')
-rw-r--r--usr.bin/ssh/sshconnect.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.h b/usr.bin/ssh/sshconnect.h
index 4e66bbffc97..75bde1a4db1 100644
--- a/usr.bin/ssh/sshconnect.h
+++ b/usr.bin/ssh/sshconnect.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.h,v 1.23 2006/08/03 03:34:42 deraadt Exp $ */
+/* $OpenBSD: sshconnect.h,v 1.24 2007/09/04 11:15:56 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -33,10 +33,10 @@ struct Sensitive {
int
ssh_connect(const char *, struct sockaddr_storage *, u_short, int, int,
- int, const char *);
+ int *, int, int, const char *);
void
-ssh_login(Sensitive *, const char *, struct sockaddr *, struct passwd *);
+ssh_login(Sensitive *, const char *, struct sockaddr *, struct passwd *, int);
int verify_host_key(char *, struct sockaddr *, Key *);