]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: expose keyring for msgr1 authentication
authorSage Weil <sage@redhat.com>
Thu, 13 Sep 2018 19:05:08 +0000 (14:05 -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/mon/Monitor.cc
src/mon/Monitor.h

index 76ee7b1911a40d7675f365d2f91ec096520d8c37..484659e711fd5f3d1965109b32aa83f990ad4362 100644 (file)
@@ -5799,6 +5799,11 @@ bool Monitor::ms_verify_authorizer(Connection *con, int peer_type,
   return true;
 }
 
+KeyStore *Monitor::ms_get_auth1_authorizer_keystore()
+{
+  return &keyring;
+}
+
 int Monitor::ms_handle_authentication(Connection *con)
 {
   auto priv = con->get_priv();
index 266b2ac9fb9fa71610029d7373fad55d8cf65316..1c4f36f8e2499e793f1e405a7e3942b93573f514 100644 (file)
@@ -888,6 +888,7 @@ public:
                            int protocol, bufferlist& authorizer_data, bufferlist& authorizer_reply,
                            bool& isvalid, CryptoKey& session_key,
                            std::unique_ptr<AuthAuthorizerChallenge> *challenge) override;
+  KeyStore *ms_get_auth1_authorizer_keystore();
 public: // for AuthMonitor msgr1:
   int ms_handle_authentication(Connection *con) override;
 private: