The unified diff between revisions [5ac60dc5..] and [965528e6..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/ber_dec.cpp'
#
#
# patch "src/ber_dec.cpp"
# from [a7851af3cb4bf32890ffe35296b86c6918864cd8]
# to [21f3a6da1ece347863688014e018a014f1bb2b4e]
#
============================================================
--- src/ber_dec.cpp a7851af3cb4bf32890ffe35296b86c6918864cd8
+++ src/ber_dec.cpp 21f3a6da1ece347863688014e018a014f1bb2b4e
@@ -1,6 +1,6 @@
/*************************************************
* BER Decoder Source File *
-* (C) 1999-2007 The Botan Project *
+* (C) 1999-2008 Jack Lloyd *
*************************************************/
#include <botan/ber_dec.h>
@@ -226,10 +226,12 @@ void BER_Decoder::push_back(const BER_Ob
/*************************************************
* Begin decoding a CONSTRUCTED type *
*************************************************/
-BER_Decoder BER_Decoder::start_cons(ASN1_Tag type_tag)
+BER_Decoder BER_Decoder::start_cons(ASN1_Tag type_tag,
+ ASN1_Tag class_tag)
{
BER_Object obj = get_next_object();
- obj.assert_is_a(type_tag, CONSTRUCTED);
+ obj.assert_is_a(type_tag, ASN1_Tag(class_tag | CONSTRUCTED));
+
BER_Decoder result(obj.value, obj.value.size());
result.parent = this;
return result;