[PATCH] Remove call to deprecated gnutls_certificate_type_set_priority

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

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 |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index d6bf7c3..6f78ace 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -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
      */
-- 
1.7.5.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]