summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-27 23:58:07 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-27 23:58:07 +0000
commita02d43eadfb396d5b593c75b91280d519762816a (patch)
treec28316c6d455a5fb79079e0c55c3ada27febae8b
parent3319d69ea59af5f64041c4bdc03e3e1304feb02b (diff)
downloadcryptopp-a02d43eadfb396d5b593c75b91280d519762816a.tar.gz
Changed m_compress and m_encodeAsOID to mutable. They are presentation details, and passing a const-key or const-params means they cannot be changed when writing the material
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@546 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r--eccrypto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/eccrypto.h b/eccrypto.h
index 3530455..9261296 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
};