From dc36ec424c6296a068d0a75672d3f91e9eaa3ae0 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 1 Dec 2017 07:06:36 -0800 Subject: [PATCH] rgw: cleanup Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rest_s3.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 32cdb81d8b5bf..7e4abba29629f 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -3268,21 +3268,6 @@ static int verify_mfa(RGWRados *store, RGWUserInfo *user, const string& mfa_str, return -EACCES; } -#warning clean me up -#if 0 - string& seed = i->second; - - utime_t now = ceph_clock_now(); - - int result = oath_totp_validate3(seed.c_str(), seed.size(), now.sec(), - 30 /* step size */, 0, 2 /* window */, - NULL, NULL, otp.c_str()); - if (result == OATH_INVALID_OTP) { - ldout(cct, 5) << "NOTICE: totp token failed to validate" << dendl; - return -EACCES; - } -#endif - *verified = true; return 0; -- 2.39.5