mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Add -u option to specify /dev/urandom instead
--HG-- extra : convert_revision : 6925cd3fd7727fbc69db9883675aa90f594f58a0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user