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

Function ACLListMatchSdsSecure

src/acl.cpp:234–236  ·  view source on GitHub ↗

Method for password comparison used for the user->passwords list * Like the above, but uses a time independant compare for security reasons */

Source from the content-addressed store, hash-verified

232/* Method for password comparison used for the user->passwords list
233 * Like the above, but uses a time independant compare for security reasons */
234int ACLListMatchSdsSecure(void *a, void* b) {
235 return time_independent_strcmp((sds)a,(sds)b) == 0;
236}
237
238/* Method to free list elements from ACL users password/patterns lists. */
239void ACLListFreeSds(const void *item) {

Callers

nothing calls this directly

Calls 1

time_independent_strcmpFunction · 0.85

Tested by

no test coverage detected