diff options
author | lloyd <[email protected]> | 2008-05-08 15:19:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-08 15:19:05 +0000 |
commit | 265ffd5c1aaa29c19a4feae5c54133ef7cf1d52d (patch) | |
tree | 31b81ba10650506f4a07f9ba2ebfdd778dccaa0c /doc/examples | |
parent | 7f0ab13ebd0342dbcffbeb726ac50dac95e35c88 (diff) |
Print the class tag type(s) on constructed forms
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/asn1.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/examples/asn1.cpp b/doc/examples/asn1.cpp index 72b576653..933c5e492 100644 --- a/doc/examples/asn1.cpp +++ b/doc/examples/asn1.cpp @@ -118,7 +118,16 @@ void decode(BER_Decoder& decoder, u32bit level) if((class_tag & APPLICATION) || (class_tag & CONTEXT_SPECIFIC) || (class_tag & PRIVATE)) + { name = "cons [" + to_string(type_tag) + "]"; + + if(class_tag & APPLICATION) + name += " appl"; + if(class_tag & CONTEXT_SPECIFIC) + name += " context"; + if(class_tag & PRIVATE) + name += " private"; + } else name = type_name(type_tag) + " (cons)"; |