]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
auth,mon,crimson: pass KeyStore by const reference
authorKefu Chai <kchai@redhat.com>
Fri, 26 Apr 2019 08:01:52 +0000 (16:01 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Apr 2019 16:12:57 +0000 (00:12 +0800)
commit7dfca035ac84a880a18e3bcdcf11c81d609a5a4c
treea31091cda51550ba8484389e81494d24a3391ad7
parent0a8dbddf884b744284c96dd9279256e55e75ae45
auth,mon,crimson: pass KeyStore by const reference

AuthAuthorizeHandler::verify_authorizer() neither changes the keystore,
nor expects a nullptr. so we should pass the keystore by const reference
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
12 files changed:
src/auth/AuthAuthorizeHandler.h
src/auth/cephx/CephxAuthorizeHandler.cc
src/auth/cephx/CephxAuthorizeHandler.h
src/auth/cephx/CephxProtocol.cc
src/auth/cephx/CephxProtocol.h
src/auth/cephx/CephxServiceHandler.cc
src/auth/krb/KrbAuthorizeHandler.hpp
src/auth/none/AuthNoneAuthorizeHandler.cc
src/auth/none/AuthNoneAuthorizeHandler.h
src/crimson/mon/MonClient.cc
src/mon/MonClient.cc
src/mon/Monitor.cc