X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=main.c;h=039cf3903c215acabf63ecabd690d5d0d42ef47b;hb=06576813e9eee9338ade91bb2486a52af9507471;hp=9c992f6cac1009bf033c957b209f53037ed9e577;hpb=7e9794277b619bb232ffc874ee7efa4ead8ddb8e;p=ovirt-viewer.git diff --git a/main.c b/main.c index 9c992f6..039cf39 100644 --- a/main.c +++ b/main.c @@ -51,6 +51,12 @@ gboolean debug = 0; +/* Usually /etc/pki/tls/certs/ca-bundle.crt unless overridden during + * configure or on the command line. + */ +const char *cainfo = CAINFO; +gboolean check_cert = TRUE; + /* Private functions. */ static void start_ui (void); static GtkWidget *menu_item_new (int which_menu); @@ -114,6 +120,10 @@ static const char *help_msg = "Use '" PACKAGE " --help' to see a list of available command line options"; static const GOptionEntry options[] = { + { "cainfo", 0, 0, G_OPTION_ARG_STRING, &cainfo, + "set the path of the CA certificate bundle", NULL }, + { "check-certificate", 0, 0, G_OPTION_ARG_NONE, &check_cert, + "if --no-check-certificate is passed we don't check the SSL certificate of the server", NULL }, { "debug", 'd', 0, G_OPTION_ARG_NONE, &debug, "turn on debugging messages", NULL }, { "version", 'V', 0, G_OPTION_ARG_NONE, &print_version,