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

Function updateRequirePass

src/config.cpp:2725–2734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2723}
2724
2725int updateRequirePass(sds val, sds prev, const char **err) {
2726 UNUSED(prev);
2727 UNUSED(err);
2728 /* The old "requirepass" directive just translates to setting
2729 * a password to the default user. The only thing we do
2730 * additionally is to remember the cleartext password in this
2731 * case, for backward compatibility with Redis <= 5. */
2732 ACLUpdateDefaultUserPassword(val);
2733 return 1;
2734}
2735
2736#ifdef USE_OPENSSL
2737static int updateTlsCfg(char *val, char *prev, const char **err) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected