From a585a248669b8ce5a23e25268fdf6edf03db7d81 Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Wed, 15 Jun 2022 20:02:43 +0300 Subject: [PATCH] octopus rgw: on FIPS enabled, fix segfault performing s3 multipart PUT Fixes: https://tracker.ceph.com/issues/56068 Signed-off-by: Mark Kogan --- src/rgw/rgw_op.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index ce6ebfba8e2a..10187ab64612 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -6345,6 +6345,8 @@ bool RGWCompleteMultipart::check_previously_completed(const DoutPrefixProvider* string oetag = sattrs[RGW_ATTR_ETAG].to_str(); MD5 hash; + // Allow use of MD5 digest in FIPS mode for non-cryptographic purposes + hash.SetFlags(EVP_MD_CTX_FLAG_NON_FIPS_ALLOW); for (const auto& [index, part] : parts->parts) { std::string partetag = rgw_string_unquote(part); char petag[CEPH_CRYPTO_MD5_DIGESTSIZE]; -- 2.47.3