From be48625234ca63af262689ae1032494c596195ae Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 11 Jun 2015 19:10:46 -0400 Subject: [PATCH] Changed m_compress and m_encodeAsOID to mutable. They are presentation details, and passing a const-key or cont-params means they cannot be changed when writing --- eccrypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eccrypto.h b/eccrypto.h index 3530455a..92612967 100644 --- a/eccrypto.h +++ b/eccrypto.h @@ -133,7 +133,7 @@ protected: OID m_oid; // set if parameters loaded from a recommended curve Integer m_n; // order of base point - bool m_compress, m_encodeAsOID; + mutable bool m_compress, m_encodeAsOID; mutable Integer m_k; // cofactor };