Add -u option to specify /dev/urandom instead

--HG--
extra : convert_revision : 6925cd3fd7727fbc69db9883675aa90f594f58a0
This commit is contained in:
Matt Johnston
2007-04-16 13:39:50 +00:00
parent a4130263bd
commit 77c33e7750
7 changed files with 31 additions and 3 deletions

View File

@@ -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 @@ static void printhelp(const char * progname) {
#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 @@ void svr_getopts(int argc, char ** argv) {
printhelp(argv[0]);
exit(EXIT_FAILURE);
break;
case 'u':
random_dev = DROPBEAR_URANDOM_DEV;
break;
#ifdef DEBUG_TRACE
case 'v':
debug_trace = 1;