diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-04 09:26:57 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-07-07 07:37:20 +0000 |
commit | 837feed2addbad0e8e9119e3840674c086725691 (patch) | |
tree | 40f50e021a282cc11b6878c956d18924ac20c04f | |
parent | 40048a8c3247cd17f9098e9b42bf515e45174cca (diff) | |
download | gnutls-tmp-priority-sharing.tar.gz |
doc: use the default priorities in server exampletmp-priority-sharing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-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 |