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

Function ACLInit

src/acl.cpp:1064–1069  ·  view source on GitHub ↗

Initialization of the ACL subsystem. */

Source from the content-addressed store, hash-verified

1062
1063/* Initialization of the ACL subsystem. */
1064void ACLInit(void) {
1065 Users = raxNew();
1066 UsersToLoad = listCreate();
1067 ACLLog = listCreate();
1068 ACLInitDefaultUser();
1069}
1070
1071/* Check the username and password pair and return C_OK if they are valid,
1072 * otherwise C_ERR is returned and errno is set to:

Callers 1

mainFunction · 0.85

Calls 3

raxNewFunction · 0.85
listCreateFunction · 0.85
ACLInitDefaultUserFunction · 0.85

Tested by

no test coverage detected