add all
This commit is contained in:
43
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/asn1/DerNull.cs
vendored
Normal file
43
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/asn1/DerNull.cs
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
/**
|
||||
* A Null object.
|
||||
*/
|
||||
public class DerNull
|
||||
: Asn1Null
|
||||
{
|
||||
public static readonly DerNull Instance = new DerNull();
|
||||
|
||||
private static readonly byte[] ZeroBytes = new byte[0];
|
||||
|
||||
protected internal DerNull()
|
||||
{
|
||||
}
|
||||
|
||||
internal override IAsn1Encoding GetEncoding(int encoding)
|
||||
{
|
||||
return new PrimitiveEncoding(Asn1Tags.Universal, Asn1Tags.Null, ZeroBytes);
|
||||
}
|
||||
|
||||
internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo)
|
||||
{
|
||||
return new PrimitiveEncoding(tagClass, tagNo, ZeroBytes);
|
||||
}
|
||||
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
return asn1Object is DerNull;
|
||||
}
|
||||
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user