]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: verify authorizers for heartbeat dispatcher
authorSage Weil <sage@inktank.com>
Tue, 30 Oct 2012 19:49:53 +0000 (12:49 -0700)
committerSage Weil <sage@inktank.com>
Tue, 30 Oct 2012 20:21:48 +0000 (13:21 -0700)
This was broken with the fixed messenger behavior with missing
verify_authorizer methods in 100fcca3cb54c97c4332328aad67d4b796f33ec2.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.h

index 7d2acfff3d61fd078a065bf3051aa24588b10271..0ef687437149906b947b495cacc214dc3fe6aba0 100644 (file)
@@ -518,6 +518,12 @@ public:
       return osd->heartbeat_reset(con);
     }
     void ms_handle_remote_reset(Connection *con) {}
+    bool ms_verify_authorizer(Connection *con, int peer_type,
+                             int protocol, bufferlist& authorizer_data, bufferlist& authorizer_reply,
+                             bool& isvalid, CryptoKey& session_key) {
+      isvalid = true;
+      return true;
+    }
   public:
     OSD *osd;
     HeartbeatDispatcher(OSD *o)