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:
Daniel P. Berrange 2011-07-21 18:25:22 +01:00
parent 92509413e2
commit 3b8061c759

View File

@ -1006,7 +1006,6 @@ virNetTLSSessionPtr virNetTLSSessionNew(virNetTLSContextPtr ctxt,
{
virNetTLSSessionPtr sess;
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);
@ -1033,9 +1032,7 @@ virNetTLSSessionPtr virNetTLSSessionNew(virNetTLSContextPtr ctxt,
/* avoid calling all the priority functions, since the defaults
* are adequate.
*/
if ((err = gnutls_set_default_priority(sess->session)) != 0 ||
(err = gnutls_certificate_type_set_priority(sess->session,
cert_type_priority))) {
if ((err = gnutls_set_default_priority(sess->session)) != 0) {
virNetError(VIR_ERR_SYSTEM_ERROR,
_("Failed to set TLS session priority %s"),
gnutls_strerror(err));