]> 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, 22 Sep 2025 16:32:56 +0000 (12:32 -0400)
commitc1c0810f21d8a0451ca36a0fb2dc2683568b824b
tree91308fab73d45703949af77dbb26f2b2c430d89a
parent7fd646f5340aa26714b31f5823cc2f90d58401f2
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