summaryrefslogtreecommitdiff
path: root/ttymodes.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-04-30 23:26:54 +0000
committerDamien Miller <djm@mindrot.org>2017-05-01 10:05:04 +1000
commitaebd0abfaa8a41e75d50f9f7934267b0a2d9acb4 (patch)
tree0173fc9d74a80a7eb212b2ff520f49089771041c /ttymodes.h
parentdfa641f758d4b8b2608ab1b00abaf88df0a8e36a (diff)
upstream commit
purge the last traces of SSHv1 from the TTY modes handling code ok markus Upstream-ID: 963a19f1e06577377c38a3b7ce468f121b966195
Diffstat (limited to 'ttymodes.h')
-rw-r--r--ttymodes.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/ttymodes.h b/ttymodes.h
index 14e177cef..24f07560c 100644
--- a/ttymodes.h
+++ b/ttymodes.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ttymodes.h,v 1.15 2016/05/03 09:03:49 dtucker Exp $ */ 1/* $OpenBSD: ttymodes.h,v 1.16 2017/04/30 23:26:54 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -38,22 +38,13 @@
38 */ 38 */
39 39
40/* 40/*
41 * SSH1: 41 * The tty mode description is a string, consisting of
42 * The tty mode description is a stream of bytes. The stream consists of
43 * opcode-arguments pairs. It is terminated by opcode TTY_OP_END (0). 42 * opcode-arguments pairs. It is terminated by opcode TTY_OP_END (0).
44 * Opcodes 1-127 have one-byte arguments. Opcodes 128-159 have integer 43 * Opcodes 1-159 have uint32 arguments.
45 * arguments. Opcodes 160-255 are not yet defined, and cause parsing to 44 * Opcodes 160-255 are not yet defined and cause parsing to stop (they
46 * stop (they should only be used after any other data). 45 * should only be used after any other data).
47 * 46 *
48 * SSH2: 47 * The client puts in the string any modes it knows about, and the
49 * Differences between SSH1 and SSH2 terminal mode encoding include:
50 * 1. Encoded terminal modes are represented as a string, and a stream
51 * of bytes within that string.
52 * 2. Opcode arguments are uint32 (1-159); 160-255 remain undefined.
53 * 3. The values for TTY_OP_ISPEED and TTY_OP_OSPEED are different;
54 * 128 and 129 vs. 192 and 193 respectively.
55 *
56 * The client puts in the stream any modes it knows about, and the
57 * server ignores any modes it does not know about. This allows some degree 48 * server ignores any modes it does not know about. This allows some degree
58 * of machine-independence, at least between systems that use a posix-like 49 * of machine-independence, at least between systems that use a posix-like
59 * tty interface. The protocol can support other systems as well, but might 50 * tty interface. The protocol can support other systems as well, but might