summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-05-17 08:20:17 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-05-17 08:20:17 +0000
commitf52cd8d3171054eccbebe0630a19752f1272eb1b (patch)
treee7816e6e9410f346e6e330da1ba8da205406cc58 /usr.bin/ssh/sshd.c
parent9ec00b9fdfe93fe410f6932f84033553e51b74e2 (diff)
enable nonblocking IO for sshd w/ proto 1, too; split out common code
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 0d62320a118..e2a393b8328 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -14,7 +14,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.115 2000/05/03 10:21:49 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.116 2000/05/17 08:20:16 markus Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -258,21 +258,6 @@ key_regeneration_alarm(int sig)
errno = save_errno;
}
-char *
-chop(char *s)
-{
- char *t = s;
- while (*t) {
- if(*t == '\n' || *t == '\r') {
- *t = '\0';
- return s;
- }
- t++;
- }
- return s;
-
-}
-
void
sshd_exchange_identification(int sock_in, int sock_out)
{