#ifndef RGW_RGW_CRYPT_SANITIZE_H_
#define RGW_RGW_CRYPT_SANITIZE_H_
-#include <boost/utility/string_view.hpp>
-
+#include <string_view>
#include "rgw_common.h"
namespace rgw {
* Temporary container for suppressing printing if variable contains secret key.
*/
struct env {
- boost::string_ref name;
- boost::string_ref value;
+ std::string_view name;
+ std::string_view value;
- env(boost::string_ref name, boost::string_ref value)
+ env(std::string_view name, std::string_view value)
: name(name), value(value) {}
};
* Temporary container for suppressing printing if aws meta attributes contains secret key.
*/
struct x_meta_map {
- boost::string_ref name;
- boost::string_ref value;
- x_meta_map(boost::string_ref name, boost::string_ref value)
+ std::string_view name;
+ std::string_view value;
+ x_meta_map(std::string_view name, std::string_view value)
: name(name), value(value) {}
};
* Temporary container for suppressing printing if s3_policy calculation variable contains secret key.
*/
struct s3_policy {
- boost::string_ref name;
- boost::string_ref value;
- s3_policy(boost::string_ref name, boost::string_ref value)
+ std::string_view name;
+ std::string_view value;
+ s3_policy(std::string_view name, std::string_view value)
: name(name), value(value) {}
};
*/
struct auth {
const req_state* const s;
- boost::string_ref value;
- auth(const req_state* const s, boost::string_ref value)
+ std::string_view value;
+ auth(const req_state* const s, std::string_view value)
: s(s), value(value) {}
};
* Temporary container for suppressing printing if log made from civetweb may contain secret key.
*/
struct log_content {
- const boost::string_view buf;
- explicit log_content(const boost::string_view buf)
+ const std::string_view buf;
+ explicit log_content(const std::string_view buf)
: buf(buf) {}
};