From: Ilya Dryomov Date: Tue, 9 Mar 2021 13:36:39 +0000 (+0100) Subject: auth/AuthServiceHandler: build_cephx_response_header() is cephx-specific X-Git-Tag: v16.2.1~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e4babc69197655aeaf60ceeaf69410acd3254bcd;p=ceph.git auth/AuthServiceHandler: build_cephx_response_header() is cephx-specific Make the one in CephxServiceHandler private and drop the stub in AuthNoneServiceHandler. Signed-off-by: Ilya Dryomov (cherry picked from commit 49cba02a750d4c1ab68399401f0c04f9c9be5b9e) --- diff --git a/src/auth/cephx/CephxServiceHandler.h b/src/auth/cephx/CephxServiceHandler.h index 42a4fddcd97f..e770f140c804 100644 --- a/src/auth/cephx/CephxServiceHandler.h +++ b/src/auth/cephx/CephxServiceHandler.h @@ -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 diff --git a/src/auth/none/AuthNoneServiceHandler.h b/src/auth/none/AuthNoneServiceHandler.h index 548d19196cfc..a16838eecb27 100644 --- a/src/auth/none/AuthNoneServiceHandler.h +++ b/src/auth/none/AuthNoneServiceHandler.h @@ -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