From: Sage Weil Date: Sun, 20 Jan 2019 23:03:55 +0000 (-0600) Subject: msg/Messenger: attach auth_client and/or auth_server to each Messenger X-Git-Tag: v14.1.0~183^2~45 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d0dc20ed9af006e2054de7cc622a3eedff1200c3;p=ceph-ci.git msg/Messenger: attach auth_client and/or auth_server to each Messenger Signed-off-by: Sage Weil --- diff --git a/src/msg/Messenger.h b/src/msg/Messenger.h index 7134db851da..d38fdc922ed 100644 --- a/src/msg/Messenger.h +++ b/src/msg/Messenger.h @@ -47,6 +47,8 @@ class Timer; class AuthAuthorizerHandlerRegistry; +class AuthClient; +class AuthServer; class Messenger { private: @@ -72,6 +74,9 @@ protected: int socket_priority; public: + AuthClient *auth_client = 0; + AuthServer *auth_server = 0; + /** * Various Messenger conditional config/type flags to allow * different "transport" Messengers to tune themselves @@ -180,6 +185,13 @@ public: uint32_t get_magic() { return magic; } void set_magic(int _magic) { magic = _magic; } + void set_auth_client(AuthClient *ac) { + auth_client = ac; + } + void set_auth_server(AuthServer *as) { + auth_server = as; + } + protected: /** * set messenger's address