diff options
-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) { |