Push daily update.
[ovirt-viewer.git] / main.c
diff --git a/main.c b/main.c
index 9c992f6..039cf39 100644 (file)
--- a/main.c
+++ b/main.c
 
 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,