]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated DTLS example
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 29 Dec 2011 20:25:22 +0000 (22:25 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 29 Dec 2011 20:25:22 +0000 (22:25 +0200)
doc/examples/ex-serv-dtls.c

index 52c96c328b2f515fc5199968a833c0af45ec1ff8..355f7b9839908c7fbe420699677a881992af66fb 100644 (file)
@@ -94,7 +94,8 @@ main (void)
   gnutls_certificate_set_dh_params (x509_cred, dh_params);
 
   gnutls_priority_init (&priority_cache,
-                        "NORMAL:-VERS-TLS-ALL:+VERS-DTLS1.0", NULL);
+                        "PERFORMANCE:-VERS-TLS-ALL:+VERS-DTLS1.0:%SERVER_PRECEDENCE", 
+                        NULL);
 
   gnutls_key_generate (&cookie_key, GNUTLS_COOKIE_KEY_SIZE);