Signed-off-by: Yehuda Sadeh <ysadehwe@ibm.com>
return true;
}
-bool KeyServer::generate_secret(EntityName& name, CryptoKey& secret)
-{
- if (!generate_secret(secret))
- return false;
-
- std::scoped_lock l{lock};
-
- EntityAuth auth;
- auth.key = secret;
-
- data.add_auth(name, auth);
-
- return true;
-}
-
bool KeyServer::contains(const EntityName& name) const
{
std::scoped_lock l{lock};
bool get_service_secret(uint32_t service_id, uint64_t secret_id,
CryptoKey& secret) const override;
- bool generate_secret(EntityName& name, CryptoKey& secret);
-
void encode(ceph::buffer::list& bl) const {
using ceph::encode;
encode(data, bl);