diff options
author | Felipe Borges <felipeborges@gnome.org> | 2016-11-30 16:51:14 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2017-05-05 11:01:34 +0200 |
commit | 08c811d79ddb2c886a5eb2b70523ade9e946f2a4 (patch) | |
tree | f941ab275c03df91e9d94f0062b9d077d4ba3a4d | |
parent | b25a10e99562f4d4ead791e1e46584bedd898fb2 (diff) |
Use ovirt_get_option_group/ovirt_set_proxy_options instead as
ovirt_proxy_fetch_ca_certificate is not checking properly the
validity of https certificates.
https://bugzilla.gnome.org/show_bug.cgi?id=775412
-rw-r--r-- | examples/list-vms.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/list-vms.c b/examples/list-vms.c index ef892cf..ef350ed 100644 --- a/examples/list-vms.c +++ b/examples/list-vms.c @@ -114,15 +114,8 @@ int main(int argc, char **argv) g_signal_connect(G_OBJECT(proxy), "authenticate", G_CALLBACK(authenticate_cb), NULL); - /* Should be using ovirt_get_option_group/ovirt_set_proxy_options - * instead as ovirt_proxy_fetch_ca_certificate is not checking - * properly the validity of https certificates - */ - ovirt_proxy_fetch_ca_certificate(proxy, &error); - if (error != NULL) { - g_debug("failed to get CA certificate: %s", error->message); - goto error; - } + ovirt_get_option_group (); + ovirt_set_proxy_options (proxy); api = ovirt_proxy_fetch_api(proxy, &error); if (error != NULL) { |