@@ -199,6 +199,8 @@ parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
199199 { "insecure-tls" , no_argument , NULL , 'L' }, /* 20 */
200200 { "config" , required_argument , NULL , 'L' }, /* 21 */
201201 { "single-file-mode" , required_argument , NULL , 'L' }, /* 22 */
202+ { "cacert" , required_argument , NULL , 'L' }, /* 23 */
203+ { "proxy-cacert" , required_argument , NULL , 'L' }, /* 24 */
202204 { 0 , 0 , 0 , 0 }
203205 };
204206 while ((c =
@@ -296,6 +298,12 @@ parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
296298 case 22 :
297299 CONFIG .mode = SINGLE ;
298300 break ;
301+ case 23 :
302+ CONFIG .cafile = strdup (optarg );
303+ break ;
304+ case 24 :
305+ CONFIG .proxy_cafile = strdup (optarg );
306+ break ;
299307 default :
300308 fprintf (stderr , "see httpdirfs -h for usage\n" );
301309 return 1 ;
@@ -347,9 +355,11 @@ HTTPDirFS options:\n\
347355 https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html\n\
348356 --proxy-username Username for the proxy\n\
349357 --proxy-password Password for the proxy\n\
358+ --proxy-cacert Certificate authority for the proxy\n\
350359 --cache Enable cache (default: off)\n\
351360 --cache-location Set a custom cache location\n\
352361 (default: \"${XDG_CACHE_HOME}/httpdirfs\")\n\
362+ --cacert Certificate authority for the server\n\
353363 --dl-seg-size Set cache download segment size, in MB (default: 8)\n\
354364 Note: this setting is ignored if previously\n\
355365 cached data is found for the requested file.\n\
0 commit comments