104 |
|
{ |
105 |
|
TLS_initialized = false; |
106 |
|
|
107 |
< |
if (!ConfigServerInfo.tls_certificate_file || !ConfigServerInfo.rsa_private_key_file) |
107 |
> |
if (ConfigServerInfo.tls_certificate_file == NULL || ConfigServerInfo.rsa_private_key_file == NULL) |
108 |
|
return true; |
109 |
|
|
110 |
|
if (wolfSSL_CTX_use_certificate_chain_file(ConfigServerInfo.tls_ctx.server_ctx, ConfigServerInfo.tls_certificate_file) != SSL_SUCCESS || |
129 |
|
} |
130 |
|
|
131 |
|
if (ConfigServerInfo.tls_dh_param_file) |
132 |
< |
if (wolfSSL_CTX_SetTmpDH_file(ConfigServerInfo.tls_ctx.server_ctx, ConfigServerInfo.tls_dh_param_file, WOLFSSL_FILETYPE_PEM) != SSL_SUCCESS) |
132 |
> |
if (wolfSSL_CTX_SetTmpDH_file(ConfigServerInfo.tls_ctx.server_ctx, ConfigServerInfo.tls_dh_param_file, SSL_FILETYPE_PEM) != SSL_SUCCESS) |
133 |
|
ilog(LOG_TYPE_IRCD, "Ignoring serverinfo::tls_dh_param_file -- could not open/read Diffie-Hellman parameter file"); |
134 |
|
|
135 |
|
if (ConfigServerInfo.tls_supported_groups == NULL) |