From 9e3631b13981fc3f9c63f0f20b931603f5611ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Wed, 13 Jul 2022 12:09:28 -0400 Subject: [PATCH] TrustStore: prevent move Change-Id: Id530a5985feb84d213cc02dc564037e64f626abe --- src/security/certstore.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/security/certstore.h b/src/security/certstore.h index ad5df0aa2b..528c16273a 100644 --- a/src/security/certstore.h +++ b/src/security/certstore.h @@ -120,8 +120,6 @@ class TrustStore { public: TrustStore() = default; - TrustStore(TrustStore&& o) = default; - TrustStore& operator=(TrustStore&& o) = default; enum class PermissionStatus { UNDEFINED = 0, ALLOWED, BANNED }; @@ -156,6 +154,8 @@ public: private: NON_COPYABLE(TrustStore); + TrustStore(TrustStore&& o) = delete; + TrustStore& operator=(TrustStore&& o) = delete; void updateKnownCerts(); bool setCertificateStatus(std::shared_ptr<crypto::Certificate> cert, -- GitLab