This lets us pass a keyring to the auth methods as a source for keys for
doing the authentication handshaking. Normally we pass a RotatatingKeyring
or the KeyServer, but for mon->mon we don't use a service key. This will
let us use a simple KeyRing for that.
Signed-off-by: Sage Weil <sage@newdream.net>
class md_config_t;
-class KeyRing {
+class KeyRing : public KeyStore {
map<EntityName, EntityAuth> keys;
int set_modifier(const char *type, const char *val, EntityName& name, map<string, bufferlist>& caps);
secret = k->second.key;
return true;
}
+ bool get_service_secret(uint32_t service_id, uint64_t secret_id,
+ CryptoKey& secret) const {
+ return false;
+ }
// modifiers
void add(const EntityName& name, EntityAuth &a) {