From: Casey Bodley Date: Fri, 16 Jun 2017 14:58:06 +0000 (-0400) Subject: rgw: fix rest client's order of args in get_v2_signature X-Git-Tag: v12.1.0~102^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f8498f5b800d6359f0fef52db78de40823adf852;p=ceph.git rgw: fix rest client's order of args in get_v2_signature Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_rest_client.cc b/src/rgw/rgw_rest_client.cc index f1ec7d72daeb4..ad9daaab6f434 100644 --- a/src/rgw/rgw_rest_client.cc +++ b/src/rgw/rgw_rest_client.cc @@ -131,7 +131,7 @@ int RGWRESTSimpleRequest::execute(RGWAccessKey& key, const char *method, const c string digest; try { - digest = rgw::auth::s3::get_v2_signature(cct, canonical_header, key.key); + digest = rgw::auth::s3::get_v2_signature(cct, key.key, canonical_header); } catch (int ret) { return ret; } @@ -232,7 +232,7 @@ int RGWRESTSimpleRequest::sign_request(RGWAccessKey& key, RGWEnv& env, req_info& string digest; try { - digest = rgw::auth::s3::get_v2_signature(cct, canonical_header, key.key); + digest = rgw::auth::s3::get_v2_signature(cct, key.key, canonical_header); } catch (int ret) { return ret; }