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: v15.2.11~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ec0f91fff697cd4ab22f7a5065226ad829ca6f47;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) Conflicts: src/auth/cephx/CephxServiceHandler.h [ bufferlist vs ceph::buffer::list ] src/auth/none/AuthNoneServiceHandler.h [ ditto ] --- diff --git a/src/auth/cephx/CephxServiceHandler.h b/src/auth/cephx/CephxServiceHandler.h index b780a18848c6..c27194814c5b 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, bufferlist& bl); +private: + void build_cephx_response_header(int request_type, int status, + bufferlist& bl); }; #endif diff --git a/src/auth/none/AuthNoneServiceHandler.h b/src/auth/none/AuthNoneServiceHandler.h index d206ee987df0..a629332cd6f7 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, - bufferlist& bl) { - } }; #endif