summaryrefslogtreecommitdiff
path: root/asn.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-04-06 02:29:08 -0400
committerJeffrey Walton <noloader@gmail.com>2018-04-06 02:29:08 -0400
commit64a15cf51b8f1868d1b076d4efa6154aba0bc963 (patch)
treeb0a2c9241785b735705ba547634825ec7e05b4c8 /asn.cpp
parent62a9574f3fd60cd5cb6d34841e20b63f239e166f (diff)
downloadcryptopp-git-64a15cf51b8f1868d1b076d4efa6154aba0bc963.tar.gz
Order of initialization for ASN.1 decoders
Diffstat (limited to 'asn.cpp')
-rw-r--r--asn.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/asn.cpp b/asn.cpp
index fb7740b4..5d5cdaa5 100644
--- a/asn.cpp
+++ b/asn.cpp
@@ -502,14 +502,12 @@ lword BERGeneralDecoder::ReduceLength(lword delta)
}
DERGeneralEncoder::DERGeneralEncoder(BufferedTransformation &outQueue, byte asnTag)
- : ByteQueue(), m_outQueue(outQueue), m_finished(false), m_asnTag(asnTag)
+ : ByteQueue(), m_outQueue(outQueue), m_asnTag(asnTag), m_finished(false)
{
}
-// TODO: GCC (and likely other compilers) identify this as a copy constructor; and not a constructor.
-// We have to wait until Crypto++ 6.0 to fix it because the signature change breaks versioning.
DERGeneralEncoder::DERGeneralEncoder(DERGeneralEncoder &outQueue, byte asnTag)
- : ByteQueue(), m_outQueue(outQueue), m_finished(false), m_asnTag(asnTag)
+ : ByteQueue(), m_outQueue(outQueue), m_asnTag(asnTag), m_finished(false)
{
}