]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
include/common_fwd: Include Crypto classes
authorMatan Breizman <mbreizma@redhat.com>
Mon, 9 Jun 2025 12:07:49 +0000 (12:07 +0000)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 13 Oct 2025 23:59:18 +0000 (19:59 -0400)
commit8538962ee90adb535b9bebf3d77d42b917a3a09f
treef8132f7b2696b82480608355c39e52c1bc13d878
parentbea6b6f2a8e1a14c41a8b453113d014f2918792b
include/common_fwd: Include Crypto classes

CryptoManager::cct is now used in CephContext ctor. To provide this
defintion
any ceph_context.cc target must also include Crypto.cc.

crimson-alien-common library which only had ceph_context.cc must now
also include Crypto.cc.
However, the fact that crimson-common also includes Crypto.cc would
cause multiple defintions
to any Crypto classes methods.

To resolve this, let's wrap all Crypto classes with TOPNSPC::common that
would be forwarded using common_fwd logic.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 0e3e34565f5730f8baefecde9be592587129ba9d)
src/auth/Crypto.cc
src/auth/Crypto.h
src/crimson/os/alienstore/CMakeLists.txt
src/include/common_fwd.h