]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: drop unused rgw_decode_pki_token().
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 19 Mar 2019 12:03:13 +0000 (13:03 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 19 Mar 2019 12:03:13 +0000 (13:03 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/rgw/rgw_keystone.cc
src/rgw/rgw_keystone.h

index 956ac1bc6005cdde6e1c9f53c6a06150a734419b..758c3331878f37c1e7c88891afd783736f96ecee 100644 (file)
@@ -124,24 +124,6 @@ void rgw_get_token_id(const string& token, string& token_id)
   token_id = calc_md5;
 }
 
-bool rgw_decode_pki_token(CephContext * const cct,
-                          const string& token,
-                          bufferlist& bl)
-{
-  if (!rgw_is_pki_token(token)) {
-    return false;
-  }
-
-  int ret = rgw_decode_b64_cms(cct, token, bl);
-  if (ret < 0) {
-    return false;
-  }
-
-  ldout(cct, 20) << "successfully decoded pki token" << dendl;
-
-  return true;
-}
-
 
 namespace rgw {
 namespace keystone {
index 55ad2f9412e3113747c8f2d2fe8cb7c44975291e..547d75d2988f9779defde9129bbee66fbc8e5216 100644 (file)
@@ -31,9 +31,6 @@ static inline std::string rgw_get_token_id(const string& token)
 
   return token_id;
 }
-bool rgw_decode_pki_token(CephContext *cct,
-                          const string& token,
-                          bufferlist& bl);
 
 namespace rgw {
 namespace keystone {