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

Function loadcert

source/src/crypto.cpp:1469–1478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469void loadcert(const char *fname)
1470{
1471 cert *c = new cert(fname);
1472 if(c->ischecked && c->name)
1473 {
1474 certs.add(c); // certs in "certs" are required to have a name
1475 DEBUG("loaded cert " << c->name << ", type " << certtypekeywords[c->type] << ", signed-date " << c->signeddate);
1476 }
1477 else delete c;
1478}
1479
1480void loadcertdir() // load all certs in "config/certs"
1481{

Callers 1

loopvFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected