[virt-tools-list] [virt-viewer 09/20] Disable strict SSL certificate checks

Christophe Fergeau cfergeau at redhat.com
Wed Jun 13 12:23:17 UTC 2012


oVirt will often be used with self signed certificates, so let's
disable strict SSL certificate checking until we have a way for the
user to enable/disable it.
---
 configure.ac      |    2 +-
 src/ovirt-proxy.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 0c9557a..3315684 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,7 @@ AM_SILENT_RULES([yes])
 
 GLIB2_REQUIRED=2.12.0
 LIBXML2_REQUIRED="2.6.0"
-LIBREST_REQUIRED="0.7.2"
+LIBREST_REQUIRED="0.7.13"
 LIBVIRT_REQUIRED="0.9.7"
 GTK2_REQUIRED="2.18.0"
 GTK3_REQUIRED="3.0"
diff --git a/src/ovirt-proxy.c b/src/ovirt-proxy.c
index 7a5f2f4..84b8c16 100644
--- a/src/ovirt-proxy.c
+++ b/src/ovirt-proxy.c
@@ -616,6 +616,9 @@ ovirt_set_property(GObject *object, guint property_id,
                                                                     FALSE,
                                                                     ADMIN_LOGIN,
                                                                     ADMIN_PASSWORD);
+        g_object_set(G_OBJECT(self->priv->rest_proxy),
+                     "ssl-strict", FALSE,
+                     NULL);
         break;
 
     default:
-- 
1.7.10.2




More information about the virt-tools-list mailing list