From: Sage Weil Date: Thu, 13 Sep 2018 19:02:34 +0000 (-0500) Subject: msg/Dispatcher: add ms_get_auth1_authorizer_keystore X-Git-Tag: v14.0.1~26^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=68d2b03bf44c52d0e7a87083f14778e1fdecf56e;p=ceph.git msg/Dispatcher: add ms_get_auth1_authorizer_keystore This is there to provide the keyring used for authenticating msgr1 authorizers. Signed-off-by: Sage Weil --- diff --git a/src/msg/Dispatcher.h b/src/msg/Dispatcher.h index 998b2393098b..d1ba4f2b1553 100644 --- a/src/msg/Dispatcher.h +++ b/src/msg/Dispatcher.h @@ -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.