提交 d191b801 编写于 作者: D Daniel P. Berrange

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
上级 825f85ac
......@@ -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
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册