diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-11 09:52:17 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-11 09:52:17 +0200 |
commit | 8565619772a8aad3826c07ba088eed73e350337b (patch) | |
tree | 16eae84e7a216696fc041110efc8dbd1926561b2 /doc | |
parent | e004bea82dbb27059f712a27a752ead9311a39a0 (diff) | |
download | gnutls-8565619772a8aad3826c07ba088eed73e350337b.tar.gz |
use gnutls_set_default_priority() in examples.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/ex-client-x509.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/examples/ex-client-x509.c b/doc/examples/ex-client-x509.c index ff90ad0bec..01762e82ea 100644 --- a/doc/examples/ex-client-x509.c +++ b/doc/examples/ex-client-x509.c @@ -65,7 +65,10 @@ int main(void) gnutls_server_name_set(session, GNUTLS_NAME_DNS, "my_host_name", strlen("my_host_name")); - /* Use default priorities */ + /* use default priorities */ + gnutls_set_default_priority(session); +#if 0 + /* if more fine-graned control is required */ ret = gnutls_priority_set_direct(session, "NORMAL", &err); if (ret < 0) { @@ -74,6 +77,7 @@ int main(void) } exit(1); } +#endif /* put the x509 credentials to the current session */ |