From d4b00b28c986e89ac3265150fd9928a1c20fe4ea Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Sat, 16 Dec 2017 02:20:09 +0500 Subject: sstp: log current SSL mode for reference --- accel-pppd/ctrl/sstp/sstp.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'accel-pppd/ctrl') diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index 4be7370..4255286 100644 --- a/accel-pppd/ctrl/sstp/sstp.c +++ b/accel-pppd/ctrl/sstp/sstp.c @@ -2035,6 +2035,10 @@ static void load_config(void) { char *opt; + opt = conf_get_opt("sstp", "verbose"); + if (opt && atoi(opt) >= 0) + conf_verbose = atoi(opt) > 0; + conf_hostname = conf_get_opt("sstp", "host-name"); opt = conf_get_opt("sstp", "cert-hash-proto"); @@ -2048,7 +2052,12 @@ static void load_config(void) #ifdef CRYPTO_OPENSSL ssl_load_config(&serv, conf_hostname); + opt = serv.ssl_ctx ? "enabled" : "disabled"; +#else + opt = "not available"; #endif + if (conf_verbose) + log_info2("sstp: SSL support %s\n", opt); opt = conf_get_opt("sstp", "cert-hash-sha1"); if (opt) { @@ -2070,10 +2079,6 @@ static void load_config(void) if (opt && atoi(opt) >= 0) conf_hello_interval = atoi(opt); - opt = conf_get_opt("sstp", "verbose"); - if (opt && atoi(opt) >= 0) - conf_verbose = atoi(opt) > 0; - opt = conf_get_opt("sstp", "ppp-max-mtu"); if (opt && atoi(opt) > 0) conf_ppp_max_mtu = atoi(opt); -- cgit v1.2.3