tls: checking if dhparam is empty, using "undef" instead of "" for clarity.
Signed-off-by: Tom Li <biergaizi2009@gmail.com>
This commit is contained in:
parent
edea4c239d
commit
2cc6d3f938
@ -82,10 +82,10 @@ sub init {
|
|||||||
"Cannot locate cert/key! Run plugins/tls_cert to generate");
|
"Cannot locate cert/key! Run plugins/tls_cert to generate");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
unless (-f $dhparam) {
|
unless (-f $dhparam && -s $dhparam) {
|
||||||
$dhparam = "";
|
$dhparam = undef;
|
||||||
$self->log(LOGINFO,
|
$self->log(LOGINFO,
|
||||||
"Cannot locate dhparam, possible DHE algorithms will be unavailable.");
|
"dhparam is not exist or empty, possible DHE ciphers will be unavailable.");
|
||||||
$self->log(LOGINFO,
|
$self->log(LOGINFO,
|
||||||
"The encryption strength will decline due to lack of Forward Secrecy.");
|
"The encryption strength will decline due to lack of Forward Secrecy.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user