mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
Merge pull request #15965 from mdw-at-linuxbox/signature
rgw: fix s3 object uploads with chunked transfers and v4 signatures. Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com> Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
This commit is contained in:
commit
4057240d02
@ -910,7 +910,7 @@ std::string
|
||||
AWSv4ComplMulti::calc_chunk_signature(const std::string& payload_hash) const
|
||||
{
|
||||
const auto string_to_sign = string_join_reserve("\n",
|
||||
AWS4_HMAC_SHA256_STR,
|
||||
AWS4_HMAC_SHA256_PAYLOAD_STR,
|
||||
date,
|
||||
credential_scope,
|
||||
prev_chunk_signature,
|
||||
|
@ -316,6 +316,7 @@ namespace auth {
|
||||
namespace s3 {
|
||||
|
||||
static constexpr char AWS4_HMAC_SHA256_STR[] = "AWS4-HMAC-SHA256";
|
||||
static constexpr char AWS4_HMAC_SHA256_PAYLOAD_STR[] = "AWS4-HMAC-SHA256-PAYLOAD";
|
||||
|
||||
static constexpr char AWS4_EMPTY_PAYLOAD_HASH[] = \
|
||||
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
|
||||
|
Loading…
Reference in New Issue
Block a user