From: Adam Dickmeiss Date: Wed, 18 Jun 2008 09:13:16 +0000 (+0200) Subject: Use gnutls_set_default_priority instead of gnutls_priority_set_direct. X-Git-Tag: v3.0.34 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=8b0914ffc98a04464440843a795920e09b98376c;p=yaz-moved-to-github.git Use gnutls_set_default_priority instead of gnutls_priority_set_direct. Use gnutls_set_default_priority instead of gnutls_priority_set_direct because gnutls_priority_set_direct is unavailable for older versions of GNU TLS. --- diff --git a/src/tcpip.c b/src/tcpip.c index bab44df..10d08d1 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -599,7 +599,7 @@ int tcpip_rcvconnect(COMSTACK h) 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); @@ -938,8 +938,7 @@ COMSTACK tcpip_accept(COMSTACK h) 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);