up
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
namespace Org.BouncyCastle.Asn1.Misc
|
||||
{
|
||||
public abstract class MiscObjectIdentifiers
|
||||
{
|
||||
//
|
||||
// Netscape
|
||||
// iso/itu(2) joint-assign(16) us(840) uscompany(1) Netscape(113730) cert-extensions(1) }
|
||||
//
|
||||
public static readonly DerObjectIdentifier Netscape = new DerObjectIdentifier("2.16.840.1.113730.1");
|
||||
public static readonly DerObjectIdentifier NetscapeCertType = Netscape.Branch("1");
|
||||
public static readonly DerObjectIdentifier NetscapeBaseUrl = Netscape.Branch("2");
|
||||
public static readonly DerObjectIdentifier NetscapeRevocationUrl = Netscape.Branch("3");
|
||||
public static readonly DerObjectIdentifier NetscapeCARevocationUrl = Netscape.Branch("4");
|
||||
public static readonly DerObjectIdentifier NetscapeRenewalUrl = Netscape.Branch("7");
|
||||
public static readonly DerObjectIdentifier NetscapeCAPolicyUrl = Netscape.Branch("8");
|
||||
public static readonly DerObjectIdentifier NetscapeSslServerName = Netscape.Branch("12");
|
||||
public static readonly DerObjectIdentifier NetscapeCertComment = Netscape.Branch("13");
|
||||
|
||||
//
|
||||
// Verisign
|
||||
// iso/itu(2) joint-assign(16) us(840) uscompany(1) verisign(113733) cert-extensions(1) }
|
||||
//
|
||||
public static readonly DerObjectIdentifier Verisign = new DerObjectIdentifier("2.16.840.1.113733.1");
|
||||
|
||||
//
|
||||
// CZAG - country, zip, age, and gender
|
||||
//
|
||||
public static readonly DerObjectIdentifier VerisignCzagExtension = Verisign.Branch("6.3");
|
||||
|
||||
public static readonly DerObjectIdentifier VerisignPrivate_6_9 = Verisign.Branch("6.9");
|
||||
public static readonly DerObjectIdentifier VerisignOnSiteJurisdictionHash = Verisign.Branch("6.11");
|
||||
public static readonly DerObjectIdentifier VerisignBitString_6_13 = Verisign.Branch("6.13");
|
||||
|
||||
// D&B D-U-N-S number
|
||||
public static readonly DerObjectIdentifier VerisignDnbDunsNumber = Verisign.Branch("6.15");
|
||||
|
||||
public static readonly DerObjectIdentifier VerisignIssStrongCrypto = Verisign.Branch("8.1");
|
||||
|
||||
//
|
||||
// Novell
|
||||
// iso/itu(2) country(16) us(840) organization(1) novell(113719)
|
||||
//
|
||||
public static readonly string Novell = "2.16.840.1.113719";
|
||||
public static readonly DerObjectIdentifier NovellSecurityAttribs = new DerObjectIdentifier(Novell + ".1.9.4.1");
|
||||
|
||||
//
|
||||
// Entrust
|
||||
// iso(1) member-body(16) us(840) nortelnetworks(113533) entrust(7)
|
||||
//
|
||||
public static readonly string Entrust = "1.2.840.113533.7";
|
||||
public static readonly DerObjectIdentifier EntrustVersionExtension = new DerObjectIdentifier(Entrust + ".65.0");
|
||||
|
||||
//
|
||||
// Ascom
|
||||
//
|
||||
public static readonly DerObjectIdentifier as_sys_sec_alg_ideaCBC = new DerObjectIdentifier("1.3.6.1.4.1.188.7.1.1.2");
|
||||
|
||||
//
|
||||
// Peter Gutmann's Cryptlib
|
||||
//
|
||||
public static readonly DerObjectIdentifier cryptlib = new DerObjectIdentifier("1.3.6.1.4.1.3029");
|
||||
|
||||
public static readonly DerObjectIdentifier cryptlib_algorithm = cryptlib.Branch("1");
|
||||
public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_ECB = cryptlib_algorithm.Branch("1.1");
|
||||
public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_CBC = cryptlib_algorithm.Branch("1.2");
|
||||
public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_CFB = cryptlib_algorithm.Branch("1.3");
|
||||
public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_OFB = cryptlib_algorithm.Branch("1.4");
|
||||
|
||||
//
|
||||
// Blake2b
|
||||
//
|
||||
public static readonly DerObjectIdentifier blake2 = new DerObjectIdentifier("1.3.6.1.4.1.1722.12.2");
|
||||
|
||||
public static readonly DerObjectIdentifier id_blake2b160 = blake2.Branch("1.5");
|
||||
public static readonly DerObjectIdentifier id_blake2b256 = blake2.Branch("1.8");
|
||||
public static readonly DerObjectIdentifier id_blake2b384 = blake2.Branch("1.12");
|
||||
public static readonly DerObjectIdentifier id_blake2b512 = blake2.Branch("1.16");
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 547af12a9b99d4ec9ac1fa9233dbc9d0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
57
Assets/BestHTTP/SecureProtocol/asn1/misc/NetscapeCertType.cs
Normal file
57
Assets/BestHTTP/SecureProtocol/asn1/misc/NetscapeCertType.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
using Org.BouncyCastle.Asn1;
|
||||
|
||||
namespace Org.BouncyCastle.Asn1.Misc
|
||||
{
|
||||
/**
|
||||
* The NetscapeCertType object.
|
||||
* <pre>
|
||||
* NetscapeCertType ::= BIT STRING {
|
||||
* SSLClient (0),
|
||||
* SSLServer (1),
|
||||
* S/MIME (2),
|
||||
* Object Signing (3),
|
||||
* Reserved (4),
|
||||
* SSL CA (5),
|
||||
* S/MIME CA (6),
|
||||
* Object Signing CA (7) }
|
||||
* </pre>
|
||||
*/
|
||||
public class NetscapeCertType
|
||||
: DerBitString
|
||||
{
|
||||
public const int SslClient = (1 << 7);
|
||||
public const int SslServer = (1 << 6);
|
||||
public const int Smime = (1 << 5);
|
||||
public const int ObjectSigning = (1 << 4);
|
||||
public const int Reserved = (1 << 3);
|
||||
public const int SslCA = (1 << 2);
|
||||
public const int SmimeCA = (1 << 1);
|
||||
public const int ObjectSigningCA = (1 << 0);
|
||||
|
||||
/**
|
||||
* Basic constructor.
|
||||
*
|
||||
* @param usage - the bitwise OR of the Key Usage flags giving the
|
||||
* allowed uses for the key.
|
||||
* e.g. (X509NetscapeCertType.sslCA | X509NetscapeCertType.smimeCA)
|
||||
*/
|
||||
public NetscapeCertType(int usage)
|
||||
: base(usage)
|
||||
{
|
||||
}
|
||||
|
||||
public NetscapeCertType(DerBitString usage)
|
||||
: base(usage.GetBytes(), usage.PadBits)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
byte[] data = GetBytes();
|
||||
return "NetscapeCertType: 0x" + (data[0] & 0xff).ToString("X");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90b7b6c23b10e47299b8ad3d49f9e1ac
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
using Org.BouncyCastle.Asn1;
|
||||
|
||||
namespace Org.BouncyCastle.Asn1.Misc
|
||||
{
|
||||
public class NetscapeRevocationUrl
|
||||
: DerIA5String
|
||||
{
|
||||
public NetscapeRevocationUrl(DerIA5String str)
|
||||
: base(str.GetString())
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "NetscapeRevocationUrl: " + this.GetString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9544d3b7b041848afbbe7f2c6986c78f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
using Org.BouncyCastle.Asn1;
|
||||
|
||||
namespace Org.BouncyCastle.Asn1.Misc
|
||||
{
|
||||
public class VerisignCzagExtension
|
||||
: DerIA5String
|
||||
{
|
||||
public VerisignCzagExtension(DerIA5String str)
|
||||
: base(str.GetString())
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "VerisignCzagExtension: " + this.GetString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c9686a1f792e64d57968e63058045211
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user