| 2735 | |
| 2736 | #ifdef USE_OPENSSL |
| 2737 | static int updateTlsCfg(char *val, char *prev, const char **err) { |
| 2738 | UNUSED(val); |
| 2739 | UNUSED(prev); |
| 2740 | UNUSED(err); |
| 2741 | |
| 2742 | /* If TLS is enabled, try to configure OpenSSL. */ |
| 2743 | if ((g_pserver->tls_port || g_pserver->tls_replication || g_pserver->tls_cluster) |
| 2744 | && tlsConfigure(&g_pserver->tls_ctx_config) == C_ERR) { |
| 2745 | *err = "Unable to update TLS configuration. Check server logs."; |
| 2746 | return 0; |
| 2747 | } |
| 2748 | return 1; |
| 2749 | } |
| 2750 | static int updateTlsCfgBool(int val, int prev, const char **err) { |
| 2751 | UNUSED(val); |
| 2752 | UNUSED(prev); |
no test coverage detected