diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-05-17 08:20:17 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-05-17 08:20:17 +0000 |
commit | f52cd8d3171054eccbebe0630a19752f1272eb1b (patch) | |
tree | e7816e6e9410f346e6e330da1ba8da205406cc58 /usr.bin/ssh/sshconnect.c | |
parent | 9ec00b9fdfe93fe410f6932f84033553e51b74e2 (diff) |
enable nonblocking IO for sshd w/ proto 1, too; split out common code
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index 80beac30680..4325eae747b 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -8,7 +8,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect.c,v 1.72 2000/05/04 09:50:22 markus Exp $"); +RCSID("$OpenBSD: sshconnect.c,v 1.73 2000/05/17 08:20:15 markus Exp $"); #include <openssl/bn.h> #include <openssl/dsa.h> @@ -297,21 +297,6 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr, return 1; } -char * -chop(char *s) -{ - char *t = s; - while (*t) { - if(*t == '\n' || *t == '\r') { - *t = '\0'; - return s; - } - t++; - } - return s; - -} - /* * Waits for the server identification string, and sends our own * identification string. |