]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async/crypto_onwire: drop unused member variable
authorKefu Chai <kchai@redhat.com>
Fri, 24 Jul 2020 03:51:57 +0000 (11:51 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 Jul 2020 02:32:01 +0000 (10:32 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/async/crypto_onwire.cc

index 4e42340603e7d671e6ecb8846ba512dc62948bdf..6a9045dab501a0d45c3afc52dce5ab1549c00773 100644 (file)
@@ -162,7 +162,6 @@ ceph::bufferlist AES128GCM_OnWireTxHandler::authenticated_encrypt_final()
 
 // RX PART
 class AES128GCM_OnWireRxHandler : public ceph::crypto::onwire::RxHandler {
-  CephContext* const cct;
   std::unique_ptr<EVP_CIPHER_CTX, decltype(&::EVP_CIPHER_CTX_free)> ectx;
   nonce_t nonce;
   bool new_nonce_format;  // 64-bit counter?
@@ -173,8 +172,7 @@ public:
                            const key_t& key,
                            const nonce_t& nonce,
                            bool new_nonce_format)
-    : cct(cct),
-      ectx(EVP_CIPHER_CTX_new(), EVP_CIPHER_CTX_free),
+    : ectx(EVP_CIPHER_CTX_new(), EVP_CIPHER_CTX_free),
       nonce(nonce), new_nonce_format(new_nonce_format) {
     ceph_assert_always(ectx);
     ceph_assert_always(key.size() * CHAR_BIT == 128);