From 8b0914ffc98a04464440843a795920e09b98376c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 18 Jun 2008 11:13:16 +0200 Subject: [PATCH] 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. --- src/tcpip.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 1.7.10.4