From: Patrick Donnelly Date: Thu, 29 May 2025 15:53:04 +0000 (-0400) Subject: auth/cephx: set error message when decryption fails X-Git-Tag: testing/wip-pdonnell-testing-20260210.212535~63 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8971a05826306612b7a9dbbe5064be8595116a34;p=ceph-ci.git auth/cephx: set error message when decryption fails Signed-off-by: Patrick Donnelly --- diff --git a/src/auth/cephx/CephxProtocol.h b/src/auth/cephx/CephxProtocol.h index 8dbc42ba4a6..804f0076150 100644 --- a/src/auth/cephx/CephxProtocol.h +++ b/src/auth/cephx/CephxProtocol.h @@ -608,8 +608,10 @@ void decode_decrypt_enc_bl(CephContext *cct, T& t, const CryptoKey& key, uint64_t magic; ceph::buffer::list bl; - if (key.decrypt(cct, bl_enc, bl, &error) < 0) + if (key.decrypt(cct, bl_enc, bl, &error) < 0) { + error = "decryption failed"; return; + } auto iter2 = bl.cbegin(); __u8 struct_v;