summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-04 09:26:57 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-07-10 07:40:20 +0000
commit6bc6488bec3df27636139cdfab546e87c86b708d (patch)
tree82be082952f96ee5b47702ccc2cf1a5225e73bcc
parent06f659e8bc63870f8d203dcad5c5630d0971012c (diff)
downloadgnutls-6bc6488bec3df27636139cdfab546e87c86b708d.tar.gz
doc: use the default priorities in server example
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--doc/examples/ex-serv-x509.c6
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