changeset 748:c8c791c5d83e

merge
author Matt Johnston <matt@ucc.asn.au>
date Wed, 03 Apr 2013 00:50:46 +0800
parents 077bbe1eb220 (current diff) 2001bc3c9397 (diff)
children f62e82c474d5
files
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/random.c	Wed Apr 03 00:49:24 2013 +0800
+++ b/random.c	Wed Apr 03 00:50:46 2013 +0800
@@ -157,9 +157,9 @@
 	/* This is opportunistic, don't worry about failure */
 	unsigned char buf[INIT_SEED_SIZE];
 	FILE *f = fopen(DROPBEAR_URANDOM_DEV, "w");
-    if (!f) {
-        return;
-    }
+	if (!f) {
+		return;
+	}
 	genrandom(buf, sizeof(buf));
 	fwrite(buf, sizeof(buf), 1, f);
 	fclose(f);
--- a/termcodes.c	Wed Apr 03 00:49:24 2013 +0800
+++ b/termcodes.c	Wed Apr 03 00:50:46 2013 +0800
@@ -107,8 +107,14 @@
 #else
 		{0, 0},
 #endif
-		{0, 0}, /* 42 */
+		/* IUTF8 isn't standardised in rfc4254 but is likely soon.
+		 * Implemented by linux and darwin */
+#ifdef IUTF8
+		{IUTF8, TERMCODE_INPUT},
+#else
 		{0, 0},
+#endif
+		{0, 0}, /* 43 */
 		{0, 0},
 		{0, 0},
 		{0, 0},