diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/asn1.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/examples/asn1.cpp b/doc/examples/asn1.cpp index 81d3b4b5d..84fb6b276 100644 --- a/doc/examples/asn1.cpp +++ b/doc/examples/asn1.cpp @@ -146,7 +146,12 @@ void decode(BER_Decoder& decoder, u32bit level) { OID oid; data.decode(oid); - emit(type_name(type_tag), level, length, OIDS::lookup(oid)); + + std::string out = OIDS::lookup(oid); + if(out != oid.as_string()) + out += " [" + oid.as_string() + "]"; + + emit(type_name(type_tag), level, length, out); } else if(type_tag == INTEGER) { |