The unified diff between revisions [8a2b79c6..] and [44833339..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'doc/examples/asn1.cpp'

#
#
# patch "doc/examples/asn1.cpp"
#  from [bf6c750f7152f7c792172cfd9ce07ff051c0130e]
#    to [4f15025ab441a641f3d07b113a1fd13b5688e17f]
#
============================================================
--- doc/examples/asn1.cpp	bf6c750f7152f7c792172cfd9ce07ff051c0130e
+++ doc/examples/asn1.cpp	4f15025ab441a641f3d07b113a1fd13b5688e17f
@@ -146,7 +146,12 @@ void decode(BER_Decoder& decoder, u32bit
          {
          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)
          {