From a923a8a29aff6f61a0d05e0b0ab1e9030bfa71de Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 31 Jan 2013 22:40:45 +0100 Subject: [PATCH] set a default priority string if not set. --- src/config.c | 3 +++ src/sample.config | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 53228335..a67b758a 100644 --- a/src/config.c +++ b/src/config.c @@ -182,6 +182,9 @@ static void check_cfg( struct cfg_st *config) if (config->keepalive == 0) config->keepalive = 30; + + if (config->priorities == NULL) + config->priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT"; } int cmd_parser (int argc, char **argv, struct cfg_st* config) diff --git a/src/sample.config b/src/sample.config index 13365ada..bdf490c2 100644 --- a/src/sample.config +++ b/src/sample.config @@ -33,7 +33,7 @@ server-key = /home/nmav/cvs/ocserv/test.pem #crl = /path/to/crl.pem # GnuTLS priority string -tls-priorities = "PERFORMANCE:%SERVER_PRECEDENCE" +tls-priorities = "PERFORMANCE:%SERVER_PRECEDENCE:%COMPAT" # The default server directory #chroot-dir = /root