MCPcopy Create free account
hub / github.com/F-Stack/f-stack / updateTlsCfg

Function updateTlsCfg

app/redis-6.2.6/src/config.c:2351–2363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2349
2350#ifdef USE_OPENSSL
2351static 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}
2364static int updateTlsCfgBool(int val, int prev, const char **err) {
2365 UNUSED(val);
2366 UNUSED(prev);

Callers 2

updateTlsCfgBoolFunction · 0.85
updateTlsCfgIntFunction · 0.85

Calls 1

tlsConfigureFunction · 0.85

Tested by

no test coverage detected