static constexpr uint32_t MATCH_POLICY_ARN = 0x04;
static constexpr uint32_t MATCH_POLICY_STRING = 0x08;
-extern bool match_policy(std::string_view pattern, std::string_view input,
+extern bool match_policy(const std::string& pattern, const std::string& input,
uint32_t flag);
- extern std::string camelcase_dash_http_attr(const std::string& orig);
- extern std::string lowercase_dash_http_attr(const std::string& orig);
+ extern std::string camelcase_dash_http_attr(const std::string& orig, bool convert2dash = true);
+ extern std::string lowercase_dash_http_attr(const std::string& orig, bool bidirection = false);
void rgw_setup_saved_curl_handles();
void rgw_release_all_curl_handles();
t->action = allValue : t->notaction = allValue);
} else {
for (auto& p : actpairs) {
- if (match_policy({s, l}, p.name, MATCH_POLICY_ACTION)) {
+ if (match_policy(string(s, l), p.name, MATCH_POLICY_ACTION)) {
- is_validaction = true;
+ is_valid_action = true;
(w->id == TokenID::Action ? t->action[p.bit] = 1 : t->notaction[p.bit] = 1);
}
if ((t->action & s3AllValue) == s3AllValue) {