From: Yehuda Sadeh Date: Fri, 7 Mar 2025 18:21:44 +0000 (-0500) Subject: auth: remove unused code X-Git-Tag: testing/wip-pdonnell-testing-20260210.212535~115 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c10792b960e14cdf3500b83a1efb75f0dec5f15b;p=ceph-ci.git auth: remove unused code Signed-off-by: Yehuda Sadeh --- diff --git a/src/auth/cephx/CephxKeyServer.cc b/src/auth/cephx/CephxKeyServer.cc index 0af4db935bf..4fbda1f5984 100644 --- a/src/auth/cephx/CephxKeyServer.cc +++ b/src/auth/cephx/CephxKeyServer.cc @@ -294,21 +294,6 @@ bool KeyServer::generate_secret(CryptoKey& secret, std::optional key_type) return true; } -bool KeyServer::generate_secret(EntityName& name, CryptoKey& secret) -{ - if (!generate_secret(secret)) - return false; - - std::scoped_lock l{lock}; - - EntityAuth auth; - auth.key = secret; - - data.add_auth(name, auth); - - return true; -} - bool KeyServer::contains(const EntityName& name) const { std::scoped_lock l{lock}; diff --git a/src/auth/cephx/CephxKeyServer.h b/src/auth/cephx/CephxKeyServer.h index d02486a6fd9..8db879f275a 100644 --- a/src/auth/cephx/CephxKeyServer.h +++ b/src/auth/cephx/CephxKeyServer.h @@ -278,8 +278,6 @@ public: bool get_service_secret(uint32_t service_id, uint64_t secret_id, CryptoKey& secret) const override; - bool generate_secret(EntityName& name, CryptoKey& secret); - void encode(ceph::buffer::list& bl) const { using ceph::encode; encode(data, bl);