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

Function updateRequirePass

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

Source from the content-addressed store, hash-verified

2337
2338
2339int updateRequirePass(sds val, sds prev, const char **err) {
2340 UNUSED(prev);
2341 UNUSED(err);
2342 /* The old "requirepass" directive just translates to setting
2343 * a password to the default user. The only thing we do
2344 * additionally is to remember the cleartext password in this
2345 * case, for backward compatibility with Redis <= 5. */
2346 ACLUpdateDefaultUserPassword(val);
2347 return 1;
2348}
2349
2350#ifdef USE_OPENSSL
2351static int updateTlsCfg(char *val, char *prev, const char **err) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected