return 0;
}
-int parse_credentials(const req_info& info, /* in */
- boost::string_view& access_key_id, /* out */
- boost::string_view& credential_scope, /* out */
- boost::string_view& signedheaders, /* out */
- boost::string_view& signature, /* out */
- boost::string_view& date, /* out */
- boost::string_view& session_token, /* out */
- const bool using_qs) /* in */
+int parse_v4_credentials(const req_info& info, /* in */
+ boost::string_view& access_key_id, /* out */
+ boost::string_view& credential_scope, /* out */
+ boost::string_view& signedheaders, /* out */
+ boost::string_view& signature, /* out */
+ boost::string_view& date, /* out */
+ boost::string_view& session_token, /* out */
+ const bool using_qs) /* in */
{
boost::string_view credential;
int ret;
static constexpr char AWS4_STREAMING_PAYLOAD_HASH[] = \
"STREAMING-AWS4-HMAC-SHA256-PAYLOAD";
-int parse_credentials(const req_info& info, /* in */
- boost::string_view& access_key_id, /* out */
- boost::string_view& credential_scope, /* out */
- boost::string_view& signedheaders, /* out */
- boost::string_view& signature, /* out */
- boost::string_view& date, /* out */
- boost::string_view& session_token, /* out */
- const bool using_qs); /* in */
+int parse_v4_credentials(const req_info& info, /* in */
+ boost::string_view& access_key_id, /* out */
+ boost::string_view& credential_scope, /* out */
+ boost::string_view& signedheaders, /* out */
+ boost::string_view& signature, /* out */
+ boost::string_view& date, /* out */
+ boost::string_view& session_token, /* out */
+ const bool using_qs); /* in */
static inline bool char_needs_aws4_escaping(const char c, bool encode_slash)
{
boost::string_view client_signature;
boost::string_view session_token;
- int ret = rgw::auth::s3::parse_credentials(s->info,
- access_key_id,
- credential_scope,
- signed_hdrs,
- client_signature,
- date,
- session_token,
- using_qs);
+ int ret = rgw::auth::s3::parse_v4_credentials(s->info,
+ access_key_id,
+ credential_scope,
+ signed_hdrs,
+ client_signature,
+ date,
+ session_token,
+ using_qs);
if (ret < 0) {
throw ret;
}