]> 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)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 20 Aug 2024 12:54:49 +0000 (19:54 +0700)
commitd1daab83ba198576bbd6d77e98abae90b5f868cb
tree90813300908d996328fcd8f2347cc099e5425cfb
parent13bba346ec4e7228bfd17396d6cc011fb7710072
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>
(cherry picked from commit 86c2c9a0aa6fc709022b4beb4fcd456c1320e03a)
src/rgw/rgw_rest_swift.cc
src/rgw/rgw_rest_swift.h