]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/Messenger: attach auth_client and/or auth_server to each Messenger
authorSage Weil <sage@redhat.com>
Sun, 20 Jan 2019 23:03:55 +0000 (17:03 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 12:53:03 +0000 (06:53 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/Messenger.h

index 7134db851da9dd975d3287a3668274712668b9b4..d38fdc922ede58c127c64e609188ed96ba135553 100644 (file)
@@ -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