diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-04-06 02:29:08 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-04-06 02:29:08 -0400 |
commit | 64a15cf51b8f1868d1b076d4efa6154aba0bc963 (patch) | |
tree | b0a2c9241785b735705ba547634825ec7e05b4c8 /asn.cpp | |
parent | 62a9574f3fd60cd5cb6d34841e20b63f239e166f (diff) | |
download | cryptopp-git-64a15cf51b8f1868d1b076d4efa6154aba0bc963.tar.gz |
Order of initialization for ASN.1 decoders
Diffstat (limited to 'asn.cpp')
-rw-r--r-- | asn.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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)
{
}
|