dslinux/user/dropbear options.h

stsp stsp at user.in-berlin.de
Sat Jul 22 20:19:31 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/dropbear
In directory antilope:/tmp/cvs-serv29504

Modified Files:
	options.h 
Log Message:
Open /dev/urandom instead of /dev/random since we have no proper entropy
source yet.

Fix annoying data abort - the crash was in a function called __udivdi3,
which is apparently provided by the toolchain. The 'smaller' of the two
mp_div functions in libtommath does not get linked with __udivdi3,
and does not crash. So use it instead of the 'faster' one.
We should probably fix __udivdi3 in our toolchain in the long term.


Index: options.h
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/dropbear/options.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- options.h	23 May 2006 09:52:55 -0000	1.3
+++ options.h	22 Jul 2006 18:19:29 -0000	1.4
@@ -154,7 +154,7 @@
  * however significantly reduce the security of your ssh connections
  * if the PRNG state becomes guessable - make sure you know what you are
  * doing if you change this. */
-#define DROPBEAR_RANDOM_DEV "/dev/random"
+#define DROPBEAR_RANDOM_DEV "/dev/urandom"
 
 /* prngd must be manually set up to produce output */
 /*#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng"*/




More information about the dslinux-commit mailing list