From: Matan Breizman Date: Mon, 9 Jun 2025 16:37:21 +0000 (+0000) Subject: auth,*: remove conflicting fwd declarations X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6676f7133aa69b97d56589220398b8fcc95cfb78;p=ceph-ci.git auth,*: remove conflicting fwd declarations Signed-off-by: Matan Breizman --- diff --git a/src/auth/Auth.h b/src/auth/Auth.h index 57be552acfb..1969a25519a 100644 --- a/src/auth/Auth.h +++ b/src/auth/Auth.h @@ -22,6 +22,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 17505e0f574..b7125205b6e 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 2830e5b4ae5..6388b2d8008 100644 --- a/src/auth/AuthServiceHandler.h +++ b/src/auth/AuthServiceHandler.h @@ -23,7 +23,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 b51415ce172..4c89f46b0a3 100644 --- a/src/common/ceph_context.h +++ b/src/common/ceph_context.h @@ -53,9 +53,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 b07759f7733..dbce4d1b79b 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 25014e869a8..58fc628f768 100644 --- a/src/msg/Dispatcher.h +++ b/src/msg/Dispatcher.h @@ -27,7 +27,6 @@ class Messenger; class Connection; -class CryptoKey; class KeyStore; class Dispatcher {