diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-04 09:26:57 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-07-10 07:40:20 +0000 |
commit | 6bc6488bec3df27636139cdfab546e87c86b708d (patch) | |
tree | 82be082952f96ee5b47702ccc2cf1a5225e73bcc /doc | |
parent | 06f659e8bc63870f8d203dcad5c5630d0971012c (diff) | |
download | gnutls-6bc6488bec3df27636139cdfab546e87c86b708d.tar.gz |
doc: use the default priorities in server example
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/ex-serv-x509.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/examples/ex-serv-x509.c b/doc/examples/ex-serv-x509.c index 65f94a3b94..f6c2403bf6 100644 --- a/doc/examples/ex-serv-x509.c +++ b/doc/examples/ex-serv-x509.c @@ -77,8 +77,10 @@ int main(void) OCSP_STATUS_FILE, 0)); - CHECK(gnutls_priority_init(&priority_cache, - "PERFORMANCE:%SERVER_PRECEDENCE", NULL)); + /* One could use specific priority strings such as "PERFORMANCE:%SERVER_PRECEDENCE" + * especially if they are read from a configuration file; otherwise, it + * is recommended to use the defaults as shown here. */ + CHECK(gnutls_priority_init(&priority_cache, NULL, NULL)); #if GNUTLS_VERSION_NUMBER >= 0x030506 /* only available since GnuTLS 3.5.6, on previous versions see |