diff svr-runopts.c @ 442:d82a2a44c684

Add -u option to specify /dev/urandom instead
author Matt Johnston <matt@ucc.asn.au>
date Mon, 16 Apr 2007 13:39:50 +0000
parents 337c45621e81
children 2cd2edfa11ee
line wrap: on
line diff
--- a/svr-runopts.c	Sat Mar 17 06:30:11 2007 +0000
+++ b/svr-runopts.c	Mon Apr 16 13:39:50 2007 +0000
@@ -28,6 +28,7 @@
 #include "buffer.h"
 #include "dbutil.h"
 #include "algo.h"
+#include "random.h"
 
 svr_runopts svr_opts; /* GLOBAL */
 
@@ -80,6 +81,7 @@
 #ifdef INETD_MODE
 					"-i		Start for inetd\n"
 #endif
+					"-u		Use /dev/urandom - use with caution\n"
 #ifdef DEBUG_TRACE
 					"-v		verbose\n"
 #endif
@@ -216,6 +218,9 @@
 					printhelp(argv[0]);
 					exit(EXIT_FAILURE);
 					break;
+				case 'u':
+					random_dev = DROPBEAR_URANDOM_DEV;
+					break;
 #ifdef DEBUG_TRACE
 				case 'v':
 					debug_trace = 1;