diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2017-12-16 02:20:09 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2017-12-30 22:49:51 +0500 |
commit | d4b00b28c986e89ac3265150fd9928a1c20fe4ea (patch) | |
tree | dcd6e4884a281ac732e24d9a02951106fbd5ecf6 | |
parent | 86c13de11eddba55dcbbf94a3f355bf4edefba4b (diff) | |
download | accel-ppp-d4b00b28c986e89ac3265150fd9928a1c20fe4ea.tar.gz accel-ppp-d4b00b28c986e89ac3265150fd9928a1c20fe4ea.zip |
sstp: log current SSL mode for reference
-rw-r--r-- | accel-pppd/ctrl/sstp/sstp.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index 4be73709..42552867 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); |