Use gnutls_set_default_priority instead of gnutls_priority_set_direct
because gnutls_priority_set_direct is unavailable for older versions
of GNU TLS.
tcpip_create_cred(h);
gnutls_init(&sp->session, GNUTLS_CLIENT);
- gnutls_priority_set_direct(sp->session, "PERFORMANCE", NULL);
+ gnutls_set_default_priority(sp->session);
gnutls_credentials_set (sp->session, GNUTLS_CRD_CERTIFICATE,
sp->cred_ptr->xcred);
xfree(state);
return 0;
}
- res = gnutls_priority_set_direct(state->session,
- "PERFORMANCE", NULL);
+ res = gnutls_set_default_priority(state->session);
if (res != GNUTLS_E_SUCCESS)
{
xfree(cnew);