comparison svr-runopts.c @ 446:2cd2edfa11ee

Just use /dev/urandom since that's what everyone ends up using anyway. Make -u a nop.
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Jul 2007 15:47:32 +0000
parents d82a2a44c684
children 3e6c536bc023
comparison
equal deleted inserted replaced
445:edbee0596531 446:2cd2edfa11ee
26 #include "runopts.h" 26 #include "runopts.h"
27 #include "signkey.h" 27 #include "signkey.h"
28 #include "buffer.h" 28 #include "buffer.h"
29 #include "dbutil.h" 29 #include "dbutil.h"
30 #include "algo.h" 30 #include "algo.h"
31 #include "random.h"
32 31
33 svr_runopts svr_opts; /* GLOBAL */ 32 svr_runopts svr_opts; /* GLOBAL */
34 33
35 static void printhelp(const char * progname); 34 static void printhelp(const char * progname);
36 static void addportandaddress(char* spec); 35 static void addportandaddress(char* spec);
79 "-P PidFile Create pid file PidFile\n" 78 "-P PidFile Create pid file PidFile\n"
80 " (default %s)\n" 79 " (default %s)\n"
81 #ifdef INETD_MODE 80 #ifdef INETD_MODE
82 "-i Start for inetd\n" 81 "-i Start for inetd\n"
83 #endif 82 #endif
84 "-u Use /dev/urandom - use with caution\n"
85 #ifdef DEBUG_TRACE 83 #ifdef DEBUG_TRACE
86 "-v verbose\n" 84 "-v verbose\n"
87 #endif 85 #endif
88 ,DROPBEAR_VERSION, progname, 86 ,DROPBEAR_VERSION, progname,
89 #ifdef DROPBEAR_DSS 87 #ifdef DROPBEAR_DSS
217 case 'h': 215 case 'h':
218 printhelp(argv[0]); 216 printhelp(argv[0]);
219 exit(EXIT_FAILURE); 217 exit(EXIT_FAILURE);
220 break; 218 break;
221 case 'u': 219 case 'u':
222 random_dev = DROPBEAR_URANDOM_DEV; 220 /* backwards compatibility with old urandom option */
223 break; 221 break;
224 #ifdef DEBUG_TRACE 222 #ifdef DEBUG_TRACE
225 case 'v': 223 case 'v':
226 debug_trace = 1; 224 debug_trace = 1;
227 break; 225 break;