From 6bc6488bec3df27636139cdfab546e87c86b708d Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 4 Jul 2017 09:26:57 +0200 Subject: doc: use the default priorities in server example Signed-off-by: Nikos Mavrogiannopoulos --- doc/examples/ex-serv-x509.c | 6 ++++-- 1 file 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 -- cgit v1.2.1