From 40d0f5212280438cb0efcd0272acdf70d6321924 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Mon, 9 Jun 2025 16:37:21 +0000 Subject: [PATCH] auth,*: remove conflicting fwd declarations Signed-off-by: Matan Breizman --- src/auth/Auth.h | 1 + src/auth/AuthClient.h | 2 +- src/auth/AuthServiceHandler.h | 1 - src/common/ceph_context.h | 3 --- src/crimson/auth/AuthClient.h | 3 +-- src/include/common_fwd.h | 2 ++ src/msg/Dispatcher.h | 1 - 7 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/auth/Auth.h b/src/auth/Auth.h index feb19ccbfb7..7752d68dcaa 100644 --- a/src/auth/Auth.h +++ b/src/auth/Auth.h @@ -21,6 +21,7 @@ #include "common/Formatter.h" #include "include/buffer.h" #include "include/ceph_fs.h" // for CEPH_AUTH_UNKNOWN +#include "include/common_fwd.h" #include #include diff --git a/src/auth/AuthClient.h b/src/auth/AuthClient.h index fc102ebc107..c62dfbf9774 100644 --- a/src/auth/AuthClient.h +++ b/src/auth/AuthClient.h @@ -7,10 +7,10 @@ #include #include #include "include/buffer_fwd.h" +#include "include/common_fwd.h" class AuthConnectionMeta; class Connection; -class CryptoKey; class AuthClient { public: diff --git a/src/auth/AuthServiceHandler.h b/src/auth/AuthServiceHandler.h index 4b3dcccbe9d..39f17b81e91 100644 --- a/src/auth/AuthServiceHandler.h +++ b/src/auth/AuthServiceHandler.h @@ -22,7 +22,6 @@ #include "include/buffer_fwd.h" // for ceph::buffer::list class KeyServer; -class CryptoKey; struct AuthCapsInfo; enum class global_id_status_t { diff --git a/src/common/ceph_context.h b/src/common/ceph_context.h index 5f236fe3b00..49acff73153 100644 --- a/src/common/ceph_context.h +++ b/src/common/ceph_context.h @@ -52,9 +52,6 @@ namespace google_breakpad { class AdminSocket; class AdminSocketHook; -class CryptoHandler; -class CryptoManager; -class CryptoRandom; class MonMap; namespace ceph::common { diff --git a/src/crimson/auth/AuthClient.h b/src/crimson/auth/AuthClient.h index 2d970c88c3c..ce1388a1608 100644 --- a/src/crimson/auth/AuthClient.h +++ b/src/crimson/auth/AuthClient.h @@ -8,10 +8,9 @@ #include #include #include "include/buffer_fwd.h" +#include "include/common_fwd.h" #include "crimson/net/Fwd.h" -class CryptoKey; - namespace crimson::auth { class error : public std::logic_error { diff --git a/src/include/common_fwd.h b/src/include/common_fwd.h index 6b38e708f3d..41508ca3e3b 100644 --- a/src/include/common_fwd.h +++ b/src/include/common_fwd.h @@ -23,6 +23,7 @@ namespace TOPNSPC::common { namespace TOPNSPC::auth { class CryptoManager; class CryptoHandler; + class CryptoKeyHandler; class CryptoKey; class CryptoRandom; } @@ -40,5 +41,6 @@ using TOPNSPC::common::RefCountedWaitObject; using TOPNSPC::common::ConfigProxy; using TOPNSPC::auth::CryptoManager; using TOPNSPC::auth::CryptoHandler; +using TOPNSPC::auth::CryptoKeyHandler; using TOPNSPC::auth::CryptoKey; using TOPNSPC::auth::CryptoRandom; diff --git a/src/msg/Dispatcher.h b/src/msg/Dispatcher.h index c871a4543a0..1efd4099452 100644 --- a/src/msg/Dispatcher.h +++ b/src/msg/Dispatcher.h @@ -26,7 +26,6 @@ class Messenger; class Connection; -class CryptoKey; class KeyStore; class Dispatcher { -- 2.39.5