| 2349 | |
| 2350 | #ifdef USE_OPENSSL |
| 2351 | static int updateTlsCfg(char *val, char *prev, const char **err) { |
| 2352 | UNUSED(val); |
| 2353 | UNUSED(prev); |
| 2354 | UNUSED(err); |
| 2355 | |
| 2356 | /* If TLS is enabled, try to configure OpenSSL. */ |
| 2357 | if ((server.tls_port || server.tls_replication || server.tls_cluster) |
| 2358 | && tlsConfigure(&server.tls_ctx_config) == C_ERR) { |
| 2359 | *err = "Unable to update TLS configuration. Check server logs."; |
| 2360 | return 0; |
| 2361 | } |
| 2362 | return 1; |
| 2363 | } |
| 2364 | static int updateTlsCfgBool(int val, int prev, const char **err) { |
| 2365 | UNUSED(val); |
| 2366 | UNUSED(prev); |
no test coverage detected