add all
This commit is contained in:
38
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/asn1/DerGeneralizedTime.cs
vendored
Normal file
38
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/asn1/DerGeneralizedTime.cs
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
public class DerGeneralizedTime
|
||||
: Asn1GeneralizedTime
|
||||
{
|
||||
public DerGeneralizedTime(string timeString)
|
||||
: base(timeString)
|
||||
{
|
||||
}
|
||||
|
||||
public DerGeneralizedTime(DateTime dateTime)
|
||||
: base(dateTime)
|
||||
{
|
||||
}
|
||||
|
||||
internal DerGeneralizedTime(byte[] contents)
|
||||
: base(contents)
|
||||
{
|
||||
}
|
||||
|
||||
internal override IAsn1Encoding GetEncoding(int encoding)
|
||||
{
|
||||
return new PrimitiveEncoding(Asn1Tags.Universal, Asn1Tags.GeneralizedTime,
|
||||
GetContents(Asn1OutputStream.EncodingDer));
|
||||
}
|
||||
|
||||
internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo)
|
||||
{
|
||||
return new PrimitiveEncoding(tagClass, tagNo, GetContents(Asn1OutputStream.EncodingDer));
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user