]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth/AuthServiceHandler: build_cephx_response_header() is cephx-specific
authorIlya Dryomov <idryomov@gmail.com>
Tue, 9 Mar 2021 13:36:39 +0000 (14:36 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Apr 2021 18:50:53 +0000 (20:50 +0200)
Make the one in CephxServiceHandler private and drop the stub in
AuthNoneServiceHandler.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 49cba02a750d4c1ab68399401f0c04f9c9be5b9e)

src/auth/cephx/CephxServiceHandler.h
src/auth/none/AuthNoneServiceHandler.h

index 42a4fddcd97f12404246b790b40ce817192ecb98..e770f140c8043d9796a469db1ebd2c9819a0e614 100644 (file)
@@ -41,7 +41,9 @@ public:
     CryptoKey *session_key,
     std::string *connection_secret) override;
 
-  void build_cephx_response_header(int request_type, int status, ceph::buffer::list& bl);
+private:
+  void build_cephx_response_header(int request_type, int status,
+                                  ceph::buffer::list& bl);
 };
 
 #endif
index 548d19196cfcd163c4da21b6d3f2a00ee6b04c84..a16838eecb27cd45b7a149e6d3447ad0b2a863cd 100644 (file)
@@ -41,9 +41,6 @@ public:
                     std::string *connection_secret) override {
     return 0;
   }
-  void build_cephx_response_header(int request_type, int status,
-                                  ceph::buffer::list& bl) {
-  }
 };
 
 #endif