Although set_default_priority is less flexible than priority_set_direct,
we were using the exact default priority as parameters. And
priority_set_direct is only present in more recent GNUTLS releases. So,
this is better for a release that is expected to work in some older
systems.
static void *cred;
cred = ssl_server_get_credentials ();
gnutls_init (session, GNUTLS_SERVER);
- gnutls_priority_set_direct (*session, "NORMAL", NULL);
+ gnutls_set_default_priority (*session);
gnutls_credentials_set (*session, GNUTLS_CRD_CERTIFICATE, cred);
gnutls_dh_set_prime_bits (*session, DH_BITS);
}