The unified diff between revisions [8a242f0b..] and [7087b631..] is displayed below. It can also be downloaded as a raw diff.
#
#
# rename "README.axis"
# to "AXIS-README"
#
# patch "options.h"
# from [145dbe5fe229b6a2360923bd44c57b3d4bf1794b]
# to [9f3f0822503ea1a4d248f3576bd498e800489e96]
#
# patch "svr-chansession.c"
# from [dab4b6dd7a8d03c86f357d5e9511b9a9985f055e]
# to [bd6a54e7ec2a89714d0e2c95cb4a3c567b3abf42]
#
============================================================
--- options.h 145dbe5fe229b6a2360923bd44c57b3d4bf1794b
+++ options.h 9f3f0822503ea1a4d248f3576bd498e800489e96
@@ -100,7 +100,7 @@ etc) slower (perhaps by 50%). Recommende
* Removing either of these won't save very much space.
* SSH2 RFC Draft requires dss, recommends rsa */
#define DROPBEAR_RSA
-//#define DROPBEAR_DSS
+#define DROPBEAR_DSS
/* RSA can be vulnerable to timing attacks which use the time required for
* signing to guess the private key. Blinding avoids this attack, though makes
============================================================
--- svr-chansession.c dab4b6dd7a8d03c86f357d5e9511b9a9985f055e
+++ svr-chansession.c bd6a54e7ec2a89714d0e2c95cb4a3c567b3abf42
@@ -647,6 +647,7 @@ static void serial_connect(struct Channe
static void serial_connect(struct Channel *channel) {
int serial_fd;
+ struct termios options;
TRACE(("enter serial_connect"))
@@ -659,8 +660,25 @@ static void serial_connect(struct Channe
}
TRACE(("success serial_connect"))
- /* XXX TODO - code to set the serial fd to the right baud/settings etc */
+ /* set some serial options. XXX needs attention */
+ tcgetattr(serial_fd, &options);
+
+ cfsetispeed(&options, B9600);
+ cfsetospeed(&options, B9600);
+
+ options.c_cflag &= ~CSIZE; /* Mask the character size bits */
+ options.c_cflag |= CS8; /* Select 8 data bits */
+ options.c_cflag &= ~PARENB;
+ options.c_cflag &= ~CSTOPB;
+ options.c_cflag &= ~CSIZE;
+
+ options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
+ options.c_iflag |= (INPCK | ISTRIP);
+
+ tcsetattr(serial_fd, TCSANOW, &options);
+
+
ses.maxfd = MAX(serial_fd, channel->writefd);
setnonblocking(serial_fd);