Use gnutls_set_default_priority instead of gnutls_priority_set_direct. v3.0.34
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 Jun 2008 09:13:16 +0000 (11:13 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 Jun 2008 09:13:16 +0000 (11:13 +0200)
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

index bab44df..10d08d1 100644 (file)
@@ -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);