]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
examples now compile
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 24 Nov 2007 20:56:29 +0000 (22:56 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 24 Nov 2007 20:56:29 +0000 (22:56 +0200)
doc/examples/ex-cert-select.c
doc/examples/ex-serv1.c

index 6d4c5c43a864f69d75f69028da6a35f25a11f47f..4ba34714be8176ce0289de0fcf1f722d6a9987d0 100644 (file)
@@ -154,7 +154,7 @@ main (void)
   gnutls_init (&session, GNUTLS_CLIENT);
 
   /* Use default priorities */
-  gnutls_set_priority (session, priorities_cache);
+  gnutls_priority_set (session, priorities_cache);
 
   /* put the x509 credentials to the current session
    */
index 4e2ab0f7eba62bd3073a66a8fb4a41f514a7f3bc..cbadb8be93d8fd0d4a1002958e500e38e1985781 100644 (file)
@@ -47,7 +47,7 @@ initialize_tls_session (void)
 
   gnutls_init (&session, GNUTLS_SERVER);
 
-  gnutls_set_priority (session, priority_cache);
+  gnutls_priority_set (session, priority_cache);
 
   gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, x509_cred);