if(d_ourDB)
delete d_keymetadb;
}
+
+ static uint64_t dbdnssecCacheSizes(const std::string& str);
+ static void clearAllCaches();
+ static void clearCaches(const DNSName& name);
+
bool doesDNSSEC();
bool isSecuredZone(const DNSName& zone);
- static uint64_t dbdnssecCacheSizes(const std::string& str);
keyset_t getEntryPoints(const DNSName& zname);
keyset_t getKeys(const DNSName& zone, bool useCache = true);
DNSSECPrivateKey getKeyById(const DNSName& zone, unsigned int id);
bool checkNSEC3PARAM(const NSEC3PARAMRecordContent& ns3p, string& msg);
bool setNSEC3PARAM(const DNSName& zname, const NSEC3PARAMRecordContent& n3p, const bool& narrow=false);
bool unsetNSEC3PARAM(const DNSName& zname);
- void clearAllCaches();
- void clearCaches(const DNSName& name);
bool getPreRRSIGs(UeberBackend& db, const DNSName& signer, const DNSName& qname, const DNSName& wildcardname, const QType& qtype, DNSResourceRecord::Place, vector<DNSZoneRecord>& rrsigs, uint32_t signTTL);
bool isPresigned(const DNSName& zname);
bool setPresigned(const DNSName& zname);
string DLPurgeHandler(const vector<string>&parts, Utility::pid_t ppid)
{
- DNSSECKeeper dk;
ostringstream os;
int ret=0;
for (vector<string>::const_iterator i=++parts.begin();i<parts.end();++i) {
ret+=purgeAuthCaches(*i);
if(!boost::ends_with(*i, "$"))
- dk.clearCaches(DNSName(*i));
+ DNSSECKeeper::clearCaches(DNSName(*i));
else
- dk.clearAllCaches(); // at least we do what we promise.. and a bit more!
+ DNSSECKeeper::clearAllCaches(); // at least we do what we promise.. and a bit more!
}
}
else {
ret = purgeAuthCaches();
- dk.clearAllCaches();
+ DNSSECKeeper::clearAllCaches();
}
os<<ret;
}
DNSSECKeeper dk(&db);
- dk.clearCaches(target);
+ DNSSECKeeper::clearCaches(target);
bool securedZone = dk.isSecuredZone(target);
bool presignedZone = dk.isPresigned(target);
NSEC3PARAMRecordContent ns3pr;
bool narrow;
- dk.clearCaches(q->qdomain);
+ DNSSECKeeper::clearCaches(q->qdomain);
bool securedZone = dk.isSecuredZone(q->qdomain);
if(dk.getNSEC3PARAM(q->qdomain, &ns3pr, &narrow)) {
if(narrow) {
throw ApiException("Deleting domain '"+zonename.toString()+"' failed: backend delete failed/unsupported");
// clear caches
- DNSSECKeeper dk(&B);
- dk.clearCaches(zonename);
+ DNSSECKeeper::clearCaches(zonename);
purgeAuthCaches(zonename.toString() + "$");
// empty body on success