comparison 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
comparison
equal deleted inserted replaced
441:fdf06a5a54e4 442:d82a2a44c684
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"
31 32
32 svr_runopts svr_opts; /* GLOBAL */ 33 svr_runopts svr_opts; /* GLOBAL */
33 34
34 static void printhelp(const char * progname); 35 static void printhelp(const char * progname);
35 static void addportandaddress(char* spec); 36 static void addportandaddress(char* spec);
78 "-P PidFile Create pid file PidFile\n" 79 "-P PidFile Create pid file PidFile\n"
79 " (default %s)\n" 80 " (default %s)\n"
80 #ifdef INETD_MODE 81 #ifdef INETD_MODE
81 "-i Start for inetd\n" 82 "-i Start for inetd\n"
82 #endif 83 #endif
84 "-u Use /dev/urandom - use with caution\n"
83 #ifdef DEBUG_TRACE 85 #ifdef DEBUG_TRACE
84 "-v verbose\n" 86 "-v verbose\n"
85 #endif 87 #endif
86 ,DROPBEAR_VERSION, progname, 88 ,DROPBEAR_VERSION, progname,
87 #ifdef DROPBEAR_DSS 89 #ifdef DROPBEAR_DSS
214 #endif 216 #endif
215 case 'h': 217 case 'h':
216 printhelp(argv[0]); 218 printhelp(argv[0]);
217 exit(EXIT_FAILURE); 219 exit(EXIT_FAILURE);
218 break; 220 break;
221 case 'u':
222 random_dev = DROPBEAR_URANDOM_DEV;
223 break;
219 #ifdef DEBUG_TRACE 224 #ifdef DEBUG_TRACE
220 case 'v': 225 case 'v':
221 debug_trace = 1; 226 debug_trace = 1;
222 break; 227 break;
223 #endif 228 #endif