No functional change.
Signed-off-by: Sage Weil <sage@redhat.com>
virtual void reset() = 0;
virtual void prepare_build_request() = 0;
virtual int build_request(bufferlist& bl) const = 0;
- virtual int handle_response(int ret, bufferlist::const_iterator& iter) = 0;
+ virtual int handle_response(int ret, bufferlist::const_iterator& iter,
+ CryptoKey *session_key,
+ CryptoKey *connection_secret) = 0;
virtual bool build_rotating_request(bufferlist& bl) const = 0;
virtual AuthAuthorizer *build_authorizer(uint32_t service_id) const = 0;
return need && need != CEPH_ENTITY_TYPE_MGR;
}
-int CephxClientHandler::handle_response(int ret, bufferlist::const_iterator& indata)
+int CephxClientHandler::handle_response(
+ int ret,
+ bufferlist::const_iterator& indata,
+ CryptoKey *session_key,
+ CryptoKey *connection_secret)
{
ldout(cct, 10) << "handle_response ret = " << ret << dendl;
}
void prepare_build_request() override;
int build_request(bufferlist& bl) const override;
- int handle_response(int ret, bufferlist::const_iterator& iter) override;
+ int handle_response(int ret, bufferlist::const_iterator& iter,
+ CryptoKey *session_key,
+ CryptoKey *connection_secret) override;
bool build_rotating_request(bufferlist& bl) const override;
int get_protocol() const override { return CEPH_AUTH_CEPHX; }
}
-int KrbClientHandler::handle_response(int ret,
- bufferlist::const_iterator& buff_list)
+int KrbClientHandler::handle_response(
+ int ret,
+ bufferlist::const_iterator& buff_list,
+ CryptoKey *session_key,
+ CryptoKey *connection_secret)
{
auto result(ret);
gss_buffer_desc gss_buffer_in = {0, nullptr};
void prepare_build_request() override { };
int build_request(bufferlist& buff_list) const override;
int handle_response(int ret,
- bufferlist::const_iterator& buff_list) override;
+ bufferlist::const_iterator& buff_list,
+ CryptoKey *session_key,
+ CryptoKey *connection_secret) override;
bool build_rotating_request(bufferlist& buff_list) const override {
return false;
void prepare_build_request() override {}
int build_request(bufferlist& bl) const override { return 0; }
- int handle_response(int ret, bufferlist::const_iterator& iter) override { return 0; }
+ int handle_response(int ret, bufferlist::const_iterator& iter,
+ CryptoKey *session_key,
+ CryptoKey *connection_secret) override { return 0; }
bool build_rotating_request(bufferlist& bl) const override { return false; }
int get_protocol() const override { return CEPH_AUTH_NONE; }
void prepare_build_request() {}
int build_request(bufferlist& bl) const { return 0; }
- int handle_response(int ret, bufferlist::iterator& iter) { return 0; }
+ int handle_response(int ret, bufferlist::iterator& iter,
+ CryptoKey *session_key,
+ CryptoKey *connection_secret) { return 0; }
bool build_rotating_request(bufferlist& bl) const { return false; }
int get_protocol() const { return CEPH_AUTH_UNKNOWN; }
ldout(cct, 10) << "my global_id is " << m->global_id << dendl;
}
auto p = m->result_bl.cbegin();
- int ret = auth->handle_response(m->result, p);
+ int ret = auth->handle_response(m->result, p, nullptr, nullptr);
if (ret == -EAGAIN) {
auto ma = new MAuth;
ma->protocol = auth->get_protocol();