]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: make the RGWPostObj_ObjStore::post_form_part public due to rgw_crypt.cc.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 24 Apr 2017 15:09:01 +0000 (17:09 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 24 Apr 2017 15:32:13 +0000 (17:32 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_crypt.cc
src/rgw/rgw_crypt.h
src/rgw/rgw_rest.h

index cf48e27751f740de7148040c0e7d2d8da1e12935..0d57f4da270a305d32549885e56d553f512a2d9c 100644 (file)
@@ -1053,7 +1053,9 @@ static const crypt_option_names crypt_options[] = {
 
 static boost::string_ref get_crypt_attribute(
     RGWEnv* env,
-    map<string, post_form_part, const ltstr_nocase>* parts,
+    std::map<std::string,
+             RGWPostObj_ObjStore::post_form_part,
+             const ltstr_nocase>* 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<string, bufferlist>& attrs,
-                       map<string, post_form_part, const ltstr_nocase>* parts,
-                       std::unique_ptr<BlockCrypt>* block_crypt,
-                       std::map<std::string, std::string>& crypt_http_responses)
+                           std::map<std::string, ceph::bufferlist>& attrs,
+                           std::map<std::string,
+                                    RGWPostObj_ObjStore::post_form_part,
+                                    const ltstr_nocase>* parts,
+                           std::unique_ptr<BlockCrypt>* block_crypt,
+                           std::map<std::string, std::string>& crypt_http_responses)
 {
   int res = 0;
   crypt_http_responses.clear();
index a6b7df0a42add38dfeb9928f62bc164bd8ae013c..1774983758d0b9632553e07e1caf680c1155a414 100644 (file)
@@ -7,6 +7,7 @@
 #define CEPH_RGW_CRYPT_H
 
 #include <rgw/rgw_op.h>
+#include <rgw/rgw_rest.h>
 #include <rgw/rgw_rest_s3.h>
 #include <boost/utility/string_ref.hpp>
 
@@ -136,14 +137,18 @@ public:
 
 
 int rgw_s3_prepare_encrypt(struct req_state* s,
-                       map<string, bufferlist>& attrs,
-                       map<string, post_form_part, const ltstr_nocase>* parts,
-                       std::unique_ptr<BlockCrypt>* block_crypt,
-                       std::map<std::string, std::string>& crypt_http_responses);
+                           std::map<std::string, ceph::bufferlist>& attrs,
+                           std::map<std::string,
+                                    RGWPostObj_ObjStore::post_form_part,
+                                    const ltstr_nocase>* parts,
+                           std::unique_ptr<BlockCrypt>* block_crypt,
+                           std::map<std::string,
+                                    std::string>& crypt_http_responses);
 
 int rgw_s3_prepare_decrypt(struct req_state* s,
-                       map<string, bufferlist>& attrs,
-                       std::unique_ptr<BlockCrypt>* block_crypt,
-                       std::map<std::string, std::string>& crypt_http_responses);
+                           std::map<std::string, ceph::bufferlist>& attrs,
+                           std::unique_ptr<BlockCrypt>* block_crypt,
+                           std::map<std::string,
+                                    std::string>& crypt_http_responses);
 
 #endif
index 15d3e3077f3a4c1cabb2d65b458cd46a4fe683b2..1c99ba9dadd4cd96ab6affcbe93b8233136fed59 100644 (file)
@@ -220,7 +220,7 @@ class RGWPostObj_ObjStore : public RGWPostObj
 {
   std::string boundary;
 
-protected:
+public:
   struct post_part_field {
     std::string val;
     std::map<std::string, std::string> params;
@@ -233,6 +233,7 @@ protected:
     ceph::bufferlist data;
   };
 
+protected:
   ceph::bufferlist in_data;
   std::map<std::string, post_form_part, const ltstr_nocase> parts;