]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/simple: remove verify_authorizer wrapper
authorSage Weil <sage@redhat.com>
Wed, 19 Sep 2018 15:52:45 +0000 (10:52 -0500)
committerSage Weil <sage@redhat.com>
Mon, 15 Oct 2018 20:01:40 +0000 (15:01 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/simple/Pipe.cc
src/msg/simple/SimpleMessenger.cc
src/msg/simple/SimpleMessenger.h

index f0465e25f7693841b8c7429610f017d3d8fed6af..555fc70a39838ed91f2850138346069d4cbb6fdd 100644 (file)
@@ -523,7 +523,7 @@ int Pipe::accept()
     need_challenge = HAVE_FEATURE(connect.features, CEPHX_V2);
     had_challenge = (bool)authorizer_challenge;
     authorizer_reply.clear();
-    if (!msgr->verify_authorizer(
+    if (!msgr->ms_deliver_verify_authorizer(
          connection_state.get(), peer_type, connect.authorizer_protocol, authorizer,
          authorizer_reply, authorizer_valid, session_key,
          need_challenge ? &authorizer_challenge : nullptr) ||
index 6c33295f0cf18e6bb14cc61dbaa456702025f241..aa39bd5e27c077f661b664d7c699acc37489ea84 100644 (file)
@@ -425,16 +425,6 @@ Pipe *SimpleMessenger::connect_rank(const entity_addr_t& addr,
 
 
 
-bool SimpleMessenger::verify_authorizer(Connection *con, int peer_type,
-                                       int protocol, bufferlist& authorizer, bufferlist& authorizer_reply,
-                                       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,
-                                     challenge);
-}
-
 ConnectionRef SimpleMessenger::connect_to(int type,
                                          const entity_addrvec_t& addrs)
 {
index b0322711e08b9bc0bdd79bace4d71c6c8fff4097..6acdeb138be2648d0c4ea53dce43722a22fedb4e 100644 (file)
@@ -351,13 +351,6 @@ public:
    * @{
    */
 
-  /**
-   * This wraps ms_deliver_verify_authorizer; we use it for Pipe.
-   */
-  bool verify_authorizer(Connection *con, int peer_type, int protocol, bufferlist& auth,
-                        bufferlist& auth_reply,
-                         bool& isvalid,CryptoKey& session_key,
-                        std::unique_ptr<AuthAuthorizerChallenge> *challenge);
   /**
    * Increment the global sequence for this SimpleMessenger and return it.
    * This is for the connect protocol, although it doesn't hurt if somebody