]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/Messenger: uninline ms_deliver_verify_authorizer
authorSage Weil <sage@redhat.com>
Thu, 13 Sep 2018 19:14:43 +0000 (14:14 -0500)
committerSage Weil <sage@redhat.com>
Sun, 14 Oct 2018 17:01:10 +0000 (12:01 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/Messenger.cc
src/msg/Messenger.h

index 495e6064fe0d69d405e6f39034f725179d657630..2d2c68ae96f3d5ec89a1a704d1970f67cff942dd 100644 (file)
@@ -104,3 +104,19 @@ int Messenger::bindv(const entity_addrvec_t& addrs)
             << addrs.legacy_addr() << dendl;
   return bind(addrs.legacy_addr());
 }
+
+bool Messenger::ms_deliver_verify_authorizer(
+  Connection *con, int peer_type,
+  int protocol, bufferlist& authorizer, bufferlist& authorizer_reply,
+  bool& isvalid, CryptoKey& session_key,
+  std::unique_ptr<AuthAuthorizerChallenge> *challenge)
+{
+  for (const auto& dispatcher : dispatchers) {
+    if (dispatcher->ms_verify_authorizer(con, peer_type, protocol,
+                                        authorizer,
+                                        authorizer_reply,
+                                        isvalid, session_key, challenge))
+      return true;
+  }
+  return false;
+}
index 737d1bcaba494f43ac7acd1306c91d29e8888088..971acb477edfa6546881b42efa8030e04dced0b3 100644 (file)
@@ -769,17 +769,11 @@ public:
    * @return True if we were able to prove or disprove correctness of
    * authorizer, false otherwise.
    */
-  bool ms_deliver_verify_authorizer(Connection *con, int peer_type,
-                                   int protocol, bufferlist& authorizer, bufferlist& authorizer_reply,
-                                   bool& isvalid, CryptoKey& session_key,
-                                   std::unique_ptr<AuthAuthorizerChallenge> *challenge) {
-    for (const auto& dispatcher : dispatchers) {
-      if (dispatcher->ms_verify_authorizer(con, peer_type, protocol, authorizer, authorizer_reply,
-                                           isvalid, session_key, challenge))
-       return true;
-    }
-    return false;
-  }
+  bool ms_deliver_verify_authorizer(
+    Connection *con, int peer_type,
+    int protocol, bufferlist& authorizer, bufferlist& authorizer_reply,
+    bool& isvalid, CryptoKey& session_key,
+    std::unique_ptr<AuthAuthorizerChallenge> *challenge);
 
   /**
    * @} // Dispatcher Interfacing