MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / updateTlsCfg

Function updateTlsCfg

src/config.cpp:2737–2749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2735
2736#ifdef USE_OPENSSL
2737static 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}
2750static int updateTlsCfgBool(int val, int prev, const char **err) {
2751 UNUSED(val);
2752 UNUSED(prev);

Callers 2

updateTlsCfgBoolFunction · 0.85
updateTlsCfgIntFunction · 0.85

Calls 1

tlsConfigureFunction · 0.85

Tested by

no test coverage detected