summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_crypt_sanitize.h
diff options
context:
space:
mode:
authorPrateek Sachan <psachan@cs.iitr.ac.in>2020-05-23 10:18:07 +0200
committerPrateek Sachan <psachan@cs.iitr.ac.in>2020-06-18 18:57:07 +0200
commit268f75bb8d3f19eddc149ee7d963ee6537f2db31 (patch)
tree9450fef79e2e1a793b579cb2c1c5ff3e5433ea5d /src/rgw/rgw_crypt_sanitize.h
parentMerge pull request #35557 from dillaman/wip-librbd-asio (diff)
downloadceph-268f75bb8d3f19eddc149ee7d963ee6537f2db31.tar.xz
ceph-268f75bb8d3f19eddc149ee7d963ee6537f2db31.zip
rgw: Replace boost::string_ref/view with std::string_view
This commit replaces boost's string_ref and string_view cpp's in built std::string_view Fixes: https://tracker.ceph.com/issues/39619 Signed-off-by: Prateek Sachan <psachan@cs.iitr.ac.in>
Diffstat (limited to 'src/rgw/rgw_crypt_sanitize.h')
-rw-r--r--src/rgw/rgw_crypt_sanitize.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/rgw/rgw_crypt_sanitize.h b/src/rgw/rgw_crypt_sanitize.h
index 64d37186c9c..662a7977d31 100644
--- a/src/rgw/rgw_crypt_sanitize.h
+++ b/src/rgw/rgw_crypt_sanitize.h
@@ -4,8 +4,7 @@
#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 {
@@ -15,10 +14,10 @@ namespace crypt_sanitize {
* 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) {}
};
@@ -26,9 +25,9 @@ struct env {
* 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) {}
};
@@ -36,9 +35,9 @@ struct x_meta_map {
* 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) {}
};
@@ -47,8 +46,8 @@ struct s3_policy {
*/
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) {}
};
@@ -56,8 +55,8 @@ struct auth {
* 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) {}
};