summaryrefslogtreecommitdiff
path: root/ssh.c
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 /ssh.c
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 'ssh.c')
-rw-r--r--ssh.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ssh.c b/ssh.c
index 68ce17177..bd0d5ba9d 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: ssh.c,v 1.114 2001/04/13 01:26:17 stevesk Exp $"); 42RCSID("$OpenBSD: ssh.c,v 1.115 2001/04/14 16:33:20 stevesk Exp $");
43 43
44#include <openssl/evp.h> 44#include <openssl/evp.h>
45#include <openssl/err.h> 45#include <openssl/err.h>
@@ -67,6 +67,7 @@ RCSID("$OpenBSD: ssh.c,v 1.114 2001/04/13 01:26:17 stevesk Exp $");
67#include "misc.h" 67#include "misc.h"
68#include "kex.h" 68#include "kex.h"
69#include "mac.h" 69#include "mac.h"
70#include "sshtty.h"
70 71
71#ifdef HAVE___PROGNAME 72#ifdef HAVE___PROGNAME
72extern char *__progname; 73extern char *__progname;
@@ -879,7 +880,7 @@ ssh_session(void)
879 packet_put_int(ws.ws_ypixel); 880 packet_put_int(ws.ws_ypixel);
880 881
881 /* Store tty modes in the packet. */ 882 /* Store tty modes in the packet. */
882 tty_make_modes(fileno(stdin)); 883 tty_make_modes(fileno(stdin), NULL);
883 884
884 /* Send the packet, and wait for it to leave. */ 885 /* Send the packet, and wait for it to leave. */
885 packet_send(); 886 packet_send();
@@ -983,6 +984,7 @@ ssh_session2_callback(int id, void *arg)
983{ 984{
984 int len; 985 int len;
985 int interactive = 0; 986 int interactive = 0;
987 struct termios tio;
986 988
987 debug("client_init id %d arg %ld", id, (long)arg); 989 debug("client_init id %d arg %ld", id, (long)arg);
988 990
@@ -1002,7 +1004,8 @@ ssh_session2_callback(int id, void *arg)
1002 packet_put_int(ws.ws_row); 1004 packet_put_int(ws.ws_row);
1003 packet_put_int(ws.ws_xpixel); 1005 packet_put_int(ws.ws_xpixel);
1004 packet_put_int(ws.ws_ypixel); 1006 packet_put_int(ws.ws_ypixel);
1005 packet_put_cstring(""); /* XXX: encode terminal modes */ 1007 tio = get_saved_tio();
1008 tty_make_modes(/*ignored*/ 0, &tio);
1006 packet_send(); 1009 packet_send();
1007 interactive = 1; 1010 interactive = 1;
1008 /* XXX wait for reply */ 1011 /* XXX wait for reply */