init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
using System;
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.Ocsp;
using Org.BouncyCastle.Asn1.X509;
using Org.BouncyCastle.X509;
namespace Org.BouncyCastle.Ocsp;
public class RespData : X509ExtensionBase
{
internal readonly ResponseData data;
public int Version => data.Version.Value.IntValue + 1;
public DateTime ProducedAt => data.ProducedAt.ToDateTime();
public X509Extensions ResponseExtensions => data.ResponseExtensions;
public RespData(ResponseData data)
{
this.data = data;
}
public RespID GetResponderId()
{
return new RespID(data.ResponderID);
}
public SingleResp[] GetResponses()
{
Asn1Sequence responses = data.Responses;
SingleResp[] array = new SingleResp[responses.Count];
for (int i = 0; i != array.Length; i++)
{
array[i] = new SingleResp(SingleResponse.GetInstance(responses[i]));
}
return array;
}
protected override X509Extensions GetX509Extensions()
{
return ResponseExtensions;
}
}