@@ -41,7 +41,7 @@ void options_init(struct Options *opt) {
4141
4242int options_parse_args (struct Options * opt , int argc , char * * argv ) {
4343 int c = 0 ;
44- while ((c = getopt (argc , argv , "a:c:p:du:g:b:i:4r:e:t:l:vxqs:hV" )) != -1 ) {
44+ while ((c = getopt (argc , argv , "a:c:p:du:g:b:i:4r:e:t:l:vxqs:C: hV" )) != -1 ) {
4545 switch (c ) {
4646 case 'a' : // listen_addr
4747 opt -> listen_addr = optarg ;
@@ -97,6 +97,9 @@ int options_parse_args(struct Options *opt, int argc, char **argv) {
9797 case 's' : // stats interval
9898 opt -> stats_interval = atoi (optarg );
9999 break ;
100+ case 'C' : // CA info
101+ opt -> ca_info = optarg ;
102+ break ;
100103 case '?' :
101104 printf ("Unknown option '-%c'\n" , c );
102105 // fallthrough
@@ -206,6 +209,8 @@ void options_show_usage(int __attribute__((unused)) argc, char **argv) {
206209 printf (" -s statistic_interval Optional statistic printout interval.\n" \
207210 " (Default: %d, Disabled: 0, Min: 1, Max: 3600)\n" ,
208211 defaults .stats_interval );
212+ printf (" -C path Optional directory containing CA "
213+ "certificates.\n" );
209214 printf (" -v Increase logging verbosity. (Default: error)\n" );
210215 printf (" Levels: fatal, stats, error, warning, info, debug\n" );
211216 printf (" Request issues are logged on warning level.\n" );
0 commit comments