diff -3ur ssh-1.2.27-fresh/bufaux.c ssh-1.2.27-sc/bufaux.c
--- ssh-1.2.27-fresh/bufaux.c	Wed May 12 07:19:24 1999
+++ ssh-1.2.27-sc/bufaux.c	Thu Jul 20 15:32:59 2000
@@ -15,8 +15,14 @@
 */
 
 /*
- * $Id: bufaux.c,v 1.1.1.1 1996/02/18 21:38:11 ylo Exp $
+ * $Id: bufaux.c,v 1.1 2000/05/13 19:39:29 itoi Exp $
  * $Log: bufaux.c,v $
+ * Revision 1.1  2000/05/13 19:39:29  itoi
+ * ssh / speke / udp / ip / 7816 works!
+ *
+ * Revision 1.1.1.1  2000/02/21 22:19:46  itoi
+ * SSH / Smartcard
+ *
  * Revision 1.1.1.1  1996/02/18 21:38:11  ylo
  * 	Imported ssh-1.2.13.
  *
@@ -71,7 +77,14 @@
       sscanf(buf + i, "%2x", &byte);
       buf[oi++] = byte;
     }
-  
+
+  /*
+  printf ("hex_size = %d, oi=%d\n", hex_size, oi);
+
+  for (i=0; i<oi; i++)
+    printf ("%02x ", buf[i]&0xff);
+  printf ("\n\n");
+  */
   assert(oi == ((bits + 7) / 8));
   /* Store the number of bits in the buffer in two bytes, msb first. */
   PUT_16BIT(msg, bits);
@@ -90,7 +103,6 @@
   int i, bits, bytes;
   char *hex;
   unsigned char buf[2];
-
   /* Get the number for bits. */
   buffer_get(buffer, (char *)buf, 2);
   bits = GET_16BIT(buf);
@@ -105,8 +117,17 @@
       unsigned char byte;
       buffer_get(buffer, (char *)&byte, 1);
       sprintf(hex + 2 * i, "%02x", byte);
+      /*
+#ifdef TF_PRINT
+      printf (" %02x", byte);
+#endif
+      */
     }
-
+  /*
+#ifdef TF_PRINT
+  printf ("\n");
+#endif
+  */
   /* Read the hex string into a mp-int. */
   mpz_set_str(value, hex, 16);
 
