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 (again)
The gnutls_certificate_type_set_priority method is deprecated. Since we already set the default gnutls priority, it was not serving any useful purpose and can be removed * src/rpc/virnettlscontext.c: Remove gnutls_certificate_type_set_priority call
This commit is contained in:
parent
92509413e2
commit
3b8061c759
@ -1006,7 +1006,6 @@ virNetTLSSessionPtr virNetTLSSessionNew(virNetTLSContextPtr ctxt,
|
|||||||
{
|
{
|
||||||
virNetTLSSessionPtr sess;
|
virNetTLSSessionPtr sess;
|
||||||
int err;
|
int err;
|
||||||
static const int cert_type_priority[] = { GNUTLS_CRT_X509, 0 };
|
|
||||||
|
|
||||||
VIR_DEBUG("ctxt=%p hostname=%s isServer=%d", ctxt, NULLSTR(hostname), ctxt->isServer);
|
VIR_DEBUG("ctxt=%p hostname=%s isServer=%d", ctxt, NULLSTR(hostname), ctxt->isServer);
|
||||||
|
|
||||||
@ -1033,9 +1032,7 @@ virNetTLSSessionPtr virNetTLSSessionNew(virNetTLSContextPtr ctxt,
|
|||||||
/* avoid calling all the priority functions, since the defaults
|
/* avoid calling all the priority functions, since the defaults
|
||||||
* are adequate.
|
* are adequate.
|
||||||
*/
|
*/
|
||||||
if ((err = gnutls_set_default_priority(sess->session)) != 0 ||
|
if ((err = gnutls_set_default_priority(sess->session)) != 0) {
|
||||||
(err = gnutls_certificate_type_set_priority(sess->session,
|
|
||||||
cert_type_priority))) {
|
|
||||||
virNetError(VIR_ERR_SYSTEM_ERROR,
|
virNetError(VIR_ERR_SYSTEM_ERROR,
|
||||||
_("Failed to set TLS session priority %s"),
|
_("Failed to set TLS session priority %s"),
|
||||||
gnutls_strerror(err));
|
gnutls_strerror(err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user