Check if ssl_cipher_list is set
This commit is contained in:
parent
bec08a8364
commit
d89ff1897d
1 changed files with 6 additions and 0 deletions
|
@ -705,6 +705,12 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
if(ServerInfo.ssl_cert != NULL && ServerInfo.ssl_private_key != NULL)
|
if(ServerInfo.ssl_cert != NULL && ServerInfo.ssl_private_key != NULL)
|
||||||
{
|
{
|
||||||
|
if(ServerInfo.ssl_cipher_list == NULL)
|
||||||
|
{
|
||||||
|
ierror("no ssl cipher list specified in serverinfo block.");
|
||||||
|
return -4;
|
||||||
|
}
|
||||||
|
|
||||||
/* just do the rb_setup_ssl_server to validate the config */
|
/* just do the rb_setup_ssl_server to validate the config */
|
||||||
if(!rb_setup_ssl_server(ServerInfo.ssl_cert, ServerInfo.ssl_private_key, ServerInfo.ssl_dh_params, ServerInfo.ssl_cipher_list))
|
if(!rb_setup_ssl_server(ServerInfo.ssl_cert, ServerInfo.ssl_private_key, ServerInfo.ssl_dh_params, ServerInfo.ssl_cipher_list))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue