]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: share time skew check between v2 and v4 auth
authorCasey Bodley <cbodley@redhat.com>
Tue, 9 Jan 2018 21:12:38 +0000 (16:12 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Mar 2018 22:18:48 +0000 (23:18 +0100)
commitb8cf40138cbf4b462d6e24512a2b58f294d537d4
treee3fb8574161c98555a82932f1ed0bff1c2709bb7
parent413ed34d74bd758be7b55bd4fae2dabe82de9665
rgw: share time skew check between v2 and v4 auth

this moves the new std::chrono-based v4 time skew check into a common
helper function, then uses that in place of the v2 check

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit bc98772bddab44bf60fd2b081bff58198b7c043e)

Conflicts:
     src/rgw/rgw_auth_s3.cc - avoid C++17-ism (std::chrono::abs) in
                              is_time_skew_ok()
src/rgw/rgw_auth_s3.cc
src/rgw/rgw_auth_s3.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h