]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Do not expose ceph_fscrypt_key_identifier in api
authorChristopher Hoffman <choffman@redhat.com>
Thu, 2 Oct 2025 14:12:32 +0000 (14:12 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:36 +0000 (13:59 +0000)
commitcb9c7177e1c9ab9ff889e32fc2a2d01963de11a2
tree98ed14c0cd83f6059c69e949b9f1ff0bc1d59881
parentcefaafd1ce3a88b10c3f512be1ab82c1357c846e
client: Do not expose ceph_fscrypt_key_identifier in api

The libcephfs API call add_fscrypt_key exposes an internal fscrypt
data structure. This is because a hash keyid (of the master key) is used
for calls such as remove_fscrypt_key. Instead of using this structure,
use a char array to obtain keyid.

Fixes: https://tracker.ceph.com/issues/63293
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc
src/client/Client.h
src/client/FSCrypt.h
src/client/fuse_ll.cc
src/include/cephfs/libcephfs.h
src/libcephfs.cc
src/test/client/TestClient.h
src/test/libcephfs/fscrypt.cc