aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-08 15:19:05 +0000
committerlloyd <[email protected]>2008-05-08 15:19:05 +0000
commit265ffd5c1aaa29c19a4feae5c54133ef7cf1d52d (patch)
tree31b81ba10650506f4a07f9ba2ebfdd778dccaa0c /doc/examples
parent7f0ab13ebd0342dbcffbeb726ac50dac95e35c88 (diff)
Print the class tag type(s) on constructed forms
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/asn1.cpp9
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)";