]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: unify RGWValidateKeystoneToken with RGWPostHTTPData.
authorLuis Periquito <luis.periquito@ocado.com>
Tue, 2 Feb 2016 15:46:37 +0000 (16:46 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 19 Feb 2016 20:16:15 +0000 (12:16 -0800)
The change has been extracted from changeset proposed
in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by
Mark Barnes <mark.barnes@ocado.com> (lperiquito).

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_swift.cc

index 5f3faa63101737032dc297bc1ef95f03fbcfc1cb..a88d3a039c635d565086dfe8a09814e2a330d62d 100644 (file)
@@ -172,27 +172,10 @@ public:
   }
 };
 
+typedef RGWPostHTTPData RGWValidateKeystoneToken;
 typedef RGWPostHTTPData RGWGetKeystoneAdminToken;
 typedef RGWPostHTTPData RGWGetRevokedTokens;
 
-class RGWValidateKeystoneToken : public RGWHTTPClient {
-  bufferlist *bl;
-public:
-  RGWValidateKeystoneToken(CephContext *_cct, bufferlist *_bl) : RGWHTTPClient(_cct), bl(_bl) {}
-
-  int receive_data(void *ptr, size_t len) {
-    bl->append((char *)ptr, len);
-    return 0;
-  }
-  int receive_header(void *ptr, size_t len) {
-    return 0;
-  }
-  int send_data(void *ptr, size_t len) {
-    return 0;
-  }
-
-};
-
 static RGWKeystoneTokenCache *keystone_token_cache = NULL;
 
 static int open_cms_envelope(CephContext *cct, string& src, string& dst)