From e4babc69197655aeaf60ceeaf69410acd3254bcd Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Tue, 9 Mar 2021 14:36:39 +0100 Subject: [PATCH] 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) --- src/auth/cephx/CephxServiceHandler.h | 4 +++- src/auth/none/AuthNoneServiceHandler.h | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/auth/cephx/CephxServiceHandler.h b/src/auth/cephx/CephxServiceHandler.h index 42a4fddcd97f1..e770f140c8043 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 548d19196cfcd..a16838eecb27c 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 -- 2.39.5