From b7aec1310cfc79e10d433423ec9807978a979c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Thu, 16 Sep 2021 11:28:59 -0400 Subject: [PATCH] crypto: make cachedId mutable --- include/opendht/crypto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opendht/crypto.h b/include/opendht/crypto.h index a3c9aa7b..c734b704 100644 --- a/include/opendht/crypto.h +++ b/include/opendht/crypto.h @@ -598,8 +598,8 @@ struct OPENDHT_PUBLIC Certificate { private: Certificate(const Certificate&) = delete; Certificate& operator=(const Certificate&) = delete; - InfoHash cachedId_ {}; - PkId cachedLongId_ {}; + mutable InfoHash cachedId_ {}; + mutable PkId cachedLongId_ {}; struct crlNumberCmp { bool operator() (const std::shared_ptr<RevocationList>& lhs, const std::shared_ptr<RevocationList>& rhs) const { -- GitLab