]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/Dispatcher: add ms_get_auth1_authorizer_keystore
authorSage Weil <sage@redhat.com>
Thu, 13 Sep 2018 19:02:34 +0000 (14:02 -0500)
committerSage Weil <sage@redhat.com>
Sun, 14 Oct 2018 17:01:09 +0000 (12:01 -0500)
This is there to provide the keyring used for authenticating msgr1
authorizers.

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/Dispatcher.h

index 998b2393098bfcbeddd8a2f95966ded1657354d8..d1ba4f2b1553a6cad85a09cdf58739990c0cbde6 100644 (file)
@@ -27,6 +27,7 @@ class AuthAuthorizer;
 class CryptoKey;
 class CephContext;
 class AuthAuthorizerChallenge;
+class KeyStore;
 
 class Dispatcher {
 public:
@@ -214,6 +215,16 @@ public:
     return 0;
   }
 
+  /**
+   * get authentication keyring
+   *
+   * Return the keyring to use for authentication with msgr1.  Remove me
+   * someday.
+   */
+  virtual KeyStore* ms_get_auth1_authorizer_keystore() {
+    return nullptr;
+  }
+
   /**
    * Retrieve the AuthAuthorizer for the given peer type. It might not
    * provide one if it knows there is no AuthAuthorizer for that type.