From: Radoslaw Zarzynski Date: Mon, 24 Apr 2017 15:09:01 +0000 (+0200) Subject: rgw: make the RGWPostObj_ObjStore::post_form_part public due to rgw_crypt.cc. X-Git-Tag: v12.0.3~99^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae7d7859f57b6779ed113abca071bd204327d264;p=ceph.git rgw: make the RGWPostObj_ObjStore::post_form_part public due to rgw_crypt.cc. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_crypt.cc b/src/rgw/rgw_crypt.cc index cf48e27751f7..0d57f4da270a 100644 --- a/src/rgw/rgw_crypt.cc +++ b/src/rgw/rgw_crypt.cc @@ -1053,7 +1053,9 @@ static const crypt_option_names crypt_options[] = { static boost::string_ref get_crypt_attribute( RGWEnv* env, - map* parts, + std::map* parts, crypt_option_e option) { static_assert( @@ -1079,10 +1081,12 @@ static boost::string_ref get_crypt_attribute( int rgw_s3_prepare_encrypt(struct req_state* s, - map& attrs, - map* parts, - std::unique_ptr* block_crypt, - std::map& crypt_http_responses) + std::map& attrs, + std::map* parts, + std::unique_ptr* block_crypt, + std::map& crypt_http_responses) { int res = 0; crypt_http_responses.clear(); diff --git a/src/rgw/rgw_crypt.h b/src/rgw/rgw_crypt.h index a6b7df0a42ad..1774983758d0 100644 --- a/src/rgw/rgw_crypt.h +++ b/src/rgw/rgw_crypt.h @@ -7,6 +7,7 @@ #define CEPH_RGW_CRYPT_H #include +#include #include #include @@ -136,14 +137,18 @@ public: int rgw_s3_prepare_encrypt(struct req_state* s, - map& attrs, - map* parts, - std::unique_ptr* block_crypt, - std::map& crypt_http_responses); + std::map& attrs, + std::map* parts, + std::unique_ptr* block_crypt, + std::map& crypt_http_responses); int rgw_s3_prepare_decrypt(struct req_state* s, - map& attrs, - std::unique_ptr* block_crypt, - std::map& crypt_http_responses); + std::map& attrs, + std::unique_ptr* block_crypt, + std::map& crypt_http_responses); #endif diff --git a/src/rgw/rgw_rest.h b/src/rgw/rgw_rest.h index 15d3e3077f3a..1c99ba9dadd4 100644 --- a/src/rgw/rgw_rest.h +++ b/src/rgw/rgw_rest.h @@ -220,7 +220,7 @@ class RGWPostObj_ObjStore : public RGWPostObj { std::string boundary; -protected: +public: struct post_part_field { std::string val; std::map params; @@ -233,6 +233,7 @@ protected: ceph::bufferlist data; }; +protected: ceph::bufferlist in_data; std::map parts;