http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49670

--- Comment #2 from Jeffrey Walton <noloader at gmail dot com> 2011-07-08 
00:47:53 UTC ---
For completeness, here's the function
(http://www.cryptopp.com/docs/ref/asn_8cpp_source.html):

00244 void OID::DEREncode(BufferedTransformation &bt) const
00245 {
00246         assert(m_values.size() >= 2);
00247         ByteQueue temp;
00248         temp.Put(byte(m_values[0] * 40 + m_values[1]));
00249         for (size_t i=2; i<m_values.size(); i++)
00250                 EncodeValue(temp, m_values[i]);
00251         bt.Put(OBJECT_IDENTIFIER);
00252         DERLengthEncode(bt, temp.CurrentSize());
00253         temp.TransferTo(bt);
00254 }

Reply via email to