Reads dtls_psk from config now.

FossilOrigin-Name: 00fca3d674f2e44f67023ae26c0bacc7cddb169e5564719c1516634e23580505
This commit is contained in:
7u83@mail.ru 2016-03-05 07:50:53 +00:00
parent f3968467cf
commit 638683d211
2 changed files with 7 additions and 1 deletions

View File

@ -161,7 +161,10 @@ int read_config(const char * filename){
str = uci_lookup_option_string(ctx,section,"ssl_cert");
if (str)
conf_sslcertfilename=strdup(str);
str = uci_lookup_option_string(ctx,section,"dtls_psk");
if (str)
conf_dtls_psk=strdup(str);
str = uci_lookup_option_string(ctx,section,"ssl_cipher");
if (str)

View File

@ -18,6 +18,9 @@ config 'wtp'
option ssl_cert
option ssl_key
# DTSL pre-shared key
option dtls_psk
# ciphers
#
option ssl_cipher