From: Luis Periquito Date: Tue, 2 Feb 2016 15:46:37 +0000 (+0100) Subject: rgw: unify RGWValidateKeystoneToken with RGWPostHTTPData. X-Git-Tag: v10.1.0~352^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=46a488137be332ba09e0f1632b4154c710883a1b;p=ceph.git rgw: unify RGWValidateKeystoneToken with RGWPostHTTPData. The change has been extracted from changeset proposed in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by Mark Barnes (lperiquito). Signed-off-by: Mark Barnes Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_swift.cc b/src/rgw/rgw_swift.cc index 5f3faa631017..a88d3a039c63 100644 --- a/src/rgw/rgw_swift.cc +++ b/src/rgw/rgw_swift.cc @@ -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)