1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

Remove call to deprecated gnutls_certificate_type_set_priority

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
This commit is contained in:
Daniel P. Berrange 2011-06-01 13:20:58 +01:00
parent 825f85acfc
commit d191b801f3

View 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
*/