]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/mon: move handle_auth_done() to "v1 and v2" section 37303/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Sep 2020 07:56:23 +0000 (15:56 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Sep 2020 07:56:26 +0000 (15:56 +0800)
crimson::mon::Connection::handle_auth_done() is shared by both v1 and v2
authentication implementation, so move it to "v1 and v2" section

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc

index 6abae727ed74e4f7451c261326c6e429e563a139..0376a67f8ea57a92186d2d112c64524ca246347d 100644 (file)
@@ -70,15 +70,15 @@ public:
   using secret_t = string;
   tuple<CryptoKey, secret_t, bufferlist>
   handle_auth_reply_more(const ceph::buffer::list& bl);
-  tuple<CryptoKey, secret_t, int>
-  handle_auth_done(uint64_t new_global_id,
-                   const ceph::buffer::list& bl);
   int handle_auth_bad_method(uint32_t old_auth_method,
                              int result,
                              const std::vector<uint32_t>& allowed_methods,
                              const std::vector<uint32_t>& allowed_modes);
 
   // v1 and v2
+  tuple<CryptoKey, secret_t, int>
+  handle_auth_done(uint64_t new_global_id,
+                   const ceph::buffer::list& bl);
   void close();
   bool is_my_peer(const entity_addr_t& addr) const;
   AuthAuthorizer* get_authorizer(entity_type_t peer) const;