We need this in the AuthMonitor to assess if we should encode a full version
of the KeyServer and submit it to the Paxos along with the incrementals.
Not performing such a check will lead us to an erroneous version, from which
we won't be able to recover.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
data.remove_secret(name);
}
+ bool has_secrets() {
+ map<EntityName, EntityAuth>::const_iterator b = data.secrets_begin();
+ return (b != data.secrets_end());
+ }
+
/*void add_rotating_secret(uint32_t service_id, ExpiringCryptoKey& key) {
Mutex::Locker l(lock);
data.add_rotating_secret(service_id, key);