]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/auth: refactor AuthClient interface
authorKefu Chai <kchai@redhat.com>
Tue, 9 Apr 2019 03:37:54 +0000 (11:37 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 16 Apr 2019 14:14:10 +0000 (22:14 +0800)
commit27b5c54f11e9544e90a2914687359b0759e1620f
tree5dfc6dafa4d75749dfcb38639bd0003dd072d3f7
parentd87bc2c5d1eebe784604c4fdf7b15839c1706d17
crimson/auth: refactor AuthClient interface

* we'd better return value by "return" not by passing output prameters by
  pointers.
* remove unused parameters from AuthClient::handle_auth_done(),
  `session_key` and `connection_secret` are returned by setting
  corresponding member variables of `auth_meta`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/auth/AuthClient.h
src/crimson/auth/DummyAuth.h
src/crimson/net/ProtocolV2.cc