MCPcopy Create free account
hub / github.com/assaultcube/AC / delauthkey

Function delauthkey

source/src/crypto.cpp:1015–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013}
1014
1015bool delauthkey(const char *name)
1016{
1017 int before = authkeys.length();
1018 loopvrev(authkeys) if(!strcmp(authkeys[i]->name, name)) delete authkeys.remove(i);
1019 return authkeys.length() < before;
1020}
1021
1022const uchar *getauthkey(const char *name)
1023{

Callers 1

authkey_Function · 0.85

Calls 3

loopvrevFunction · 0.70
lengthMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected