]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Remove call to deprecated gnutls_certificate_type_set_priority
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 1 Jun 2011 12:20:58 +0000 (13:20 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 1 Jun 2011 13:36:29 +0000 (14:36 +0100)
The gnutls_certificate_type_set_priority method is deprecated.
Since we already set the default gnutls priority, and do not
support OpenGPG credentials in any case, it was not serving
any useful purpose and can be removed

* src/remote/remote_driver.c: Remove src/remote/remote_driver.c
  call

src/remote/remote_driver.c

index 4817686590c4aeb946b959e218f475ef9689368c..8e3cd89bf22eb5eea4954333fc4252ef3abe3891 100644 (file)
@@ -1293,11 +1293,6 @@ negotiate_gnutls_on_connection (virConnectPtr conn,
                                 struct private_data *priv,
                                 int no_verify)
 {
-    const int cert_type_priority[3] = {
-        GNUTLS_CRT_X509,
-        GNUTLS_CRT_OPENPGP,
-        0
-    };
     bool success = false;
     int err;
     gnutls_session_t session;
@@ -1320,15 +1315,6 @@ negotiate_gnutls_on_connection (virConnectPtr conn,
                     gnutls_strerror (err));
         goto cleanup;
     }
-    err =
-        gnutls_certificate_type_set_priority (session,
-                                              cert_type_priority);
-    if (err) {
-        remoteError(VIR_ERR_GNUTLS_ERROR,
-                    _("unable to set certificate priority: %s"),
-                    gnutls_strerror (err));
-        goto cleanup;
-    }
 
     /* put the x509 credentials to the current session
      */