From 1a95c5ba184607fd7f96a2fff5a479b89f418397 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 8 Jan 2019 08:57:39 -0600 Subject: [PATCH] auth/cephx/CephxSessionHandler: use connection_secret for encryption Signed-off-by: Sage Weil --- src/auth/cephx/CephxSessionHandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5