Changeset 1982 for trunk/pdns/pdns/dnsseckeeper.hh
- Timestamp:
- 02/07/11 10:31:12 (2 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnsseckeeper.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsseckeeper.hh
r1969 r1982 33 33 DNSSECKeeper() : d_keymetadb("key-only") 34 34 { 35 if(!t_keycache)36 t_keycache = new keycache_t();37 35 } 38 36 bool isSecuredZone(const std::string& zone); … … 40 38 keyset_t getKeys(const std::string& zone, boost::tribool allOrKeyOrZone = boost::indeterminate); 41 39 DNSSECPrivateKey getKeyById(const std::string& zone, unsigned int id); 42 voidaddKey(const std::string& zname, bool keyOrZone, int algorithm=5, int bits=0, bool active=true);43 voidaddKey(const std::string& zname, const DNSSECPrivateKey& dpk, bool active=true);40 bool addKey(const std::string& zname, bool keyOrZone, int algorithm=5, int bits=0, bool active=true); 41 bool addKey(const std::string& zname, const DNSSECPrivateKey& dpk, bool active=true); 44 42 void removeKey(const std::string& zname, unsigned int id); 45 43 void activateKey(const std::string& zname, unsigned int id); 46 44 void deactivateKey(const std::string& zname, unsigned int id); 47 45 48 voidsecureZone(const std::string& fname, int algorithm);46 bool secureZone(const std::string& fname, int algorithm); 49 47 50 48 bool getNSEC3PARAM(const std::string& zname, NSEC3PARAMRecordContent* n3p=0, bool* narrow=0); … … 107 105 > metacache_t; 108 106 109 static __thread keycache_t* t_keycache;107 static keycache_t s_keycache; 110 108 static metacache_t s_metacache; 111 109 static pthread_mutex_t s_metacachelock; 110 static pthread_mutex_t s_keycachelock; 112 111 }; 113 112