diff options
Diffstat (limited to 'Crypto/src/asn1/util/Dump.cs')
-rw-r--r-- | Crypto/src/asn1/util/Dump.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Crypto/src/asn1/util/Dump.cs b/Crypto/src/asn1/util/Dump.cs new file mode 100644 index 000000000..2712ca1b3 --- /dev/null +++ b/Crypto/src/asn1/util/Dump.cs @@ -0,0 +1,30 @@ +#if !PORTABLE +using Org.BouncyCastle.Asn1; + +using System; +using System.IO; + +namespace Org.BouncyCastle.Asn1.Utilities +{ + public sealed class Dump + { + private Dump() + { + } + + public static void Main(string[] args) + { + FileStream fIn = File.OpenRead(args[0]); + Asn1InputStream bIn = new Asn1InputStream(fIn); + + Asn1Object obj; + while ((obj = bIn.ReadObject()) != null) + { + Console.WriteLine(Asn1Dump.DumpAsString(obj)); + } + + bIn.Dispose(); + } + } +} +#endif \ No newline at end of file |