add all
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp;
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Cms;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Cmp
|
||||
{
|
||||
public class CertificateConfirmationContent
|
||||
{
|
||||
private readonly DefaultDigestAlgorithmIdentifierFinder m_digestAlgFinder;
|
||||
private readonly CertConfirmContent m_content;
|
||||
|
||||
public CertificateConfirmationContent(CertConfirmContent content)
|
||||
{
|
||||
this.m_content = content;
|
||||
}
|
||||
|
||||
public CertificateConfirmationContent(CertConfirmContent content,
|
||||
DefaultDigestAlgorithmIdentifierFinder digestAlgFinder)
|
||||
{
|
||||
this.m_content = content;
|
||||
this.m_digestAlgFinder = digestAlgFinder;
|
||||
}
|
||||
|
||||
public CertConfirmContent ToAsn1Structure()
|
||||
{
|
||||
return m_content;
|
||||
}
|
||||
|
||||
public CertificateStatus[] GetStatusMessages()
|
||||
{
|
||||
CertStatus[] statusArray = m_content.ToCertStatusArray();
|
||||
CertificateStatus[] ret = new CertificateStatus[statusArray.Length];
|
||||
for (int i = 0; i != ret.Length; i++)
|
||||
{
|
||||
ret[i] = new CertificateStatus(m_digestAlgFinder, statusArray[i]);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user