summaryrefslogtreecommitdiff
path: root/ttymodes.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-14 23:13:02 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-14 23:13:02 +0000
commitae8e2d30db561a556ee0a82dce0dcda3d6f82623 (patch)
treeccb6c556b05f7f6a77c5500a3bbe68fc5114c22c /ttymodes.h
parent7457f2af01d77c4bdeaef3a6c211bb2f1e215a9c (diff)
- stevesk@cvs.openbsd.org 2001/04/14 16:33:20
[clientloop.c packet.h session.c ssh.c ttymodes.c ttymodes.h] protocol 2 tty modes support; ok markus@
Diffstat (limited to 'ttymodes.h')
-rw-r--r--ttymodes.h39
1 files changed, 36 insertions, 3 deletions
diff --git a/ttymodes.h b/ttymodes.h
index 860fd0a9c..ad980e98c 100644
--- a/ttymodes.h
+++ b/ttymodes.h
@@ -1,6 +1,6 @@
1/* RCSID("$OpenBSD: ttymodes.h,v 1.11 2001/04/14 16:33:20 stevesk Exp $"); */
1/* 2/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * SGTTY stuff contributed by Janne Snabb <snabb@niksula.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
5 * All rights reserved 5 * All rights reserved
6 * 6 *
@@ -11,14 +11,47 @@
11 * called by a name other than "ssh" or "Secure Shell". 11 * called by a name other than "ssh" or "Secure Shell".
12 */ 12 */
13 13
14/* RCSID("$OpenBSD: ttymodes.h,v 1.10 2001/03/10 15:02:05 stevesk Exp $"); */ 14/*
15 * SSH2 tty modes support by Kevin Steves.
16 * Copyright (c) 2001 Kevin Steves. All rights reserved.
17 *
18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions
20 * are met:
21 * 1. Redistributions of source code must retain the above copyright
22 * notice, this list of conditions and the following disclaimer.
23 * 2. Redistributions in binary form must reproduce the above copyright
24 * notice, this list of conditions and the following disclaimer in the
25 * documentation and/or other materials provided with the distribution.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
28 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
29 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
31 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 */
15 38
16/* The tty mode description is a stream of bytes. The stream consists of 39/*
40 * SSH1:
41 * The tty mode description is a stream of bytes. The stream consists of
17 * 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).
18 * Opcodes 1-127 have one-byte arguments. Opcodes 128-159 have integer 43 * Opcodes 1-127 have one-byte arguments. Opcodes 128-159 have integer
19 * arguments. Opcodes 160-255 are not yet defined, and cause parsing to 44 * arguments. Opcodes 160-255 are not yet defined, and cause parsing to
20 * stop (they should only be used after any other data). 45 * stop (they should only be used after any other data).
21 * 46 *
47 * SSH2:
48 * Differences between SSH1 and SSH2 terminal mode encoding include:
49 * 1. Encoded terminal modes are represented as a string, and a stream
50 * of bytes within that string.
51 * 2. Opcode arguments are uint32 (1-159); 160-255 remain undefined.
52 * 3. The values for TTY_OP_ISPEED and TTY_OP_OSPEED are different;
53 * 128 and 129 vs. 192 and 193 respectively.
54 *
22 * The client puts in the stream any modes it knows about, and the 55 * The client puts in the stream any modes it knows about, and the
23 * server ignores any modes it does not know about. This allows some degree 56 * server ignores any modes it does not know about. This allows some degree
24 * of machine-independence, at least between systems that use a posix-like 57 * of machine-independence, at least between systems that use a posix-like