]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: tempurl signature fixes: also support sha256 and sha512 in formpost
authorMarcus Watts <mwatts@redhat.com>
Mon, 22 Aug 2022 07:37:48 +0000 (03:37 -0400)
committerMarcus Watts <mwatts@redhat.com>
Thu, 11 Jan 2024 22:54:25 +0000 (17:54 -0500)
commit86c2c9a0aa6fc709022b4beb4fcd456c1320e03a
tree5db50931ed747cf5eec9ecce72c37d99ff71e6de
parentc32a042433887aadab49443809de66a2a33750cb
rgw: tempurl signature fixes: also support sha256 and sha512 in formpost

In openstack swift, formpost and tempurl share the same signature
logic, so both now support sha1 / sha256 / sha512.  Here are changes
to ceph's formpost logic to match what swift does.  Most of the
guts of the signature logic are moved from .h to .cc because
this logic is only useful to the actual formpost code.

Fixes: https://tracker.ceph.com/issues/56564
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_rest_swift.cc
src/rgw/rgw_rest_swift.h