From: Sage Weil Date: Tue, 8 Jan 2019 14:57:39 +0000 (-0600) Subject: auth/cephx/CephxSessionHandler: use connection_secret for encryption X-Git-Tag: v14.1.0~271^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a95c5ba184607fd7f96a2fff5a479b89f418397;p=ceph-ci.git auth/cephx/CephxSessionHandler: use connection_secret for encryption Signed-off-by: Sage Weil --- diff --git a/src/auth/cephx/CephxSessionHandler.cc b/src/auth/cephx/CephxSessionHandler.cc index d40682f11bf..384e92c848b 100644 --- a/src/auth/cephx/CephxSessionHandler.cc +++ b/src/auth/cephx/CephxSessionHandler.cc @@ -207,7 +207,7 @@ int CephxSessionHandler::sign_bufferlist(bufferlist &in, bufferlist &out) int CephxSessionHandler::encrypt_bufferlist(bufferlist &in, bufferlist &out) { std::string error; try { - key.encrypt(cct, in, out, &error); + connection_secret.encrypt(cct, in, out, &error); } catch (std::exception &e) { lderr(cct) << __func__ << " failed to encrypt buffer: " << error << dendl; return -1; @@ -218,7 +218,7 @@ int CephxSessionHandler::encrypt_bufferlist(bufferlist &in, bufferlist &out) { int CephxSessionHandler::decrypt_bufferlist(bufferlist &in, bufferlist &out) { std::string error; try { - key.decrypt(cct, in, out, &error); + connection_secret.decrypt(cct, in, out, &error); } catch (std::exception &e) { lderr(cct) << __func__ << " failed to decrypt buffer: " << error << dendl; return -1;