]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth/cephx: make KeyServer::build_session_auth_info() less confusing 40870/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 15 Apr 2021 13:18:58 +0000 (15:18 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 15 Apr 2021 13:20:59 +0000 (15:20 +0200)
commit6f12cd3688b753633c8ff29fb3bd64758f960b2b
treea68df020bcd87edf81a1778ea08a37b062a98ef6
parent370c9b13970d47a55b1b20ef983c6f01236c9565
auth/cephx: make KeyServer::build_session_auth_info() less confusing

The second KeyServer::build_session_auth_info() overload is used only
by the monitor, for mon <-> mon authentication.  The monitor passes in
service_secret (mon secret) and secret_id (-1).  The TTL is irrelevant
because there is no rotation.

However the signature doesn't make it obvious.  Clarify that
service_secret and secret_id are input parameters and info is the only
output parameter.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/auth/cephx/CephxKeyServer.cc
src/auth/cephx/CephxKeyServer.h
src/mon/Monitor.cc