}
}
+void SimpleMessenger::set_addr(const entity_addr_t &addr)
+{
+ entity_addr_t t = addr;
+ t.set_nonce(nonce);
+ set_myaddr(t);
+ init_local_connection();
+}
+
int SimpleMessenger::get_proto_version(int peer_type, bool connect)
{
int my_type = my_inst.name.type();
bool SimpleMessenger::verify_authorizer(Connection *con, int peer_type,
int protocol, bufferlist& authorizer, bufferlist& authorizer_reply,
- bool& isvalid,CryptoKey& session_key)
+ bool& isvalid,CryptoKey& session_key,
+ std::unique_ptr<AuthAuthorizerChallenge> *challenge)
{
- return ms_deliver_verify_authorizer(con, peer_type, protocol, authorizer, authorizer_reply, isvalid,session_key);
+ return ms_deliver_verify_authorizer(con, peer_type, protocol, authorizer, authorizer_reply,
+ isvalid, session_key,
+ challenge);
}
ConnectionRef SimpleMessenger::get_connection(const entity_inst_t& dest)