From 68d2b03bf44c52d0e7a87083f14778e1fdecf56e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 13 Sep 2018 14:02:34 -0500 Subject: [PATCH] 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 --- src/msg/Dispatcher.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/msg/Dispatcher.h b/src/msg/Dispatcher.h index 998b2393098bf..d1ba4f2b1553a 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. -- 2.39.5