aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/ttymodes.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-03-18 09:55:03 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-03-18 09:55:03 +0000
commitae1f160d56b2d59d406f1af34cbdcc88a9e1b914 (patch)
tree7ac239d263df7247abaf6488a321dac17f2ebce9 /crypto/openssh/ttymodes.c
parent1e8db6e2f63ea90b361b3bbc9ebe9990660cb596 (diff)
downloadsrc-ae1f160d56b2d59d406f1af34cbdcc88a9e1b914.tar.gz
src-ae1f160d56b2d59d406f1af34cbdcc88a9e1b914.zip
Vendor import of OpenSSH 3.1
Notes
Notes: svn path=/vendor-crypto/openssh/dist/; revision=92555
Diffstat (limited to 'crypto/openssh/ttymodes.c')
-rw-r--r--crypto/openssh/ttymodes.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/crypto/openssh/ttymodes.c b/crypto/openssh/ttymodes.c
index 6124cb4b12b9..ccc001f20019 100644
--- a/crypto/openssh/ttymodes.c
+++ b/crypto/openssh/ttymodes.c
@@ -43,7 +43,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ttymodes.c,v 1.13 2001/04/15 01:35:22 stevesk Exp $");
+RCSID("$OpenBSD: ttymodes.c,v 1.16 2001/12/27 20:39:58 markus Exp $");
#include "packet.h"
#include "log.h"
@@ -275,22 +275,22 @@ tty_make_modes(int fd, struct termios *tiop)
/* Store input and output baud rates. */
baud = speed_to_baud(cfgetospeed(&tio));
- debug2("tty_make_modes: ospeed %d", baud);
+ debug3("tty_make_modes: ospeed %d", baud);
buffer_put_char(&buf, tty_op_ospeed);
buffer_put_int(&buf, baud);
baud = speed_to_baud(cfgetispeed(&tio));
- debug2("tty_make_modes: ispeed %d", baud);
+ debug3("tty_make_modes: ispeed %d", baud);
buffer_put_char(&buf, tty_op_ispeed);
buffer_put_int(&buf, baud);
/* Store values of mode flags. */
#define TTYCHAR(NAME, OP) \
- debug2("tty_make_modes: %d %d", OP, tio.c_cc[NAME]); \
+ debug3("tty_make_modes: %d %d", OP, tio.c_cc[NAME]); \
buffer_put_char(&buf, OP); \
put_arg(&buf, tio.c_cc[NAME]);
#define TTYMODE(NAME, FIELD, OP) \
- debug2("tty_make_modes: %d %d", OP, ((tio.FIELD & NAME) != 0)); \
+ debug3("tty_make_modes: %d %d", OP, ((tio.FIELD & NAME) != 0)); \
buffer_put_char(&buf, OP); \
put_arg(&buf, ((tio.FIELD & NAME) != 0));
@@ -326,7 +326,7 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
if (compat20) {
*n_bytes_ptr = packet_get_int();
- debug2("tty_parse_modes: SSH2 n_bytes %d", *n_bytes_ptr);
+ debug3("tty_parse_modes: SSH2 n_bytes %d", *n_bytes_ptr);
if (*n_bytes_ptr == 0)
return;
get_arg = packet_get_int;
@@ -358,7 +358,7 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
case TTY_OP_ISPEED_PROTO2:
n_bytes += 4;
baud = packet_get_int();
- debug2("tty_parse_modes: ispeed %d", baud);
+ debug3("tty_parse_modes: ispeed %d", baud);
if (failure != -1 && cfsetispeed(&tio, baud_to_speed(baud)) == -1)
error("cfsetispeed failed for %d", baud);
break;
@@ -368,7 +368,7 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
case TTY_OP_OSPEED_PROTO2:
n_bytes += 4;
baud = packet_get_int();
- debug2("tty_parse_modes: ospeed %d", baud);
+ debug3("tty_parse_modes: ospeed %d", baud);
if (failure != -1 && cfsetospeed(&tio, baud_to_speed(baud)) == -1)
error("cfsetospeed failed for %d", baud);
break;
@@ -377,7 +377,7 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
case OP: \
n_bytes += arg_size; \
tio.c_cc[NAME] = get_arg(); \
- debug2("tty_parse_modes: %d %d", OP, tio.c_cc[NAME]); \
+ debug3("tty_parse_modes: %d %d", OP, tio.c_cc[NAME]); \
break;
#define TTYMODE(NAME, FIELD, OP) \
case OP: \
@@ -386,7 +386,7 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
tio.FIELD |= NAME; \
else \
tio.FIELD &= ~NAME; \
- debug2("tty_parse_modes: %d %d", OP, arg); \
+ debug3("tty_parse_modes: %d %d", OP, arg); \
break;
#include "ttymodes.h"
@@ -396,7 +396,7 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
default:
debug("Ignoring unsupported tty mode opcode %d (0x%x)",
- opcode, opcode);
+ opcode, opcode);
if (!compat20) {
/*
* SSH1:
@@ -422,7 +422,6 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
* more coming after the mode data.
*/
log("parse_tty_modes: unknown opcode %d", opcode);
- packet_integrity_check(0, 1, SSH_CMSG_REQUEST_PTY);
goto set;
}
} else {