You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
692 B
33 lines
692 B
2 months ago
|
#if !PORTABLE
|
||
|
using System;
|
||
|
using System.IO;
|
||
|
|
||
|
using Org.BouncyCastle.Utilities;
|
||
|
|
||
|
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;
|
||
|
#pragma warning disable CS0612 // ���ͻ���Ա�ѹ�ʱ
|
||
|
while ((obj = bIn.ReadObject()) != null)
|
||
|
#pragma warning restore CS0612 // ���ͻ���Ա�ѹ�ʱ
|
||
|
{
|
||
|
Console.WriteLine(Asn1Dump.DumpAsString(obj));
|
||
|
}
|
||
|
|
||
|
Platform.Dispose(bIn);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|