diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-06-21 18:17:19 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-06-21 18:17:19 +1000 |
commit | 1cc55d7a607455d75db0204b5acebce47667b0f8 (patch) | |
tree | b3686fc7c5e0af15be7140231729e207e928ac1e | |
parent | 761c38918aecbbe2df97d13aea29c6bbf9212617 (diff) |
- andreas@cvs.openbsd.org 2009/05/28 16:50:16
[sshd.c packet.c serverloop.c monitor_wrap.c clientloop.c sshconnect.c
monitor.c]
Keep track of number of bytes read and written. Needed for upcoming
changes. Most code from Martin Forssen, maf at appgate dot com.
ok markus@
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sshconnect.c | 4 | ||||
-rw-r--r-- | sshconnect.h | 4 |
3 files changed, 11 insertions, 3 deletions
@@ -81,6 +81,12 @@ | |||
81 | Un-static ssh_exchange_identification(), part of a larger change from | 81 | Un-static ssh_exchange_identification(), part of a larger change from |
82 | Martin Forssen and needed for upcoming changes. | 82 | Martin Forssen and needed for upcoming changes. |
83 | ok markus@ | 83 | ok markus@ |
84 | - andreas@cvs.openbsd.org 2009/05/28 16:50:16 | ||
85 | [sshd.c packet.c serverloop.c monitor_wrap.c clientloop.c sshconnect.c | ||
86 | monitor.c] | ||
87 | Keep track of number of bytes read and written. Needed for upcoming | ||
88 | changes. Most code from Martin Forssen, maf at appgate dot com. | ||
89 | ok markus@ | ||
84 | 90 | ||
85 | 20090616 | 91 | 20090616 |
86 | - (dtucker) [configure.ac defines.h] Bug #1607: handle the case where fsid_t | 92 | - (dtucker) [configure.ac defines.h] Bug #1607: handle the case where fsid_t |
diff --git a/sshconnect.c b/sshconnect.c index c04aa1057..dee3ba544 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect.c,v 1.212 2008/10/14 18:11:33 stevesk Exp $ */ | 1 | /* $OpenBSD: sshconnect.c,v 1.213 2009/05/27 06:38: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 |
@@ -413,7 +413,7 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr, | |||
413 | * Waits for the server identification string, and sends our own | 413 | * Waits for the server identification string, and sends our own |
414 | * identification string. | 414 | * identification string. |
415 | */ | 415 | */ |
416 | static void | 416 | void |
417 | ssh_exchange_identification(int timeout_ms) | 417 | ssh_exchange_identification(int timeout_ms) |
418 | { | 418 | { |
419 | char buf[256], remote_version[256]; /* must be same size! */ | 419 | char buf[256], remote_version[256]; /* must be same size! */ |
diff --git a/sshconnect.h b/sshconnect.h index 75bde1a4d..c59a097f4 100644 --- a/sshconnect.h +++ b/sshconnect.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect.h,v 1.24 2007/09/04 11:15:56 djm Exp $ */ | 1 | /* $OpenBSD: sshconnect.h,v 1.25 2009/05/27 06:38:16 andreas Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -38,6 +38,8 @@ ssh_connect(const char *, struct sockaddr_storage *, u_short, int, int, | |||
38 | void | 38 | void |
39 | ssh_login(Sensitive *, const char *, struct sockaddr *, struct passwd *, int); | 39 | ssh_login(Sensitive *, const char *, struct sockaddr *, struct passwd *, int); |
40 | 40 | ||
41 | void ssh_exchange_identification(int); | ||
42 | |||
41 | int verify_host_key(char *, struct sockaddr *, Key *); | 43 | int verify_host_key(char *, struct sockaddr *, Key *); |
42 | 44 | ||
43 | void ssh_kex(char *, struct sockaddr *); | 45 | void ssh_kex(char *, struct sockaddr *); |