oh dear
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Authentication
|
||||
{
|
||||
/// <summary>The exception that is thrown when authentication fails for an authentication stream.</summary>
|
||||
// Token: 0x020001CC RID: 460
|
||||
[Token(Token = "0x20001CC")]
|
||||
[Serializable]
|
||||
public class AuthenticationException : SystemException
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException" /> class with no message.</summary>
|
||||
// Token: 0x06000C3E RID: 3134 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C3E")]
|
||||
[Address(RVA = "0x3F6080", Offset = "0x3F4E80", VA = "0x1803F6080")]
|
||||
public AuthenticationException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException" /> class with the specified message and inner exception.</summary>
|
||||
/// <param name="message">A <see cref="T:System.String" /> that describes the authentication failure.</param>
|
||||
/// <param name="innerException">The <see cref="T:System.Exception" /> that is the cause of the current exception.</param>
|
||||
// Token: 0x06000C3F RID: 3135 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C3F")]
|
||||
[Address(RVA = "0x3F60D0", Offset = "0x3F4ED0", VA = "0x1803F60D0")]
|
||||
public AuthenticationException(string message, Exception innerException)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
|
||||
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance that contains the information required to deserialize the new <see cref="T:System.Security.Authentication.AuthenticationException" /> instance.</param>
|
||||
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> instance.</param>
|
||||
// Token: 0x06000C40 RID: 3136 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C40")]
|
||||
[Address(RVA = "0x3F60E0", Offset = "0x3F4EE0", VA = "0x1803F60E0")]
|
||||
protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Authentication
|
||||
{
|
||||
/// <summary>Defines the possible versions of <see cref="T:System.Security.Authentication.SslProtocols" />.</summary>
|
||||
// Token: 0x020001CD RID: 461
|
||||
[Token(Token = "0x20001CD")]
|
||||
[Flags]
|
||||
public enum SslProtocols
|
||||
{
|
||||
/// <summary>Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. Unless your app has a specific reason not to, you should use this field.</summary>
|
||||
// Token: 0x04000664 RID: 1636
|
||||
[Token(Token = "0x4000664")]
|
||||
None = 0,
|
||||
/// <summary>Specifies the SSL 2.0 protocol. SSL 2.0 has been superseded by the TLS protocol and is provided for backward compatibility only.</summary>
|
||||
// Token: 0x04000665 RID: 1637
|
||||
[Token(Token = "0x4000665")]
|
||||
Ssl2 = 12,
|
||||
/// <summary>Specifies the SSL 3.0 protocol. SSL 3.0 has been superseded by the TLS protocol and is provided for backward compatibility only.</summary>
|
||||
// Token: 0x04000666 RID: 1638
|
||||
[Token(Token = "0x4000666")]
|
||||
Ssl3 = 48,
|
||||
/// <summary>Specifies the TLS 1.0 security protocol. The TLS protocol is defined in IETF RFC 2246.</summary>
|
||||
// Token: 0x04000667 RID: 1639
|
||||
[Token(Token = "0x4000667")]
|
||||
Tls = 192,
|
||||
/// <summary>Specifies the TLS 1.1 security protocol. The TLS protocol is defined in IETF RFC 4346.</summary>
|
||||
// Token: 0x04000668 RID: 1640
|
||||
[Token(Token = "0x4000668")]
|
||||
[MonoTODO]
|
||||
Tls11 = 768,
|
||||
/// <summary>Specifies the TLS 1.2 security protocol. The TLS protocol is defined in IETF RFC 5246.</summary>
|
||||
// Token: 0x04000669 RID: 1641
|
||||
[Token(Token = "0x4000669")]
|
||||
[MonoTODO]
|
||||
Tls12 = 3072,
|
||||
/// <summary>Use None instead of Default. Default permits only the Secure Sockets Layer (SSL) 3.0 or Transport Layer Security (TLS) 1.0 protocols to be negotiated, and those options are now considered obsolete. Consequently, Default is not allowed in many organizations. Despite the name of this field, <see cref="T:System.Net.Security.SslStream" /> does not use it as a default except under special circumstances.</summary>
|
||||
// Token: 0x0400066A RID: 1642
|
||||
[Token(Token = "0x400066A")]
|
||||
Default = 240
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x020001D3 RID: 467
|
||||
[Token(Token = "0x20001D3")]
|
||||
internal enum AsnDecodeStatus
|
||||
{
|
||||
// Token: 0x0400067E RID: 1662
|
||||
[Token(Token = "0x400067E")]
|
||||
NotDecoded = -1,
|
||||
// Token: 0x0400067F RID: 1663
|
||||
[Token(Token = "0x400067F")]
|
||||
Ok,
|
||||
// Token: 0x04000680 RID: 1664
|
||||
[Token(Token = "0x4000680")]
|
||||
BadAsn,
|
||||
// Token: 0x04000681 RID: 1665
|
||||
[Token(Token = "0x4000681")]
|
||||
BadTag,
|
||||
// Token: 0x04000682 RID: 1666
|
||||
[Token(Token = "0x4000682")]
|
||||
BadLength,
|
||||
// Token: 0x04000683 RID: 1667
|
||||
[Token(Token = "0x4000683")]
|
||||
InformationNotAvailable
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Represents Abstract Syntax Notation One (ASN.1)-encoded data.</summary>
|
||||
// Token: 0x020001D4 RID: 468
|
||||
[Token(Token = "0x20001D4")]
|
||||
public class AsnEncodedData
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AsnEncodedData" /> class.</summary>
|
||||
// Token: 0x06000C56 RID: 3158 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C56")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected AsnEncodedData()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AsnEncodedData" /> class using an <see cref="T:System.Security.Cryptography.Oid" /> object and a byte array.</summary>
|
||||
/// <param name="oid">An <see cref="T:System.Security.Cryptography.Oid" /> object.</param>
|
||||
/// <param name="rawData">A byte array that contains Abstract Syntax Notation One (ASN.1)-encoded data.</param>
|
||||
// Token: 0x06000C57 RID: 3159 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C57")]
|
||||
[Address(RVA = "0x3F5EF0", Offset = "0x3F4CF0", VA = "0x1803F5EF0")]
|
||||
public AsnEncodedData(Oid oid, byte[] rawData)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the <see cref="T:System.Security.Cryptography.Oid" /> value for an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
|
||||
// Token: 0x1700023F RID: 575
|
||||
// (set) Token: 0x06000C58 RID: 3160 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700023F")]
|
||||
public Oid Oid
|
||||
{
|
||||
[Token(Token = "0x6000C58")]
|
||||
[Address(RVA = "0x3F5F50", Offset = "0x3F4D50", VA = "0x1803F5F50")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.</summary>
|
||||
/// <returns>A byte array that represents the Abstract Syntax Notation One (ASN.1)-encoded data.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The value is <see langword="null" />.</exception>
|
||||
// Token: 0x17000240 RID: 576
|
||||
// (get) Token: 0x06000C59 RID: 3161 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x06000C5A RID: 3162 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000240")]
|
||||
public byte[] RawData
|
||||
{
|
||||
[Token(Token = "0x6000C59")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6000C5A")]
|
||||
[Address(RVA = "0x3F5FD0", Offset = "0x3F4DD0", VA = "0x1803F5FD0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Copies information from an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
|
||||
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to base the new object on.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="asnEncodedData" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x06000C5B RID: 3163 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C5B")]
|
||||
[Address(RVA = "0x3F5270", Offset = "0x3F4070", VA = "0x1803F5270", Slot = "4")]
|
||||
public virtual void CopyFrom(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000C5C RID: 3164 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C5C")]
|
||||
[Address(RVA = "0x3F5C80", Offset = "0x3F4A80", VA = "0x1803F5C80", Slot = "5")]
|
||||
internal virtual string ToString(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C5D RID: 3165 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C5D")]
|
||||
[Address(RVA = "0x3F5360", Offset = "0x3F4160", VA = "0x1803F5360")]
|
||||
internal string Default(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C5E RID: 3166 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C5E")]
|
||||
[Address(RVA = "0x3F51B0", Offset = "0x3F3FB0", VA = "0x1803F51B0")]
|
||||
internal string BasicConstraintsExtension(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C5F RID: 3167 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C5F")]
|
||||
[Address(RVA = "0x3F5480", Offset = "0x3F4280", VA = "0x1803F5480")]
|
||||
internal string EnhancedKeyUsageExtension(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C60 RID: 3168 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C60")]
|
||||
[Address(RVA = "0x3F5540", Offset = "0x3F4340", VA = "0x1803F5540")]
|
||||
internal string KeyUsageExtension(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C61 RID: 3169 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C61")]
|
||||
[Address(RVA = "0x3F5BC0", Offset = "0x3F49C0", VA = "0x1803F5BC0")]
|
||||
internal string SubjectKeyIdentifierExtension(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C62 RID: 3170 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C62")]
|
||||
[Address(RVA = "0x3F5950", Offset = "0x3F4750", VA = "0x1803F5950")]
|
||||
internal string SubjectAltName(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C63 RID: 3171 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C63")]
|
||||
[Address(RVA = "0x3F5600", Offset = "0x3F4400", VA = "0x1803F5600")]
|
||||
internal string NetscapeCertType(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000684 RID: 1668
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000684")]
|
||||
internal Oid _oid;
|
||||
|
||||
// Token: 0x04000685 RID: 1669
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000685")]
|
||||
internal byte[] _raw;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x020001D2 RID: 466
|
||||
[Token(Token = "0x20001D2")]
|
||||
internal static class CAPI
|
||||
{
|
||||
// Token: 0x06000C54 RID: 3156 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C54")]
|
||||
[Address(RVA = "0x5005D0", Offset = "0x4FF3D0", VA = "0x1805005D0")]
|
||||
public static string CryptFindOIDInfoNameFromKey(string key, OidGroup oidGroup)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C55 RID: 3157 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C55")]
|
||||
[Address(RVA = "0x4FFF20", Offset = "0x4FED20", VA = "0x1804FFF20")]
|
||||
public static string CryptFindOIDInfoKeyFromName(string name, OidGroup oidGroup)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Represents a cryptographic object identifier. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001CF RID: 463
|
||||
[Token(Token = "0x20001CF")]
|
||||
public sealed class Oid
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Oid" /> class using a string value of an <see cref="T:System.Security.Cryptography.Oid" /> object.</summary>
|
||||
/// <param name="oid">An object identifier.</param>
|
||||
// Token: 0x06000C41 RID: 3137 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C41")]
|
||||
[Address(RVA = "0x503A50", Offset = "0x502850", VA = "0x180503A50")]
|
||||
public Oid(string oid)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000C42 RID: 3138 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C42")]
|
||||
[Address(RVA = "0x503AA0", Offset = "0x5028A0", VA = "0x180503AA0")]
|
||||
internal Oid(string oid, OidGroup group, bool lookupFriendlyName)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Oid" /> class using the specified value and friendly name.</summary>
|
||||
/// <param name="value">The dotted number of the identifier.</param>
|
||||
/// <param name="friendlyName">The friendly name of the identifier.</param>
|
||||
// Token: 0x06000C43 RID: 3139 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C43")]
|
||||
[Address(RVA = "0x4089A0", Offset = "0x4077A0", VA = "0x1804089A0")]
|
||||
public Oid(string value, string friendlyName)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Oid" /> class using the specified <see cref="T:System.Security.Cryptography.Oid" /> object.</summary>
|
||||
/// <param name="oid">The object identifier information to use to create the new object identifier.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="oid" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x06000C44 RID: 3140 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C44")]
|
||||
[Address(RVA = "0x503B30", Offset = "0x502930", VA = "0x180503B30")]
|
||||
public Oid(Oid oid)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the dotted number of the identifier.</summary>
|
||||
/// <returns>The dotted number of the identifier.</returns>
|
||||
// Token: 0x17000238 RID: 568
|
||||
// (get) Token: 0x06000C45 RID: 3141 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x06000C46 RID: 3142 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000238")]
|
||||
public string Value
|
||||
{
|
||||
[Token(Token = "0x6000C45")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6000C46")]
|
||||
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the friendly name of the identifier.</summary>
|
||||
/// <returns>The friendly name of the identifier.</returns>
|
||||
// Token: 0x17000239 RID: 569
|
||||
// (get) Token: 0x06000C47 RID: 3143 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000239")]
|
||||
public string FriendlyName
|
||||
{
|
||||
[Token(Token = "0x6000C47")]
|
||||
[Address(RVA = "0x503BC0", Offset = "0x5029C0", VA = "0x180503BC0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000677 RID: 1655
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000677")]
|
||||
private string m_value;
|
||||
|
||||
// Token: 0x04000678 RID: 1656
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000678")]
|
||||
private string m_friendlyName;
|
||||
|
||||
// Token: 0x04000679 RID: 1657
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000679")]
|
||||
private OidGroup m_group;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.Oid" /> objects. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001D0 RID: 464
|
||||
[Token(Token = "0x20001D0")]
|
||||
public sealed class OidCollection : ICollection, IEnumerable
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.OidCollection" /> class.</summary>
|
||||
// Token: 0x06000C48 RID: 3144 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C48")]
|
||||
[Address(RVA = "0x5038B0", Offset = "0x5026B0", VA = "0x1805038B0")]
|
||||
public OidCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Adds an <see cref="T:System.Security.Cryptography.Oid" /> object to the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
|
||||
/// <param name="oid">The <see cref="T:System.Security.Cryptography.Oid" /> object to add to the collection.</param>
|
||||
/// <returns>The index of the added <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
|
||||
// Token: 0x06000C49 RID: 3145 RVA: 0x00006918 File Offset: 0x00004B18
|
||||
[Token(Token = "0x6000C49")]
|
||||
[Address(RVA = "0x4A7BD0", Offset = "0x4A69D0", VA = "0x1804A7BD0")]
|
||||
public int Add(Oid oid)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Gets an <see cref="T:System.Security.Cryptography.Oid" /> object from the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
|
||||
/// <param name="index">The location of the <see cref="T:System.Security.Cryptography.Oid" /> object in the collection.</param>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
|
||||
// Token: 0x1700023A RID: 570
|
||||
[Token(Token = "0x1700023A")]
|
||||
public Oid this[int index]
|
||||
{
|
||||
[Token(Token = "0x6000C4A")]
|
||||
[Address(RVA = "0x503910", Offset = "0x502710", VA = "0x180503910")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of <see cref="T:System.Security.Cryptography.Oid" /> objects in a collection.</summary>
|
||||
/// <returns>The number of <see cref="T:System.Security.Cryptography.Oid" /> objects in a collection.</returns>
|
||||
// Token: 0x1700023B RID: 571
|
||||
// (get) Token: 0x06000C4B RID: 3147 RVA: 0x00006930 File Offset: 0x00004B30
|
||||
[Token(Token = "0x1700023B")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x6000C4B")]
|
||||
[Address(RVA = "0x4A64A0", Offset = "0x4A52A0", VA = "0x1804A64A0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Returns an <see cref="T:System.Security.Cryptography.OidEnumerator" /> object that can be used to navigate the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.OidEnumerator" /> object that can be used to navigate the collection.</returns>
|
||||
// Token: 0x06000C4C RID: 3148 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C4C")]
|
||||
[Address(RVA = "0x503850", Offset = "0x502650", VA = "0x180503850", Slot = "8")]
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Copies the <see cref="T:System.Security.Cryptography.OidCollection" /> object into an array.</summary>
|
||||
/// <param name="array">The array to copy the <see cref="T:System.Security.Cryptography.OidCollection" /> object to.</param>
|
||||
/// <param name="index">The location where the copy operation starts.</param>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="array" /> cannot be a multidimensional array.
|
||||
/// -or-
|
||||
/// The length of <paramref name="array" /> is an invalid offset length.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="array" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="index" /> is out range.</exception>
|
||||
// Token: 0x06000C4D RID: 3149 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C4D")]
|
||||
[Address(RVA = "0x5035F0", Offset = "0x5023F0", VA = "0x1805035F0", Slot = "4")]
|
||||
void ICollection.CopyTo(Array array, int index)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets a value that indicates whether access to the <see cref="T:System.Security.Cryptography.OidCollection" /> object is thread safe.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="false" /> in all cases.</returns>
|
||||
// Token: 0x1700023C RID: 572
|
||||
// (get) Token: 0x06000C4E RID: 3150 RVA: 0x00006948 File Offset: 0x00004B48
|
||||
[Token(Token = "0x1700023C")]
|
||||
public bool IsSynchronized
|
||||
{
|
||||
[Token(Token = "0x6000C4E")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
|
||||
/// <returns>An object that can be used to synchronize access to the <see cref="T:System.Security.Cryptography.OidCollection" /> object.</returns>
|
||||
// Token: 0x1700023D RID: 573
|
||||
// (get) Token: 0x06000C4F RID: 3151 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700023D")]
|
||||
public object SyncRoot
|
||||
{
|
||||
[Token(Token = "0x6000C4F")]
|
||||
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400067A RID: 1658
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400067A")]
|
||||
private ArrayList m_list;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Provides the ability to navigate through an <see cref="T:System.Security.Cryptography.OidCollection" /> object. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001D1 RID: 465
|
||||
[Token(Token = "0x20001D1")]
|
||||
public sealed class OidEnumerator : IEnumerator
|
||||
{
|
||||
// Token: 0x06000C50 RID: 3152 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C50")]
|
||||
[Address(RVA = "0x503A20", Offset = "0x502820", VA = "0x180503A20")]
|
||||
internal OidEnumerator(OidCollection oids)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the current <see cref="T:System.Security.Cryptography.Oid" /> object in an <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
|
||||
/// <returns>The current <see cref="T:System.Security.Cryptography.Oid" /> object.</returns>
|
||||
// Token: 0x1700023E RID: 574
|
||||
// (get) Token: 0x06000C51 RID: 3153 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700023E")]
|
||||
object IEnumerator.Current
|
||||
{
|
||||
[Token(Token = "0x6000C51")]
|
||||
[Address(RVA = "0x5039F0", Offset = "0x5027F0", VA = "0x1805039F0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Advances to the next <see cref="T:System.Security.Cryptography.Oid" /> object in an <see cref="T:System.Security.Cryptography.OidCollection" /> object.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" />, if the enumerator was successfully advanced to the next element; <see langword="false" />, if the enumerator has passed the end of the collection.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x06000C52 RID: 3154 RVA: 0x00006960 File Offset: 0x00004B60
|
||||
[Token(Token = "0x6000C52")]
|
||||
[Address(RVA = "0x503990", Offset = "0x502790", VA = "0x180503990", Slot = "4")]
|
||||
public bool MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Sets an enumerator to its initial position.</summary>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x06000C53 RID: 3155 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C53")]
|
||||
[Address(RVA = "0x45BBE0", Offset = "0x45A9E0", VA = "0x18045BBE0", Slot = "6")]
|
||||
public void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400067B RID: 1659
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400067B")]
|
||||
private OidCollection m_oids;
|
||||
|
||||
// Token: 0x0400067C RID: 1660
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400067C")]
|
||||
private int m_current;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Identifies Windows cryptographic object identifier (OID) groups.</summary>
|
||||
// Token: 0x020001CE RID: 462
|
||||
[Token(Token = "0x20001CE")]
|
||||
public enum OidGroup
|
||||
{
|
||||
/// <summary>All the groups.</summary>
|
||||
// Token: 0x0400066C RID: 1644
|
||||
[Token(Token = "0x400066C")]
|
||||
All,
|
||||
/// <summary>The Windows group that is represented by CRYPT_HASH_ALG_OID_GROUP_ID.</summary>
|
||||
// Token: 0x0400066D RID: 1645
|
||||
[Token(Token = "0x400066D")]
|
||||
HashAlgorithm,
|
||||
/// <summary>The Windows group that is represented by CRYPT_ENCRYPT_ALG_OID_GROUP_ID.</summary>
|
||||
// Token: 0x0400066E RID: 1646
|
||||
[Token(Token = "0x400066E")]
|
||||
EncryptionAlgorithm,
|
||||
/// <summary>The Windows group that is represented by CRYPT_PUBKEY_ALG_OID_GROUP_ID.</summary>
|
||||
// Token: 0x0400066F RID: 1647
|
||||
[Token(Token = "0x400066F")]
|
||||
PublicKeyAlgorithm,
|
||||
/// <summary>The Windows group that is represented by CRYPT_SIGN_ALG_OID_GROUP_ID.</summary>
|
||||
// Token: 0x04000670 RID: 1648
|
||||
[Token(Token = "0x4000670")]
|
||||
SignatureAlgorithm,
|
||||
/// <summary>The Windows group that is represented by CRYPT_RDN_ATTR_OID_GROUP_ID.</summary>
|
||||
// Token: 0x04000671 RID: 1649
|
||||
[Token(Token = "0x4000671")]
|
||||
Attribute,
|
||||
/// <summary>The Windows group that is represented by CRYPT_EXT_OR_ATTR_OID_GROUP_ID.</summary>
|
||||
// Token: 0x04000672 RID: 1650
|
||||
[Token(Token = "0x4000672")]
|
||||
ExtensionOrAttribute,
|
||||
/// <summary>The Windows group that is represented by CRYPT_ENHKEY_USAGE_OID_GROUP_ID.</summary>
|
||||
// Token: 0x04000673 RID: 1651
|
||||
[Token(Token = "0x4000673")]
|
||||
EnhancedKeyUsage,
|
||||
/// <summary>The Windows group that is represented by CRYPT_POLICY_OID_GROUP_ID.</summary>
|
||||
// Token: 0x04000674 RID: 1652
|
||||
[Token(Token = "0x4000674")]
|
||||
Policy,
|
||||
/// <summary>The Windows group that is represented by CRYPT_TEMPLATE_OID_GROUP_ID.</summary>
|
||||
// Token: 0x04000675 RID: 1653
|
||||
[Token(Token = "0x4000675")]
|
||||
Template,
|
||||
/// <summary>The Windows group that is represented by CRYPT_KDF_OID_GROUP_ID.</summary>
|
||||
// Token: 0x04000676 RID: 1654
|
||||
[Token(Token = "0x4000676")]
|
||||
KeyDerivationFunction
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using Mono.Security.X509;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents a certificate's public key information. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001DE RID: 478
|
||||
[Token(Token = "0x20001DE")]
|
||||
public sealed class PublicKey
|
||||
{
|
||||
// Token: 0x06000C66 RID: 3174 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C66")]
|
||||
[Address(RVA = "0x504400", Offset = "0x503200", VA = "0x180504400")]
|
||||
internal PublicKey(X509Certificate certificate)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the ASN.1-encoded representation of the public key value.</summary>
|
||||
/// <returns>The ASN.1-encoded representation of the public key value.</returns>
|
||||
// Token: 0x17000241 RID: 577
|
||||
// (get) Token: 0x06000C67 RID: 3175 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000241")]
|
||||
public AsnEncodedData EncodedKeyValue
|
||||
{
|
||||
[Token(Token = "0x6000C67")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the ASN.1-encoded representation of the public key parameters.</summary>
|
||||
/// <returns>The ASN.1-encoded representation of the public key parameters.</returns>
|
||||
// Token: 0x17000242 RID: 578
|
||||
// (get) Token: 0x06000C68 RID: 3176 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000242")]
|
||||
public AsnEncodedData EncodedParameters
|
||||
{
|
||||
[Token(Token = "0x6000C68")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an <see cref="T:System.Security.Cryptography.RSA" /> derived object or a <see cref="T:System.Security.Cryptography.DSA" /> derived object representing the public key.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object representing the public key.</returns>
|
||||
/// <exception cref="T:System.NotSupportedException">The key algorithm is not supported.</exception>
|
||||
// Token: 0x17000243 RID: 579
|
||||
// (get) Token: 0x06000C69 RID: 3177 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000243")]
|
||||
public AsymmetricAlgorithm Key
|
||||
{
|
||||
[Token(Token = "0x6000C69")]
|
||||
[Address(RVA = "0x5048F0", Offset = "0x5036F0", VA = "0x1805048F0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an object identifier (OID) object of the public key.</summary>
|
||||
/// <returns>An object identifier (OID) object of the public key.</returns>
|
||||
// Token: 0x17000244 RID: 580
|
||||
// (get) Token: 0x06000C6A RID: 3178 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000244")]
|
||||
public Oid Oid
|
||||
{
|
||||
[Token(Token = "0x6000C6A")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000C6B RID: 3179 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C6B")]
|
||||
[Address(RVA = "0x504300", Offset = "0x503100", VA = "0x180504300")]
|
||||
private static byte[] GetUnsignedBigInteger(byte[] integer)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C6C RID: 3180 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C6C")]
|
||||
[Address(RVA = "0x503C40", Offset = "0x502A40", VA = "0x180503C40")]
|
||||
internal static DSA DecodeDSA(byte[] rawPublicKey, byte[] rawParameters)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C6D RID: 3181 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C6D")]
|
||||
[Address(RVA = "0x504030", Offset = "0x502E30", VA = "0x180504030")]
|
||||
internal static RSA DecodeRSA(byte[] rawPublicKey)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x040006D1 RID: 1745
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006D1")]
|
||||
private AsymmetricAlgorithm _key;
|
||||
|
||||
// Token: 0x040006D2 RID: 1746
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40006D2")]
|
||||
private AsnEncodedData _keyValue;
|
||||
|
||||
// Token: 0x040006D3 RID: 1747
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40006D3")]
|
||||
private AsnEncodedData _params;
|
||||
|
||||
// Token: 0x040006D4 RID: 1748
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40006D4")]
|
||||
private Oid _oid;
|
||||
|
||||
// Token: 0x040006D5 RID: 1749
|
||||
[Token(Token = "0x40006D5")]
|
||||
private static byte[] Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Specifies the location of the X.509 certificate store.</summary>
|
||||
// Token: 0x020001D5 RID: 469
|
||||
[Token(Token = "0x20001D5")]
|
||||
public enum StoreLocation
|
||||
{
|
||||
/// <summary>The X.509 certificate store used by the current user.</summary>
|
||||
// Token: 0x04000687 RID: 1671
|
||||
[Token(Token = "0x4000687")]
|
||||
CurrentUser = 1,
|
||||
/// <summary>The X.509 certificate store assigned to the local machine.</summary>
|
||||
// Token: 0x04000688 RID: 1672
|
||||
[Token(Token = "0x4000688")]
|
||||
LocalMachine
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents the distinguished name of an X509 certificate. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001DF RID: 479
|
||||
[Token(Token = "0x20001DF")]
|
||||
[MonoTODO]
|
||||
public sealed class X500DistinguishedName : AsnEncodedData
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines the constraints set on a certificate. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001E0 RID: 480
|
||||
[Token(Token = "0x20001E0")]
|
||||
public sealed class X509BasicConstraintsExtension : X509Extension
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class.</summary>
|
||||
// Token: 0x06000C6F RID: 3183 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C6F")]
|
||||
[Address(RVA = "0x516E40", Offset = "0x515C40", VA = "0x180516E40")]
|
||||
public X509BasicConstraintsExtension()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
|
||||
/// <param name="encodedBasicConstraints">The encoded data to use to create the extension.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000C70 RID: 3184 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C70")]
|
||||
[Address(RVA = "0x5170F0", Offset = "0x515EF0", VA = "0x1805170F0")]
|
||||
public X509BasicConstraintsExtension(AsnEncodedData encodedBasicConstraints, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class. Parameters specify a value that indicates whether a certificate is a certificate authority (CA) certificate, a value that indicates whether the certificate has a restriction on the number of path levels it allows, the number of levels allowed in a certificate's path, and a value that indicates whether the extension is critical.</summary>
|
||||
/// <param name="certificateAuthority">
|
||||
/// <see langword="true" /> if the certificate is a certificate authority (CA) certificate; otherwise, <see langword="false" />.</param>
|
||||
/// <param name="hasPathLengthConstraint">
|
||||
/// <see langword="true" /> if the certificate has a restriction on the number of path levels it allows; otherwise, <see langword="false" />.</param>
|
||||
/// <param name="pathLengthConstraint">The number of levels allowed in a certificate's path.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000C71 RID: 3185 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C71")]
|
||||
[Address(RVA = "0x516ED0", Offset = "0x515CD0", VA = "0x180516ED0")]
|
||||
public X509BasicConstraintsExtension(bool certificateAuthority, bool hasPathLengthConstraint, int pathLengthConstraint, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets a value indicating whether a certificate is a certificate authority (CA) certificate.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the certificate is a certificate authority (CA) certificate, otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x17000245 RID: 581
|
||||
// (get) Token: 0x06000C72 RID: 3186 RVA: 0x00006978 File Offset: 0x00004B78
|
||||
[Token(Token = "0x17000245")]
|
||||
public bool CertificateAuthority
|
||||
{
|
||||
[Token(Token = "0x6000C72")]
|
||||
[Address(RVA = "0x5171B0", Offset = "0x515FB0", VA = "0x1805171B0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value indicating whether a certificate has a restriction on the number of path levels it allows.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the certificate has a restriction on the number of path levels it allows, otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
|
||||
// Token: 0x17000246 RID: 582
|
||||
// (get) Token: 0x06000C73 RID: 3187 RVA: 0x00006990 File Offset: 0x00004B90
|
||||
[Token(Token = "0x17000246")]
|
||||
public bool HasPathLengthConstraint
|
||||
{
|
||||
[Token(Token = "0x6000C73")]
|
||||
[Address(RVA = "0x517220", Offset = "0x516020", VA = "0x180517220")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of levels allowed in a certificate's path.</summary>
|
||||
/// <returns>An integer indicating the number of levels allowed in a certificate's path.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
|
||||
// Token: 0x17000247 RID: 583
|
||||
// (get) Token: 0x06000C74 RID: 3188 RVA: 0x000069A8 File Offset: 0x00004BA8
|
||||
[Token(Token = "0x17000247")]
|
||||
public int PathLengthConstraint
|
||||
{
|
||||
[Token(Token = "0x6000C74")]
|
||||
[Address(RVA = "0x517290", Offset = "0x516090", VA = "0x180517290")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
|
||||
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
|
||||
// Token: 0x06000C75 RID: 3189 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C75")]
|
||||
[Address(RVA = "0x5167C0", Offset = "0x5155C0", VA = "0x1805167C0", Slot = "4")]
|
||||
public override void CopyFrom(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000C76 RID: 3190 RVA: 0x000069C0 File Offset: 0x00004BC0
|
||||
[Token(Token = "0x6000C76")]
|
||||
[Address(RVA = "0x516950", Offset = "0x515750", VA = "0x180516950")]
|
||||
internal AsnDecodeStatus Decode(byte[] extension)
|
||||
{
|
||||
return AsnDecodeStatus.Ok;
|
||||
}
|
||||
|
||||
// Token: 0x06000C77 RID: 3191 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C77")]
|
||||
[Address(RVA = "0x516AF0", Offset = "0x5158F0", VA = "0x180516AF0")]
|
||||
internal byte[] Encode()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C78 RID: 3192 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C78")]
|
||||
[Address(RVA = "0x516C50", Offset = "0x515A50", VA = "0x180516C50", Slot = "5")]
|
||||
internal override string ToString(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x040006D6 RID: 1750
|
||||
[Token(Token = "0x40006D6")]
|
||||
internal const string oid = "2.5.29.19";
|
||||
|
||||
// Token: 0x040006D7 RID: 1751
|
||||
[Token(Token = "0x40006D7")]
|
||||
internal const string friendlyName = "Basic Constraints";
|
||||
|
||||
// Token: 0x040006D8 RID: 1752
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40006D8")]
|
||||
private bool _certificateAuthority;
|
||||
|
||||
// Token: 0x040006D9 RID: 1753
|
||||
[FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x40006D9")]
|
||||
private bool _hasPathLengthConstraint;
|
||||
|
||||
// Token: 0x040006DA RID: 1754
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x40006DA")]
|
||||
private int _pathLengthConstraint;
|
||||
|
||||
// Token: 0x040006DB RID: 1755
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40006DB")]
|
||||
private AsnDecodeStatus _status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents an X.509 certificate.</summary>
|
||||
// Token: 0x020001E1 RID: 481
|
||||
[Token(Token = "0x20001E1")]
|
||||
[Serializable]
|
||||
public class X509Certificate2 : X509Certificate
|
||||
{
|
||||
// Token: 0x17000248 RID: 584
|
||||
// (get) Token: 0x06000C79 RID: 3193 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000248")]
|
||||
internal X509Certificate2Impl Impl
|
||||
{
|
||||
[Token(Token = "0x6000C79")]
|
||||
[Address(RVA = "0x51A090", Offset = "0x518E90", VA = "0x18051A090")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class.</summary>
|
||||
// Token: 0x06000C7A RID: 3194 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C7A")]
|
||||
[Address(RVA = "0x51A040", Offset = "0x518E40", VA = "0x18051A040")]
|
||||
public X509Certificate2()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class using an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</summary>
|
||||
/// <param name="certificate">An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</param>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An error with the certificate occurs. For example:
|
||||
///
|
||||
/// The certificate file does not exist.
|
||||
///
|
||||
/// The certificate is invalid.
|
||||
///
|
||||
/// The certificate's password is incorrect.</exception>
|
||||
// Token: 0x06000C7B RID: 3195 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C7B")]
|
||||
[Address(RVA = "0x519FD0", Offset = "0x518DD0", VA = "0x180519FD0")]
|
||||
public X509Certificate2(X509Certificate certificate)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class using the specified serialization and stream context information.</summary>
|
||||
/// <param name="info">The serialization information required to deserialize the new <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" />.</param>
|
||||
/// <param name="context">Contextual information about the source of the stream to be deserialized.</param>
|
||||
// Token: 0x06000C7C RID: 3196 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C7C")]
|
||||
[Address(RVA = "0x519F50", Offset = "0x518D50", VA = "0x180519F50")]
|
||||
protected X509Certificate2(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the date in local time after which a certificate is no longer valid.</summary>
|
||||
/// <returns>A <see cref="T:System.DateTime" /> object that represents the expiration date for the certificate.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
|
||||
// Token: 0x17000249 RID: 585
|
||||
// (get) Token: 0x06000C7D RID: 3197 RVA: 0x000069D8 File Offset: 0x00004BD8
|
||||
[Token(Token = "0x17000249")]
|
||||
public DateTime NotAfter
|
||||
{
|
||||
[Token(Token = "0x6000C7D")]
|
||||
[Address(RVA = "0x51A120", Offset = "0x518F20", VA = "0x18051A120")]
|
||||
get
|
||||
{
|
||||
return default(DateTime);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the date in local time on which a certificate becomes valid.</summary>
|
||||
/// <returns>A <see cref="T:System.DateTime" /> object that represents the effective date of the certificate.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
|
||||
// Token: 0x1700024A RID: 586
|
||||
// (get) Token: 0x06000C7E RID: 3198 RVA: 0x000069F0 File Offset: 0x00004BF0
|
||||
[Token(Token = "0x1700024A")]
|
||||
public DateTime NotBefore
|
||||
{
|
||||
[Token(Token = "0x6000C7E")]
|
||||
[Address(RVA = "0x51A170", Offset = "0x518F70", VA = "0x18051A170")]
|
||||
get
|
||||
{
|
||||
return default(DateTime);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object that represents the private key associated with a certificate.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object, which is either an RSA or DSA cryptographic service provider.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key value is not an RSA or DSA key, or the key is unreadable.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">The value being set for this property is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.NotSupportedException">The key algorithm for this private key is not supported.</exception>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The X.509 keys do not match.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">The cryptographic service provider key is <see langword="null" />.</exception>
|
||||
// Token: 0x1700024B RID: 587
|
||||
// (get) Token: 0x06000C7F RID: 3199 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700024B")]
|
||||
public AsymmetricAlgorithm PrivateKey
|
||||
{
|
||||
[Token(Token = "0x6000C7F")]
|
||||
[Address(RVA = "0x51A1C0", Offset = "0x518FC0", VA = "0x18051A1C0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a <see cref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey" /> object associated with a certificate.</summary>
|
||||
/// <returns>A <see cref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey" /> object.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key value is not an RSA or DSA key, or the key is unreadable.</exception>
|
||||
// Token: 0x1700024C RID: 588
|
||||
// (get) Token: 0x06000C80 RID: 3200 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700024C")]
|
||||
public PublicKey PublicKey
|
||||
{
|
||||
[Token(Token = "0x6000C80")]
|
||||
[Address(RVA = "0x51A1F0", Offset = "0x518FF0", VA = "0x18051A1F0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the serial number of a certificate as a big-endian hexadecimal string.</summary>
|
||||
/// <returns>The serial number of the certificate as a big-endian hexadecimal string.</returns>
|
||||
// Token: 0x1700024D RID: 589
|
||||
// (get) Token: 0x06000C81 RID: 3201 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700024D")]
|
||||
public string SerialNumber
|
||||
{
|
||||
[Token(Token = "0x6000C81")]
|
||||
[Address(RVA = "0x51A220", Offset = "0x519020", VA = "0x18051A220")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the algorithm used to create the signature of a certificate.</summary>
|
||||
/// <returns>The object identifier of the signature algorithm.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
|
||||
// Token: 0x1700024E RID: 590
|
||||
// (get) Token: 0x06000C82 RID: 3202 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700024E")]
|
||||
public Oid SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6000C82")]
|
||||
[Address(RVA = "0x51A240", Offset = "0x519040", VA = "0x18051A240")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the thumbprint of a certificate.</summary>
|
||||
/// <returns>The thumbprint of the certificate.</returns>
|
||||
// Token: 0x1700024F RID: 591
|
||||
// (get) Token: 0x06000C83 RID: 3203 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700024F")]
|
||||
public string Thumbprint
|
||||
{
|
||||
[Token(Token = "0x6000C83")]
|
||||
[Address(RVA = "0x51A270", Offset = "0x519070", VA = "0x18051A270")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the X.509 format version of a certificate.</summary>
|
||||
/// <returns>The certificate format.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The certificate is unreadable.</exception>
|
||||
// Token: 0x17000250 RID: 592
|
||||
// (get) Token: 0x06000C84 RID: 3204 RVA: 0x00006A08 File Offset: 0x00004C08
|
||||
[Token(Token = "0x17000250")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x6000C84")]
|
||||
[Address(RVA = "0x51A290", Offset = "0x519090", VA = "0x18051A290")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the subject and issuer names from a certificate.</summary>
|
||||
/// <param name="nameType">The <see cref="T:System.Security.Cryptography.X509Certificates.X509NameType" /> value for the subject.</param>
|
||||
/// <param name="forIssuer">
|
||||
/// <see langword="true" /> to include the issuer name; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The name of the certificate.</returns>
|
||||
// Token: 0x06000C85 RID: 3205 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C85")]
|
||||
[Address(RVA = "0x519850", Offset = "0x518650", VA = "0x180519850")]
|
||||
[MonoTODO]
|
||||
public string GetNameInfo(X509NameType nameType, bool forIssuer)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Populates an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object using data from a byte array, a password, and flags for determining how to import the private key.</summary>
|
||||
/// <param name="rawData">A byte array containing data from an X.509 certificate.</param>
|
||||
/// <param name="password">The password required to access the X.509 certificate data.</param>
|
||||
/// <param name="keyStorageFlags">A bitwise combination of the enumeration values that control where and how to import the certificate.</param>
|
||||
// Token: 0x06000C86 RID: 3206 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C86")]
|
||||
[Address(RVA = "0x5198A0", Offset = "0x5186A0", VA = "0x1805198A0", Slot = "15")]
|
||||
[MonoTODO]
|
||||
public override void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Resets the state of an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object.</summary>
|
||||
// Token: 0x06000C87 RID: 3207 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C87")]
|
||||
[Address(RVA = "0x5198E0", Offset = "0x5186E0", VA = "0x1805198E0", Slot = "17")]
|
||||
public override void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Displays an X.509 certificate in text format.</summary>
|
||||
/// <returns>The certificate information.</returns>
|
||||
// Token: 0x06000C88 RID: 3208 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C88")]
|
||||
[Address(RVA = "0x519E90", Offset = "0x518C90", VA = "0x180519E90", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Displays an X.509 certificate in text format.</summary>
|
||||
/// <param name="verbose">
|
||||
/// <see langword="true" /> to display the public key, private key, extensions, and so forth; <see langword="false" /> to display information that is similar to the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class, including thumbprint, serial number, subject and issuer names, and so on.</param>
|
||||
/// <returns>The certificate information.</returns>
|
||||
// Token: 0x06000C89 RID: 3209 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C89")]
|
||||
[Address(RVA = "0x519930", Offset = "0x518730", VA = "0x180519930", Slot = "14")]
|
||||
public override string ToString(bool verbose)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C8A RID: 3210 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C8A")]
|
||||
[Address(RVA = "0x519790", Offset = "0x518590", VA = "0x180519790")]
|
||||
private static void AppendBuffer(StringBuilder sb, byte[] buffer)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040006DC RID: 1756
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40006DC")]
|
||||
private string friendlyName;
|
||||
|
||||
// Token: 0x040006DD RID: 1757
|
||||
[Token(Token = "0x40006DD")]
|
||||
private static byte[] signedData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> objects. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001E2 RID: 482
|
||||
[Token(Token = "0x20001E2")]
|
||||
[DefaultMember("Item")]
|
||||
public class X509Certificate2Collection : X509CertificateCollection
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> class without any <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> information.</summary>
|
||||
// Token: 0x06000C8C RID: 3212 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C8C")]
|
||||
[Address(RVA = "0x5174E0", Offset = "0x5162E0", VA = "0x1805174E0")]
|
||||
public X509Certificate2Collection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Adds an object to the end of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" />.</summary>
|
||||
/// <param name="certificate">An X.509 certificate represented as an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object.</param>
|
||||
/// <returns>The <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> index at which the <paramref name="certificate" /> has been added.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="certificate" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x06000C8D RID: 3213 RVA: 0x00006A20 File Offset: 0x00004C20
|
||||
[Token(Token = "0x6000C8D")]
|
||||
[Address(RVA = "0x517300", Offset = "0x516100", VA = "0x180517300")]
|
||||
public int Add(X509Certificate2 certificate)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Returns an enumerator that can iterate through a <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator" /> object that can iterate through the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
|
||||
// Token: 0x06000C8E RID: 3214 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C8E")]
|
||||
[Address(RVA = "0x5173A0", Offset = "0x5161A0", VA = "0x1805173A0")]
|
||||
public new X509Certificate2Enumerator GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x040006DE RID: 1758
|
||||
[Token(Token = "0x40006DE")]
|
||||
private static string[] newline_split;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Supports a simple iteration over a <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001E3 RID: 483
|
||||
[Token(Token = "0x20001E3")]
|
||||
public sealed class X509Certificate2Enumerator : IEnumerator
|
||||
{
|
||||
// Token: 0x06000C90 RID: 3216 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C90")]
|
||||
[Address(RVA = "0x517630", Offset = "0x516430", VA = "0x180517630")]
|
||||
internal X509Certificate2Enumerator(X509Certificate2Collection collection)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</summary>
|
||||
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
|
||||
// Token: 0x17000251 RID: 593
|
||||
// (get) Token: 0x06000C91 RID: 3217 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000251")]
|
||||
public X509Certificate2 Current
|
||||
{
|
||||
[Token(Token = "0x6000C91")]
|
||||
[Address(RVA = "0x517690", Offset = "0x516490", VA = "0x180517690")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Advances the enumerator to the next element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x06000C92 RID: 3218 RVA: 0x00006A38 File Offset: 0x00004C38
|
||||
[Token(Token = "0x6000C92")]
|
||||
[Address(RVA = "0x5174F0", Offset = "0x5162F0", VA = "0x1805174F0")]
|
||||
public bool MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>For a description of this member, see <see cref="P:System.Collections.IEnumerator.Current" />.</summary>
|
||||
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
|
||||
// Token: 0x17000252 RID: 594
|
||||
// (get) Token: 0x06000C93 RID: 3219 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000252")]
|
||||
object IEnumerator.Current
|
||||
{
|
||||
[Token(Token = "0x6000C93")]
|
||||
[Address(RVA = "0x5175E0", Offset = "0x5163E0", VA = "0x1805175E0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.MoveNext" />.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x06000C94 RID: 3220 RVA: 0x00006A50 File Offset: 0x00004C50
|
||||
[Token(Token = "0x6000C94")]
|
||||
[Address(RVA = "0x517540", Offset = "0x516340", VA = "0x180517540", Slot = "4")]
|
||||
bool IEnumerator.MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.Reset" />.</summary>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x06000C95 RID: 3221 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C95")]
|
||||
[Address(RVA = "0x517590", Offset = "0x516390", VA = "0x180517590", Slot = "6")]
|
||||
void IEnumerator.Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040006DF RID: 1759
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006DF")]
|
||||
private IEnumerator enumerator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
// Token: 0x020001E4 RID: 484
|
||||
[Token(Token = "0x20001E4")]
|
||||
internal abstract class X509Certificate2Impl : X509CertificateImpl
|
||||
{
|
||||
// Token: 0x17000253 RID: 595
|
||||
// (get) Token: 0x06000C96 RID: 3222
|
||||
[Token(Token = "0x17000253")]
|
||||
public abstract AsymmetricAlgorithm PrivateKey
|
||||
{
|
||||
[Token(Token = "0x6000C96")]
|
||||
[Address(Slot = "18")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000254 RID: 596
|
||||
// (get) Token: 0x06000C97 RID: 3223
|
||||
[Token(Token = "0x17000254")]
|
||||
public abstract PublicKey PublicKey
|
||||
{
|
||||
[Token(Token = "0x6000C97")]
|
||||
[Address(Slot = "19")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000255 RID: 597
|
||||
// (get) Token: 0x06000C98 RID: 3224
|
||||
[Token(Token = "0x17000255")]
|
||||
public abstract Oid SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6000C98")]
|
||||
[Address(Slot = "20")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000256 RID: 598
|
||||
// (get) Token: 0x06000C99 RID: 3225
|
||||
[Token(Token = "0x17000256")]
|
||||
public abstract int Version
|
||||
{
|
||||
[Token(Token = "0x6000C99")]
|
||||
[Address(Slot = "21")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000257 RID: 599
|
||||
// (get) Token: 0x06000C9A RID: 3226
|
||||
[Token(Token = "0x17000257")]
|
||||
internal abstract X509CertificateImplCollection IntermediateCertificates
|
||||
{
|
||||
[Token(Token = "0x6000C9A")]
|
||||
[Address(Slot = "22")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x06000C9B RID: 3227
|
||||
[Token(Token = "0x6000C9B")]
|
||||
[Address(Slot = "23")]
|
||||
public abstract string GetNameInfo(X509NameType nameType, bool forIssuer);
|
||||
|
||||
// Token: 0x06000C9C RID: 3228
|
||||
[Token(Token = "0x6000C9C")]
|
||||
[Address(Slot = "24")]
|
||||
public abstract void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags);
|
||||
|
||||
// Token: 0x06000C9D RID: 3229
|
||||
[Token(Token = "0x6000C9D")]
|
||||
[Address(Slot = "25")]
|
||||
public abstract void Reset();
|
||||
|
||||
// Token: 0x06000C9E RID: 3230 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000C9E")]
|
||||
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
||||
protected X509Certificate2Impl()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,319 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
using Mono.Security;
|
||||
using Mono.Security.X509;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
// Token: 0x020001E5 RID: 485
|
||||
[Token(Token = "0x20001E5")]
|
||||
internal class X509Certificate2ImplMono : X509Certificate2Impl
|
||||
{
|
||||
// Token: 0x17000258 RID: 600
|
||||
// (get) Token: 0x06000C9F RID: 3231 RVA: 0x00006A68 File Offset: 0x00004C68
|
||||
[Token(Token = "0x17000258")]
|
||||
public override bool IsValid
|
||||
{
|
||||
[Token(Token = "0x6000C9F")]
|
||||
[Address(RVA = "0x5191A0", Offset = "0x517FA0", VA = "0x1805191A0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000CA0 RID: 3232 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CA0")]
|
||||
[Address(RVA = "0x5190E0", Offset = "0x517EE0", VA = "0x1805190E0")]
|
||||
private X509Certificate2ImplMono(X509Certificate cert)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CA1 RID: 3233 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CA1")]
|
||||
[Address(RVA = "0x519110", Offset = "0x517F10", VA = "0x180519110")]
|
||||
private X509Certificate2ImplMono(X509Certificate2ImplMono other)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CA2 RID: 3234 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CA2")]
|
||||
[Address(RVA = "0x5177F0", Offset = "0x5165F0", VA = "0x1805177F0", Slot = "6")]
|
||||
public override X509CertificateImpl Clone()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CA3 RID: 3235 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CA3")]
|
||||
[Address(RVA = "0x517A20", Offset = "0x516820", VA = "0x180517A20", Slot = "7")]
|
||||
public override string GetIssuerName(bool legacyV1Mode)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CA4 RID: 3236 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CA4")]
|
||||
[Address(RVA = "0x517E40", Offset = "0x516C40", VA = "0x180517E40", Slot = "8")]
|
||||
public override string GetSubjectName(bool legacyV1Mode)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CA5 RID: 3237 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CA5")]
|
||||
[Address(RVA = "0x517DC0", Offset = "0x516BC0", VA = "0x180517DC0", Slot = "9")]
|
||||
public override byte[] GetRawCertData()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CA6 RID: 3238 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CA6")]
|
||||
[Address(RVA = "0x5179C0", Offset = "0x5167C0", VA = "0x1805179C0", Slot = "12")]
|
||||
protected override byte[] GetCertHash(bool lazy)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CA7 RID: 3239 RVA: 0x00006A80 File Offset: 0x00004C80
|
||||
[Token(Token = "0x6000CA7")]
|
||||
[Address(RVA = "0x517F00", Offset = "0x516D00", VA = "0x180517F00", Slot = "10")]
|
||||
public override DateTime GetValidFrom()
|
||||
{
|
||||
return default(DateTime);
|
||||
}
|
||||
|
||||
// Token: 0x06000CA8 RID: 3240 RVA: 0x00006A98 File Offset: 0x00004C98
|
||||
[Token(Token = "0x6000CA8")]
|
||||
[Address(RVA = "0x517F40", Offset = "0x516D40", VA = "0x180517F40", Slot = "11")]
|
||||
public override DateTime GetValidUntil()
|
||||
{
|
||||
return default(DateTime);
|
||||
}
|
||||
|
||||
// Token: 0x06000CA9 RID: 3241 RVA: 0x00006AB0 File Offset: 0x00004CB0
|
||||
[Token(Token = "0x6000CA9")]
|
||||
[Address(RVA = "0x5178B0", Offset = "0x5166B0", VA = "0x1805178B0", Slot = "13")]
|
||||
public override bool Equals(X509CertificateImpl other, out bool result)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06000CAA RID: 3242 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CAA")]
|
||||
[Address(RVA = "0x517D80", Offset = "0x516B80", VA = "0x180517D80", Slot = "14")]
|
||||
public override byte[] GetPublicKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CAB RID: 3243 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CAB")]
|
||||
[Address(RVA = "0x517E00", Offset = "0x516C00", VA = "0x180517E00", Slot = "15")]
|
||||
public override byte[] GetSerialNumber()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CAC RID: 3244 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CAC")]
|
||||
[Address(RVA = "0x5190C0", Offset = "0x517EC0", VA = "0x1805190C0")]
|
||||
public X509Certificate2ImplMono()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000259 RID: 601
|
||||
// (get) Token: 0x06000CAD RID: 3245 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000259")]
|
||||
public override AsymmetricAlgorithm PrivateKey
|
||||
{
|
||||
[Token(Token = "0x6000CAD")]
|
||||
[Address(RVA = "0x5191B0", Offset = "0x517FB0", VA = "0x1805191B0", Slot = "18")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700025A RID: 602
|
||||
// (get) Token: 0x06000CAE RID: 3246 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700025A")]
|
||||
public override PublicKey PublicKey
|
||||
{
|
||||
[Token(Token = "0x6000CAE")]
|
||||
[Address(RVA = "0x519490", Offset = "0x518290", VA = "0x180519490", Slot = "19")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700025B RID: 603
|
||||
// (get) Token: 0x06000CAF RID: 3247 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700025B")]
|
||||
public override Oid SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6000CAF")]
|
||||
[Address(RVA = "0x5195D0", Offset = "0x5183D0", VA = "0x1805195D0", Slot = "20")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700025C RID: 604
|
||||
// (get) Token: 0x06000CB0 RID: 3248 RVA: 0x00006AC8 File Offset: 0x00004CC8
|
||||
[Token(Token = "0x1700025C")]
|
||||
public override int Version
|
||||
{
|
||||
[Token(Token = "0x6000CB0")]
|
||||
[Address(RVA = "0x5196E0", Offset = "0x5184E0", VA = "0x1805196E0", Slot = "21")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000CB1 RID: 3249 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CB1")]
|
||||
[Address(RVA = "0x517AE0", Offset = "0x5168E0", VA = "0x180517AE0", Slot = "23")]
|
||||
[MonoTODO]
|
||||
public override string GetNameInfo(X509NameType nameType, bool forIssuer)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CB2 RID: 3250 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CB2")]
|
||||
[Address(RVA = "0x5178C0", Offset = "0x5166C0", VA = "0x1805178C0")]
|
||||
private ASN1 Find(byte[] oid, ASN1 dn)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CB3 RID: 3251 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CB3")]
|
||||
[Address(RVA = "0x517F80", Offset = "0x516D80", VA = "0x180517F80")]
|
||||
private string GetValueAsString(ASN1 pair)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CB4 RID: 3252 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CB4")]
|
||||
[Address(RVA = "0x518110", Offset = "0x516F10", VA = "0x180518110")]
|
||||
private X509Certificate ImportPkcs12(byte[] rawData, string password)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CB5 RID: 3253 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CB5")]
|
||||
[Address(RVA = "0x518780", Offset = "0x517580", VA = "0x180518780", Slot = "24")]
|
||||
[MonoTODO]
|
||||
public override void Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CB6 RID: 3254 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CB6")]
|
||||
[Address(RVA = "0x5188C0", Offset = "0x5176C0", VA = "0x1805188C0", Slot = "25")]
|
||||
public override void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CB7 RID: 3255 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CB7")]
|
||||
[Address(RVA = "0x518F70", Offset = "0x517D70", VA = "0x180518F70", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CB8 RID: 3256 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CB8")]
|
||||
[Address(RVA = "0x518970", Offset = "0x517770", VA = "0x180518970", Slot = "16")]
|
||||
public override string ToString(bool verbose)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CB9 RID: 3257 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CB9")]
|
||||
[Address(RVA = "0x517730", Offset = "0x516530", VA = "0x180517730")]
|
||||
private static void AppendBuffer(StringBuilder sb, byte[] buffer)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x1700025D RID: 605
|
||||
// (get) Token: 0x06000CBA RID: 3258 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700025D")]
|
||||
internal override X509CertificateImplCollection IntermediateCertificates
|
||||
{
|
||||
[Token(Token = "0x6000CBA")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170", Slot = "22")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040006E0 RID: 1760
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40006E0")]
|
||||
private bool _archived;
|
||||
|
||||
// Token: 0x040006E1 RID: 1761
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40006E1")]
|
||||
private X509ExtensionCollection _extensions;
|
||||
|
||||
// Token: 0x040006E2 RID: 1762
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40006E2")]
|
||||
private PublicKey _publicKey;
|
||||
|
||||
// Token: 0x040006E3 RID: 1763
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40006E3")]
|
||||
private X500DistinguishedName issuer_name;
|
||||
|
||||
// Token: 0x040006E4 RID: 1764
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40006E4")]
|
||||
private X500DistinguishedName subject_name;
|
||||
|
||||
// Token: 0x040006E5 RID: 1765
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40006E5")]
|
||||
private Oid signature_algorithm;
|
||||
|
||||
// Token: 0x040006E6 RID: 1766
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40006E6")]
|
||||
private X509CertificateImplCollection intermediateCerts;
|
||||
|
||||
// Token: 0x040006E7 RID: 1767
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40006E7")]
|
||||
private X509Certificate _cert;
|
||||
|
||||
// Token: 0x040006E8 RID: 1768
|
||||
[Token(Token = "0x40006E8")]
|
||||
private static string empty_error;
|
||||
|
||||
// Token: 0x040006E9 RID: 1769
|
||||
[Token(Token = "0x40006E9")]
|
||||
private static byte[] commonName;
|
||||
|
||||
// Token: 0x040006EA RID: 1770
|
||||
[Token(Token = "0x40006EA")]
|
||||
private static byte[] email;
|
||||
|
||||
// Token: 0x040006EB RID: 1771
|
||||
[Token(Token = "0x40006EB")]
|
||||
private static byte[] signedData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines a collection that stores <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> objects.</summary>
|
||||
// Token: 0x020001E6 RID: 486
|
||||
[Token(Token = "0x20001E6")]
|
||||
[Serializable]
|
||||
public class X509CertificateCollection : CollectionBase
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> class.</summary>
|
||||
// Token: 0x06000CBC RID: 3260 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CBC")]
|
||||
[Address(RVA = "0x5174E0", Offset = "0x5162E0", VA = "0x1805174E0")]
|
||||
public X509CertificateCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> class from another <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <param name="value">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> with which to initialize the new object.</param>
|
||||
// Token: 0x06000CBD RID: 3261 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CBD")]
|
||||
[Address(RVA = "0x51A5B0", Offset = "0x5193B0", VA = "0x18051A5B0")]
|
||||
public X509CertificateCollection(X509CertificateCollection value)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the entry at the specified index of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <param name="index">The zero-based index of the entry to locate in the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</param>
|
||||
/// <returns>The <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> at the specified index of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="index" /> parameter is outside the valid range of indexes for the collection.</exception>
|
||||
// Token: 0x1700025E RID: 606
|
||||
[Token(Token = "0x1700025E")]
|
||||
public X509Certificate this[int index]
|
||||
{
|
||||
[Token(Token = "0x6000CBE")]
|
||||
[Address(RVA = "0x51A750", Offset = "0x519550", VA = "0x18051A750")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Adds an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> with the specified value to the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <param name="value">The <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> to add to the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</param>
|
||||
/// <returns>The index into the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> at which the new <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> was inserted.</returns>
|
||||
// Token: 0x06000CBF RID: 3263 RVA: 0x00006AE0 File Offset: 0x00004CE0
|
||||
[Token(Token = "0x6000CBF")]
|
||||
[Address(RVA = "0x51A450", Offset = "0x519250", VA = "0x18051A450")]
|
||||
public int Add(X509Certificate value)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Copies the elements of the specified <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> to the end of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <param name="value">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> containing the objects to add to the collection.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
|
||||
// Token: 0x06000CC0 RID: 3264 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CC0")]
|
||||
[Address(RVA = "0x51A2C0", Offset = "0x5190C0", VA = "0x18051A2C0")]
|
||||
public void AddRange(X509CertificateCollection value)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Returns an enumerator that can iterate through the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <returns>An enumerator of the subelements of <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> you can use to iterate through the collection.</returns>
|
||||
// Token: 0x06000CC1 RID: 3265 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CC1")]
|
||||
[Address(RVA = "0x51A4F0", Offset = "0x5192F0", VA = "0x18051A4F0")]
|
||||
public new X509CertificateCollection.X509CertificateEnumerator GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Builds a hash value based on all values contained in the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <returns>A hash value based on all values contained in the current <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</returns>
|
||||
// Token: 0x06000CC2 RID: 3266 RVA: 0x00006AF8 File Offset: 0x00004CF8
|
||||
[Token(Token = "0x6000CC2")]
|
||||
[Address(RVA = "0x51A580", Offset = "0x519380", VA = "0x18051A580", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Enumerates the <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> objects in an <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
// Token: 0x020001E7 RID: 487
|
||||
[Token(Token = "0x20001E7")]
|
||||
public class X509CertificateEnumerator : IEnumerator
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection.X509CertificateEnumerator" /> class for the specified <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <param name="mappings">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> to enumerate.</param>
|
||||
// Token: 0x06000CC3 RID: 3267 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CC3")]
|
||||
[Address(RVA = "0x51A940", Offset = "0x519740", VA = "0x18051A940")]
|
||||
public X509CertificateEnumerator(X509CertificateCollection mappings)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> in the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</summary>
|
||||
/// <returns>The current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> in the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" />.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
|
||||
// Token: 0x1700025F RID: 607
|
||||
// (get) Token: 0x06000CC4 RID: 3268 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700025F")]
|
||||
public X509Certificate Current
|
||||
{
|
||||
[Token(Token = "0x6000CC4")]
|
||||
[Address(RVA = "0x51A9A0", Offset = "0x5197A0", VA = "0x18051A9A0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>For a description of this member, see <see cref="P:System.Collections.IEnumerator.Current" />.</summary>
|
||||
/// <returns>The current X.509 certificate object in the <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection" /> object.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
|
||||
// Token: 0x17000260 RID: 608
|
||||
// (get) Token: 0x06000CC5 RID: 3269 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000260")]
|
||||
object IEnumerator.Current
|
||||
{
|
||||
[Token(Token = "0x6000CC5")]
|
||||
[Address(RVA = "0x51A8F0", Offset = "0x5196F0", VA = "0x18051A8F0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.MoveNext" />.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was instantiated.</exception>
|
||||
// Token: 0x06000CC6 RID: 3270 RVA: 0x00006B10 File Offset: 0x00004D10
|
||||
[Token(Token = "0x6000CC6")]
|
||||
[Address(RVA = "0x51A850", Offset = "0x519650", VA = "0x18051A850", Slot = "4")]
|
||||
bool IEnumerator.MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>For a description of this member, see <see cref="M:System.Collections.IEnumerator.Reset" />.</summary>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was instantiated.</exception>
|
||||
// Token: 0x06000CC7 RID: 3271 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CC7")]
|
||||
[Address(RVA = "0x51A8A0", Offset = "0x5196A0", VA = "0x18051A8A0", Slot = "6")]
|
||||
void IEnumerator.Reset()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Advances the enumerator to the next element of the collection.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was instantiated.</exception>
|
||||
// Token: 0x06000CC8 RID: 3272 RVA: 0x00006B28 File Offset: 0x00004D28
|
||||
[Token(Token = "0x6000CC8")]
|
||||
[Address(RVA = "0x51A800", Offset = "0x519600", VA = "0x18051A800")]
|
||||
public bool MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x040006EC RID: 1772
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006EC")]
|
||||
private IEnumerator enumerator;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
// Token: 0x020001E8 RID: 488
|
||||
[Token(Token = "0x20001E8")]
|
||||
internal class X509CertificateImplCollection : IDisposable
|
||||
{
|
||||
// Token: 0x06000CC9 RID: 3273 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CC9")]
|
||||
[Address(RVA = "0x51AEC0", Offset = "0x519CC0", VA = "0x18051AEC0")]
|
||||
public X509CertificateImplCollection()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CCA RID: 3274 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CCA")]
|
||||
[Address(RVA = "0x51AD40", Offset = "0x519B40", VA = "0x18051AD40")]
|
||||
private X509CertificateImplCollection(X509CertificateImplCollection other)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000261 RID: 609
|
||||
// (get) Token: 0x06000CCB RID: 3275 RVA: 0x00006B40 File Offset: 0x00004D40
|
||||
[Token(Token = "0x17000261")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x6000CCB")]
|
||||
[Address(RVA = "0x51AF20", Offset = "0x519D20", VA = "0x18051AF20")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000262 RID: 610
|
||||
[Token(Token = "0x17000262")]
|
||||
public X509CertificateImpl this[int index]
|
||||
{
|
||||
[Token(Token = "0x6000CCC")]
|
||||
[Address(RVA = "0x51AF60", Offset = "0x519D60", VA = "0x18051AF60")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000CCD RID: 3277 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CCD")]
|
||||
[Address(RVA = "0x51AA40", Offset = "0x519840", VA = "0x18051AA40")]
|
||||
public void Add(X509CertificateImpl impl, bool takeOwnership)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CCE RID: 3278 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CCE")]
|
||||
[Address(RVA = "0x51AAD0", Offset = "0x5198D0", VA = "0x18051AAD0")]
|
||||
public X509CertificateImplCollection Clone()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000CCF RID: 3279 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CCF")]
|
||||
[Address(RVA = "0x51AC50", Offset = "0x519A50", VA = "0x18051AC50", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CD0 RID: 3280 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CD0")]
|
||||
[Address(RVA = "0x51AB30", Offset = "0x519930", VA = "0x18051AB30", Slot = "5")]
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CD1 RID: 3281 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CD1")]
|
||||
[Address(RVA = "0x51ACC0", Offset = "0x519AC0", VA = "0x18051ACC0", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040006ED RID: 1773
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006ED")]
|
||||
private List<X509CertificateImpl> list;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents a chain-building engine for <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> certificates.</summary>
|
||||
// Token: 0x020001E9 RID: 489
|
||||
[Token(Token = "0x20001E9")]
|
||||
public class X509Chain : IDisposable
|
||||
{
|
||||
// Token: 0x17000263 RID: 611
|
||||
// (get) Token: 0x06000CD2 RID: 3282 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000263")]
|
||||
internal X509ChainImpl Impl
|
||||
{
|
||||
[Token(Token = "0x6000CD2")]
|
||||
[Address(RVA = "0x51BD50", Offset = "0x51AB50", VA = "0x18051BD50")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> class.</summary>
|
||||
// Token: 0x06000CD3 RID: 3283 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CD3")]
|
||||
[Address(RVA = "0x51BBA0", Offset = "0x51A9A0", VA = "0x18051BBA0")]
|
||||
public X509Chain()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" /> class specifying a value that indicates whether the machine context should be used.</summary>
|
||||
/// <param name="useMachineContext">
|
||||
/// <see langword="true" /> to use the machine context; <see langword="false" /> to use the current user context.</param>
|
||||
// Token: 0x06000CD4 RID: 3284 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CD4")]
|
||||
[Address(RVA = "0x51BA80", Offset = "0x51A880", VA = "0x18051BA80")]
|
||||
public X509Chain(bool useMachineContext)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> to use when building an X.509 certificate chain.</summary>
|
||||
/// <returns>The <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> object associated with this X.509 chain.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The value being set for this property is <see langword="null" />.</exception>
|
||||
// Token: 0x17000264 RID: 612
|
||||
// (get) Token: 0x06000CD5 RID: 3285 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x06000CD6 RID: 3286 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000264")]
|
||||
public X509ChainPolicy ChainPolicy
|
||||
{
|
||||
[Token(Token = "0x6000CD5")]
|
||||
[Address(RVA = "0x51BCC0", Offset = "0x51AAC0", VA = "0x18051BCC0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6000CD6")]
|
||||
[Address(RVA = "0x51BDC0", Offset = "0x51ABC0", VA = "0x18051BDC0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Releases all of the resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" />.</summary>
|
||||
// Token: 0x06000CD7 RID: 3287 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CD7")]
|
||||
[Address(RVA = "0x51B990", Offset = "0x51A790", VA = "0x18051B990", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases the unmanaged resources used by this <see cref="T:System.Security.Cryptography.X509Certificates.X509Chain" />, and optionally releases the managed resources.</summary>
|
||||
/// <param name="disposing">
|
||||
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
|
||||
// Token: 0x06000CD8 RID: 3288 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CD8")]
|
||||
[Address(RVA = "0x51B900", Offset = "0x51A700", VA = "0x18051B900", Slot = "5")]
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CD9 RID: 3289 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CD9")]
|
||||
[Address(RVA = "0x51BA00", Offset = "0x51A800", VA = "0x18051BA00", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040006EE RID: 1774
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006EE")]
|
||||
private X509ChainImpl impl;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElement" /> objects. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001EA RID: 490
|
||||
[Token(Token = "0x20001EA")]
|
||||
[DefaultMember("Item")]
|
||||
public sealed class X509ChainElementCollection : ICollection, IEnumerable
|
||||
{
|
||||
// Token: 0x06000CDA RID: 3290 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CDA")]
|
||||
[Address(RVA = "0x51B050", Offset = "0x519E50", VA = "0x18051B050")]
|
||||
internal X509ChainElementCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of elements in the collection.</summary>
|
||||
/// <returns>An integer representing the number of elements in the collection.</returns>
|
||||
// Token: 0x17000265 RID: 613
|
||||
// (get) Token: 0x06000CDB RID: 3291 RVA: 0x00006B58 File Offset: 0x00004D58
|
||||
[Token(Token = "0x17000265")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x6000CDB")]
|
||||
[Address(RVA = "0x4A64A0", Offset = "0x4A52A0", VA = "0x1804A64A0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value indicating whether the collection of chain elements is synchronized.</summary>
|
||||
/// <returns>Always returns <see langword="false" />.</returns>
|
||||
// Token: 0x17000266 RID: 614
|
||||
// (get) Token: 0x06000CDC RID: 3292 RVA: 0x00006B70 File Offset: 0x00004D70
|
||||
[Token(Token = "0x17000266")]
|
||||
public bool IsSynchronized
|
||||
{
|
||||
[Token(Token = "0x6000CDC")]
|
||||
[Address(RVA = "0x51B0B0", Offset = "0x519EB0", VA = "0x18051B0B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an object that can be used to synchronize access to an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object.</summary>
|
||||
/// <returns>A pointer reference to the current object.</returns>
|
||||
// Token: 0x17000267 RID: 615
|
||||
// (get) Token: 0x06000CDD RID: 3293 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000267")]
|
||||
public object SyncRoot
|
||||
{
|
||||
[Token(Token = "0x6000CDD")]
|
||||
[Address(RVA = "0x4A64D0", Offset = "0x4A52D0", VA = "0x1804A64D0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Copies an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object into an array, starting at the specified index.</summary>
|
||||
/// <param name="array">An array to copy the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object to.</param>
|
||||
/// <param name="index">The index of <paramref name="array" /> at which to start copying.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The specified <paramref name="index" /> is less than zero, or greater than or equal to the length of the array.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="array" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="index" /> plus the current count is greater than the length of the array.</exception>
|
||||
// Token: 0x06000CDE RID: 3294 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CDE")]
|
||||
[Address(RVA = "0x4A7C60", Offset = "0x4A6A60", VA = "0x1804A7C60", Slot = "4")]
|
||||
void ICollection.CopyTo(Array array, int index)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets an <see cref="T:System.Collections.IEnumerator" /> object that can be used to navigate a collection of chain elements.</summary>
|
||||
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> object.</returns>
|
||||
// Token: 0x06000CDF RID: 3295 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CDF")]
|
||||
[Address(RVA = "0x51AFC0", Offset = "0x519DC0", VA = "0x18051AFC0", Slot = "8")]
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x040006EF RID: 1775
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006EF")]
|
||||
private ArrayList _list;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Supports a simple iteration over an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001EB RID: 491
|
||||
[Token(Token = "0x20001EB")]
|
||||
public sealed class X509ChainElementEnumerator : IEnumerator
|
||||
{
|
||||
// Token: 0x06000CE0 RID: 3296 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CE0")]
|
||||
[Address(RVA = "0x51B1D0", Offset = "0x519FD0", VA = "0x18051B1D0")]
|
||||
internal X509ChainElementEnumerator(IEnumerable enumerable)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
|
||||
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
|
||||
// Token: 0x17000268 RID: 616
|
||||
// (get) Token: 0x06000CE1 RID: 3297 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000268")]
|
||||
object IEnumerator.Current
|
||||
{
|
||||
[Token(Token = "0x6000CE1")]
|
||||
[Address(RVA = "0x51B180", Offset = "0x519F80", VA = "0x18051B180", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Advances the enumerator to the next element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x06000CE2 RID: 3298 RVA: 0x00006B88 File Offset: 0x00004D88
|
||||
[Token(Token = "0x6000CE2")]
|
||||
[Address(RVA = "0x51B0E0", Offset = "0x519EE0", VA = "0x18051B0E0", Slot = "4")]
|
||||
public bool MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Sets the enumerator to its initial position, which is before the first element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x06000CE3 RID: 3299 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CE3")]
|
||||
[Address(RVA = "0x51B130", Offset = "0x519F30", VA = "0x18051B130", Slot = "6")]
|
||||
public void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040006F0 RID: 1776
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006F0")]
|
||||
private IEnumerator enumerator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
// Token: 0x020001EC RID: 492
|
||||
[Token(Token = "0x20001EC")]
|
||||
internal abstract class X509ChainImpl : IDisposable
|
||||
{
|
||||
// Token: 0x17000269 RID: 617
|
||||
// (get) Token: 0x06000CE4 RID: 3300
|
||||
[Token(Token = "0x17000269")]
|
||||
public abstract bool IsValid
|
||||
{
|
||||
[Token(Token = "0x6000CE4")]
|
||||
[Address(Slot = "5")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x1700026A RID: 618
|
||||
// (get) Token: 0x06000CE5 RID: 3301
|
||||
// (set) Token: 0x06000CE6 RID: 3302
|
||||
[Token(Token = "0x1700026A")]
|
||||
public abstract X509ChainPolicy ChainPolicy
|
||||
{
|
||||
[Token(Token = "0x6000CE5")]
|
||||
[Address(Slot = "6")]
|
||||
get;
|
||||
[Token(Token = "0x6000CE6")]
|
||||
[Address(Slot = "7")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06000CE7 RID: 3303 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CE7")]
|
||||
[Address(RVA = "0x51B360", Offset = "0x51A160", VA = "0x18051B360", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CE8 RID: 3304 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CE8")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "8")]
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CE9 RID: 3305 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CE9")]
|
||||
[Address(RVA = "0x51B3D0", Offset = "0x51A1D0", VA = "0x18051B3D0", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CEA RID: 3306 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CEA")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected X509ChainImpl()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
// Token: 0x020001ED RID: 493
|
||||
[Token(Token = "0x20001ED")]
|
||||
internal class X509ChainImplMono : X509ChainImpl
|
||||
{
|
||||
// Token: 0x06000CEB RID: 3307 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CEB")]
|
||||
[Address(RVA = "0x51B280", Offset = "0x51A080", VA = "0x18051B280")]
|
||||
public X509ChainImplMono(bool useMachineContext)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x1700026B RID: 619
|
||||
// (get) Token: 0x06000CEC RID: 3308 RVA: 0x00006BA0 File Offset: 0x00004DA0
|
||||
[Token(Token = "0x1700026B")]
|
||||
public override bool IsValid
|
||||
{
|
||||
[Token(Token = "0x6000CEC")]
|
||||
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700026C RID: 620
|
||||
// (get) Token: 0x06000CED RID: 3309 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x06000CEE RID: 3310 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700026C")]
|
||||
public override X509ChainPolicy ChainPolicy
|
||||
{
|
||||
[Token(Token = "0x6000CED")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6000CEE")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90", Slot = "7")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040006F1 RID: 1777
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006F1")]
|
||||
private StoreLocation location;
|
||||
|
||||
// Token: 0x040006F2 RID: 1778
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40006F2")]
|
||||
private X509ChainElementCollection elements;
|
||||
|
||||
// Token: 0x040006F3 RID: 1779
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40006F3")]
|
||||
private X509ChainPolicy policy;
|
||||
|
||||
// Token: 0x040006F4 RID: 1780
|
||||
[Token(Token = "0x40006F4")]
|
||||
private static X509ChainStatus[] Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents the chain policy to be applied when building an X509 certificate chain. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001EE RID: 494
|
||||
[Token(Token = "0x20001EE")]
|
||||
public sealed class X509ChainPolicy
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> class.</summary>
|
||||
// Token: 0x06000CF0 RID: 3312 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CF0")]
|
||||
[Address(RVA = "0x51B5E0", Offset = "0x51A3E0", VA = "0x18051B5E0")]
|
||||
public X509ChainPolicy()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CF1 RID: 3313 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CF1")]
|
||||
[Address(RVA = "0x51B5B0", Offset = "0x51A3B0", VA = "0x18051B5B0")]
|
||||
internal X509ChainPolicy(X509CertificateCollection store)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets an object that represents an additional collection of certificates that can be searched by the chaining engine when validating a certificate chain.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2Collection" /> object.</returns>
|
||||
// Token: 0x1700026D RID: 621
|
||||
// (get) Token: 0x06000CF2 RID: 3314 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700026D")]
|
||||
public X509Certificate2Collection ExtraStore
|
||||
{
|
||||
[Token(Token = "0x6000CF2")]
|
||||
[Address(RVA = "0x51B600", Offset = "0x51A400", VA = "0x18051B600")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Resets the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainPolicy" /> members to their default values.</summary>
|
||||
// Token: 0x06000CF3 RID: 3315 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CF3")]
|
||||
[Address(RVA = "0x51B450", Offset = "0x51A250", VA = "0x18051B450")]
|
||||
public void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040006F5 RID: 1781
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40006F5")]
|
||||
private OidCollection apps;
|
||||
|
||||
// Token: 0x040006F6 RID: 1782
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40006F6")]
|
||||
private OidCollection cert;
|
||||
|
||||
// Token: 0x040006F7 RID: 1783
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40006F7")]
|
||||
private X509CertificateCollection store;
|
||||
|
||||
// Token: 0x040006F8 RID: 1784
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40006F8")]
|
||||
private X509Certificate2Collection store2;
|
||||
|
||||
// Token: 0x040006F9 RID: 1785
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40006F9")]
|
||||
private X509RevocationFlag rflag;
|
||||
|
||||
// Token: 0x040006FA RID: 1786
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x40006FA")]
|
||||
private X509RevocationMode mode;
|
||||
|
||||
// Token: 0x040006FB RID: 1787
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40006FB")]
|
||||
private TimeSpan timeout;
|
||||
|
||||
// Token: 0x040006FC RID: 1788
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40006FC")]
|
||||
private X509VerificationFlags vflags;
|
||||
|
||||
// Token: 0x040006FD RID: 1789
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40006FD")]
|
||||
private DateTime vtime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Provides a simple structure for storing X509 chain status and error information.</summary>
|
||||
// Token: 0x020001EF RID: 495
|
||||
[Token(Token = "0x20001EF")]
|
||||
public struct X509ChainStatus
|
||||
{
|
||||
// Token: 0x040006FE RID: 1790
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40006FE")]
|
||||
private X509ChainStatusFlags status;
|
||||
|
||||
// Token: 0x040006FF RID: 1791
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x40006FF")]
|
||||
private string info;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines the status of an X509 chain.</summary>
|
||||
// Token: 0x020001D6 RID: 470
|
||||
[Token(Token = "0x20001D6")]
|
||||
[Flags]
|
||||
public enum X509ChainStatusFlags
|
||||
{
|
||||
/// <summary>Specifies that the X509 chain has no errors.</summary>
|
||||
// Token: 0x0400068A RID: 1674
|
||||
[Token(Token = "0x400068A")]
|
||||
NoError = 0,
|
||||
/// <summary>Specifies that the X509 chain is not valid due to an invalid time value, such as a value that indicates an expired certificate.</summary>
|
||||
// Token: 0x0400068B RID: 1675
|
||||
[Token(Token = "0x400068B")]
|
||||
NotTimeValid = 1,
|
||||
/// <summary>Deprecated. Specifies that the CA (certificate authority) certificate and the issued certificate have validity periods that are not nested. For example, the CA cert can be valid from January 1 to December 1 and the issued certificate from January 2 to December 2, which would mean the validity periods are not nested.</summary>
|
||||
// Token: 0x0400068C RID: 1676
|
||||
[Token(Token = "0x400068C")]
|
||||
NotTimeNested = 2,
|
||||
/// <summary>Specifies that the X509 chain is invalid due to a revoked certificate.</summary>
|
||||
// Token: 0x0400068D RID: 1677
|
||||
[Token(Token = "0x400068D")]
|
||||
Revoked = 4,
|
||||
/// <summary>Specifies that the X509 chain is invalid due to an invalid certificate signature.</summary>
|
||||
// Token: 0x0400068E RID: 1678
|
||||
[Token(Token = "0x400068E")]
|
||||
NotSignatureValid = 8,
|
||||
/// <summary>Specifies that the key usage is not valid.</summary>
|
||||
// Token: 0x0400068F RID: 1679
|
||||
[Token(Token = "0x400068F")]
|
||||
NotValidForUsage = 16,
|
||||
/// <summary>Specifies that the X509 chain is invalid due to an untrusted root certificate.</summary>
|
||||
// Token: 0x04000690 RID: 1680
|
||||
[Token(Token = "0x4000690")]
|
||||
UntrustedRoot = 32,
|
||||
/// <summary>Specifies that it is not possible to determine whether the certificate has been revoked. This can be due to the certificate revocation list (CRL) being offline or unavailable.</summary>
|
||||
// Token: 0x04000691 RID: 1681
|
||||
[Token(Token = "0x4000691")]
|
||||
RevocationStatusUnknown = 64,
|
||||
/// <summary>Specifies that the X509 chain could not be built.</summary>
|
||||
// Token: 0x04000692 RID: 1682
|
||||
[Token(Token = "0x4000692")]
|
||||
Cyclic = 128,
|
||||
/// <summary>Specifies that the X509 chain is invalid due to an invalid extension.</summary>
|
||||
// Token: 0x04000693 RID: 1683
|
||||
[Token(Token = "0x4000693")]
|
||||
InvalidExtension = 256,
|
||||
/// <summary>Specifies that the X509 chain is invalid due to invalid policy constraints.</summary>
|
||||
// Token: 0x04000694 RID: 1684
|
||||
[Token(Token = "0x4000694")]
|
||||
InvalidPolicyConstraints = 512,
|
||||
/// <summary>Specifies that the X509 chain is invalid due to invalid basic constraints.</summary>
|
||||
// Token: 0x04000695 RID: 1685
|
||||
[Token(Token = "0x4000695")]
|
||||
InvalidBasicConstraints = 1024,
|
||||
/// <summary>Specifies that the X509 chain is invalid due to invalid name constraints.</summary>
|
||||
// Token: 0x04000696 RID: 1686
|
||||
[Token(Token = "0x4000696")]
|
||||
InvalidNameConstraints = 2048,
|
||||
/// <summary>Specifies that the certificate does not have a supported name constraint or has a name constraint that is unsupported.</summary>
|
||||
// Token: 0x04000697 RID: 1687
|
||||
[Token(Token = "0x4000697")]
|
||||
HasNotSupportedNameConstraint = 4096,
|
||||
/// <summary>Specifies that the certificate has an undefined name constraint.</summary>
|
||||
// Token: 0x04000698 RID: 1688
|
||||
[Token(Token = "0x4000698")]
|
||||
HasNotDefinedNameConstraint = 8192,
|
||||
/// <summary>Specifies that the certificate has an impermissible name constraint.</summary>
|
||||
// Token: 0x04000699 RID: 1689
|
||||
[Token(Token = "0x4000699")]
|
||||
HasNotPermittedNameConstraint = 16384,
|
||||
/// <summary>Specifies that the X509 chain is invalid because a certificate has excluded a name constraint.</summary>
|
||||
// Token: 0x0400069A RID: 1690
|
||||
[Token(Token = "0x400069A")]
|
||||
HasExcludedNameConstraint = 32768,
|
||||
/// <summary>Specifies that the X509 chain could not be built up to the root certificate.</summary>
|
||||
// Token: 0x0400069B RID: 1691
|
||||
[Token(Token = "0x400069B")]
|
||||
PartialChain = 65536,
|
||||
/// <summary>Specifies that the certificate trust list (CTL) is not valid because of an invalid time value, such as one that indicates that the CTL has expired.</summary>
|
||||
// Token: 0x0400069C RID: 1692
|
||||
[Token(Token = "0x400069C")]
|
||||
CtlNotTimeValid = 131072,
|
||||
/// <summary>Specifies that the certificate trust list (CTL) contains an invalid signature.</summary>
|
||||
// Token: 0x0400069D RID: 1693
|
||||
[Token(Token = "0x400069D")]
|
||||
CtlNotSignatureValid = 262144,
|
||||
/// <summary>Specifies that the certificate trust list (CTL) is not valid for this use.</summary>
|
||||
// Token: 0x0400069E RID: 1694
|
||||
[Token(Token = "0x400069E")]
|
||||
CtlNotValidForUsage = 524288,
|
||||
/// <summary>Specifies that the online certificate revocation list (CRL) the X509 chain relies on is currently offline.</summary>
|
||||
// Token: 0x0400069F RID: 1695
|
||||
[Token(Token = "0x400069F")]
|
||||
OfflineRevocation = 16777216,
|
||||
/// <summary>Specifies that there is no certificate policy extension in the certificate. This error would occur if a group policy has specified that all certificates must have a certificate policy.</summary>
|
||||
// Token: 0x040006A0 RID: 1696
|
||||
[Token(Token = "0x40006A0")]
|
||||
NoIssuanceChainPolicy = 33554432,
|
||||
/// <summary>Specifies that the certificate is explicitly distrusted.</summary>
|
||||
// Token: 0x040006A1 RID: 1697
|
||||
[Token(Token = "0x40006A1")]
|
||||
ExplicitDistrust = 67108864,
|
||||
/// <summary>Specifies that the certificate does not support a critical extension.</summary>
|
||||
// Token: 0x040006A2 RID: 1698
|
||||
[Token(Token = "0x40006A2")]
|
||||
HasNotSupportedCriticalExtension = 134217728,
|
||||
/// <summary>Specifies that the certificate has not been strong signed. Typically, this indicates that the MD2 or MD5 hashing algorithms were used to create a hash of the certificate.</summary>
|
||||
// Token: 0x040006A3 RID: 1699
|
||||
[Token(Token = "0x40006A3")]
|
||||
HasWeakSignature = 1048576
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines the collection of object identifiers (OIDs) that indicates the applications that use the key. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001F0 RID: 496
|
||||
[Token(Token = "0x20001F0")]
|
||||
public sealed class X509EnhancedKeyUsageExtension : X509Extension
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
|
||||
/// <param name="encodedEnhancedKeyUsages">The encoded data to use to create the extension.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000CF4 RID: 3316 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CF4")]
|
||||
[Address(RVA = "0x51C4C0", Offset = "0x51B2C0", VA = "0x18051C4C0")]
|
||||
public X509EnhancedKeyUsageExtension(AsnEncodedData encodedEnhancedKeyUsages, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
|
||||
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
|
||||
// Token: 0x06000CF5 RID: 3317 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CF5")]
|
||||
[Address(RVA = "0x51BE60", Offset = "0x51AC60", VA = "0x18051BE60", Slot = "4")]
|
||||
public override void CopyFrom(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CF6 RID: 3318 RVA: 0x00006BB8 File Offset: 0x00004DB8
|
||||
[Token(Token = "0x6000CF6")]
|
||||
[Address(RVA = "0x51BFF0", Offset = "0x51ADF0", VA = "0x18051BFF0")]
|
||||
internal AsnDecodeStatus Decode(byte[] extension)
|
||||
{
|
||||
return AsnDecodeStatus.Ok;
|
||||
}
|
||||
|
||||
// Token: 0x06000CF7 RID: 3319 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CF7")]
|
||||
[Address(RVA = "0x51C1E0", Offset = "0x51AFE0", VA = "0x18051C1E0", Slot = "5")]
|
||||
internal override string ToString(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000700 RID: 1792
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000700")]
|
||||
private OidCollection _enhKeyUsage;
|
||||
|
||||
// Token: 0x04000701 RID: 1793
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000701")]
|
||||
private AsnDecodeStatus _status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents an X509 extension.</summary>
|
||||
// Token: 0x020001F1 RID: 497
|
||||
[Token(Token = "0x20001F1")]
|
||||
public class X509Extension : AsnEncodedData
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509Extension" /> class.</summary>
|
||||
// Token: 0x06000CF8 RID: 3320 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CF8")]
|
||||
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
||||
protected X509Extension()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets a Boolean value indicating whether the extension is critical.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x1700026E RID: 622
|
||||
// (get) Token: 0x06000CF9 RID: 3321 RVA: 0x00006BD0 File Offset: 0x00004DD0
|
||||
// (set) Token: 0x06000CFA RID: 3322 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700026E")]
|
||||
public bool Critical
|
||||
{
|
||||
[Token(Token = "0x6000CF9")]
|
||||
[Address(RVA = "0x3F71D0", Offset = "0x3F5FD0", VA = "0x1803F71D0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x6000CFA")]
|
||||
[Address(RVA = "0x41EF80", Offset = "0x41DD80", VA = "0x18041EF80")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Copies the extension properties of the specified <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
|
||||
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> to be copied.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="asnEncodedData" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="asnEncodedData" /> does not have a valid X.509 extension.</exception>
|
||||
// Token: 0x06000CFB RID: 3323 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CFB")]
|
||||
[Address(RVA = "0x51C5D0", Offset = "0x51B3D0", VA = "0x18051C5D0", Slot = "4")]
|
||||
public override void CopyFrom(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CFC RID: 3324 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000CFC")]
|
||||
[Address(RVA = "0x51C6E0", Offset = "0x51B4E0", VA = "0x18051C6E0")]
|
||||
internal string FormatUnkownData(byte[] data)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000702 RID: 1794
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000702")]
|
||||
private bool _critical;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509Extension" /> objects. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001F2 RID: 498
|
||||
[Token(Token = "0x20001F2")]
|
||||
[DefaultMember("Item")]
|
||||
public sealed class X509ExtensionCollection
|
||||
{
|
||||
// Token: 0x04000703 RID: 1795
|
||||
[Token(Token = "0x4000703")]
|
||||
private static byte[] Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
// Token: 0x020001F3 RID: 499
|
||||
[Token(Token = "0x20001F3")]
|
||||
internal static class X509Helper2
|
||||
{
|
||||
// Token: 0x06000CFE RID: 3326 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CFE")]
|
||||
[Address(RVA = "0x51CB20", Offset = "0x51B920", VA = "0x18051CB20")]
|
||||
internal static void Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000CFF RID: 3327 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000CFF")]
|
||||
[Address(RVA = "0x51CBF0", Offset = "0x51B9F0", VA = "0x18051CBF0")]
|
||||
internal static void ThrowIfContextInvalid(X509CertificateImpl impl)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D00 RID: 3328 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D00")]
|
||||
[Address(RVA = "0x51CA80", Offset = "0x51B880", VA = "0x18051CA80")]
|
||||
internal static X509Certificate2Impl Import(byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags, bool disableProvider = false)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D01 RID: 3329 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D01")]
|
||||
[Address(RVA = "0x51C950", Offset = "0x51B750", VA = "0x18051C950")]
|
||||
internal static X509Certificate2Impl Import(X509Certificate cert, bool disableProvider = false)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D02 RID: 3330 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D02")]
|
||||
[Address(RVA = "0x51C7D0", Offset = "0x51B5D0", VA = "0x18051C7D0")]
|
||||
internal static X509ChainImpl CreateChainImpl(bool useMachineContext)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D03 RID: 3331 RVA: 0x00006BE8 File Offset: 0x00004DE8
|
||||
[Token(Token = "0x6000D03")]
|
||||
[Address(RVA = "0x51CB70", Offset = "0x51B970", VA = "0x18051CB70")]
|
||||
public static bool IsValid(X509ChainImpl impl)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06000D04 RID: 3332 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D04")]
|
||||
[Address(RVA = "0x51CB90", Offset = "0x51B990", VA = "0x18051CB90")]
|
||||
internal static void ThrowIfContextInvalid(X509ChainImpl impl)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D05 RID: 3333 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D05")]
|
||||
[Address(RVA = "0x51C8E0", Offset = "0x51B6E0", VA = "0x18051C8E0")]
|
||||
internal static Exception GetInvalidChainContextException()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x020001F4 RID: 500
|
||||
[Token(Token = "0x20001F4")]
|
||||
private class MyNativeHelper : INativeCertificateHelper
|
||||
{
|
||||
// Token: 0x06000D06 RID: 3334 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D06")]
|
||||
[Address(RVA = "0x5035E0", Offset = "0x5023E0", VA = "0x1805035E0", Slot = "4")]
|
||||
public X509CertificateImpl Import(X509Certificate cert)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D07 RID: 3335 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D07")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public MyNativeHelper()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines the usage of a key contained within an X.509 certificate. This class cannot be inherited.</summary>
|
||||
// Token: 0x020001F5 RID: 501
|
||||
[Token(Token = "0x20001F5")]
|
||||
public sealed class X509KeyUsageExtension : X509Extension
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class.</summary>
|
||||
// Token: 0x06000D08 RID: 3336 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D08")]
|
||||
[Address(RVA = "0x51D6A0", Offset = "0x51C4A0", VA = "0x18051D6A0")]
|
||||
public X509KeyUsageExtension()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
|
||||
/// <param name="encodedKeyUsage">The encoded data to use to create the extension.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000D09 RID: 3337 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D09")]
|
||||
[Address(RVA = "0x51D510", Offset = "0x51C310", VA = "0x18051D510")]
|
||||
public X509KeyUsageExtension(AsnEncodedData encodedKeyUsage, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using the specified <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" /> value and a value that identifies whether the extension is critical.</summary>
|
||||
/// <param name="keyUsages">One of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" /> values that describes how to use the key.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000D0A RID: 3338 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D0A")]
|
||||
[Address(RVA = "0x51D5D0", Offset = "0x51C3D0", VA = "0x18051D5D0")]
|
||||
public X509KeyUsageExtension(X509KeyUsageFlags keyUsages, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the key usage flag associated with the certificate.</summary>
|
||||
/// <returns>One of the <see cref="P:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension.KeyUsages" /> values.</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
|
||||
// Token: 0x1700026F RID: 623
|
||||
// (get) Token: 0x06000D0B RID: 3339 RVA: 0x00006C00 File Offset: 0x00004E00
|
||||
[Token(Token = "0x1700026F")]
|
||||
public X509KeyUsageFlags KeyUsages
|
||||
{
|
||||
[Token(Token = "0x6000D0B")]
|
||||
[Address(RVA = "0x51D730", Offset = "0x51C530", VA = "0x18051D730")]
|
||||
get
|
||||
{
|
||||
return X509KeyUsageFlags.None;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
|
||||
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
|
||||
// Token: 0x06000D0C RID: 3340 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D0C")]
|
||||
[Address(RVA = "0x51CC00", Offset = "0x51BA00", VA = "0x18051CC00", Slot = "4")]
|
||||
public override void CopyFrom(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D0D RID: 3341 RVA: 0x00006C18 File Offset: 0x00004E18
|
||||
[Token(Token = "0x6000D0D")]
|
||||
[Address(RVA = "0x51D0D0", Offset = "0x51BED0", VA = "0x18051D0D0")]
|
||||
internal X509KeyUsageFlags GetValidFlags(X509KeyUsageFlags flags)
|
||||
{
|
||||
return X509KeyUsageFlags.None;
|
||||
}
|
||||
|
||||
// Token: 0x06000D0E RID: 3342 RVA: 0x00006C30 File Offset: 0x00004E30
|
||||
[Token(Token = "0x6000D0E")]
|
||||
[Address(RVA = "0x51CD90", Offset = "0x51BB90", VA = "0x18051CD90")]
|
||||
internal AsnDecodeStatus Decode(byte[] extension)
|
||||
{
|
||||
return AsnDecodeStatus.Ok;
|
||||
}
|
||||
|
||||
// Token: 0x06000D0F RID: 3343 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D0F")]
|
||||
[Address(RVA = "0x51CF10", Offset = "0x51BD10", VA = "0x18051CF10")]
|
||||
internal byte[] Encode()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D10 RID: 3344 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D10")]
|
||||
[Address(RVA = "0x51D0E0", Offset = "0x51BEE0", VA = "0x18051D0E0", Slot = "5")]
|
||||
internal override string ToString(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000704 RID: 1796
|
||||
[Token(Token = "0x4000704")]
|
||||
internal const string oid = "2.5.29.15";
|
||||
|
||||
// Token: 0x04000705 RID: 1797
|
||||
[Token(Token = "0x4000705")]
|
||||
internal const string friendlyName = "Key Usage";
|
||||
|
||||
// Token: 0x04000706 RID: 1798
|
||||
[Token(Token = "0x4000706")]
|
||||
internal const X509KeyUsageFlags all = X509KeyUsageFlags.EncipherOnly | X509KeyUsageFlags.CrlSign | X509KeyUsageFlags.KeyCertSign | X509KeyUsageFlags.KeyAgreement | X509KeyUsageFlags.DataEncipherment | X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.NonRepudiation | X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.DecipherOnly;
|
||||
|
||||
// Token: 0x04000707 RID: 1799
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000707")]
|
||||
private X509KeyUsageFlags _keyUsages;
|
||||
|
||||
// Token: 0x04000708 RID: 1800
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4000708")]
|
||||
private AsnDecodeStatus _status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines how the certificate key can be used. If this value is not defined, the key can be used for any purpose.</summary>
|
||||
// Token: 0x020001D7 RID: 471
|
||||
[Token(Token = "0x20001D7")]
|
||||
[Flags]
|
||||
public enum X509KeyUsageFlags
|
||||
{
|
||||
/// <summary>No key usage parameters.</summary>
|
||||
// Token: 0x040006A5 RID: 1701
|
||||
[Token(Token = "0x40006A5")]
|
||||
None = 0,
|
||||
/// <summary>The key can be used for encryption only.</summary>
|
||||
// Token: 0x040006A6 RID: 1702
|
||||
[Token(Token = "0x40006A6")]
|
||||
EncipherOnly = 1,
|
||||
/// <summary>The key can be used to sign a certificate revocation list (CRL).</summary>
|
||||
// Token: 0x040006A7 RID: 1703
|
||||
[Token(Token = "0x40006A7")]
|
||||
CrlSign = 2,
|
||||
/// <summary>The key can be used to sign certificates.</summary>
|
||||
// Token: 0x040006A8 RID: 1704
|
||||
[Token(Token = "0x40006A8")]
|
||||
KeyCertSign = 4,
|
||||
/// <summary>The key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm.</summary>
|
||||
// Token: 0x040006A9 RID: 1705
|
||||
[Token(Token = "0x40006A9")]
|
||||
KeyAgreement = 8,
|
||||
/// <summary>The key can be used for data encryption.</summary>
|
||||
// Token: 0x040006AA RID: 1706
|
||||
[Token(Token = "0x40006AA")]
|
||||
DataEncipherment = 16,
|
||||
/// <summary>The key can be used for key encryption.</summary>
|
||||
// Token: 0x040006AB RID: 1707
|
||||
[Token(Token = "0x40006AB")]
|
||||
KeyEncipherment = 32,
|
||||
/// <summary>The key can be used for authentication.</summary>
|
||||
// Token: 0x040006AC RID: 1708
|
||||
[Token(Token = "0x40006AC")]
|
||||
NonRepudiation = 64,
|
||||
/// <summary>The key can be used as a digital signature.</summary>
|
||||
// Token: 0x040006AD RID: 1709
|
||||
[Token(Token = "0x40006AD")]
|
||||
DigitalSignature = 128,
|
||||
/// <summary>The key can be used for decryption only.</summary>
|
||||
// Token: 0x040006AE RID: 1710
|
||||
[Token(Token = "0x40006AE")]
|
||||
DecipherOnly = 32768
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Specifies the type of name the X509 certificate contains.</summary>
|
||||
// Token: 0x020001D8 RID: 472
|
||||
[Token(Token = "0x20001D8")]
|
||||
public enum X509NameType
|
||||
{
|
||||
/// <summary>The simple name of a subject or issuer of an X509 certificate.</summary>
|
||||
// Token: 0x040006B0 RID: 1712
|
||||
[Token(Token = "0x40006B0")]
|
||||
SimpleName,
|
||||
/// <summary>The email address of the subject or issuer associated of an X509 certificate.</summary>
|
||||
// Token: 0x040006B1 RID: 1713
|
||||
[Token(Token = "0x40006B1")]
|
||||
EmailName,
|
||||
/// <summary>The UPN name of the subject or issuer of an X509 certificate.</summary>
|
||||
// Token: 0x040006B2 RID: 1714
|
||||
[Token(Token = "0x40006B2")]
|
||||
UpnName,
|
||||
/// <summary>The DNS name associated with the alternative name of either the subject or issuer of an X509 certificate.</summary>
|
||||
// Token: 0x040006B3 RID: 1715
|
||||
[Token(Token = "0x40006B3")]
|
||||
DnsName,
|
||||
/// <summary>The DNS name associated with the alternative name of either the subject or the issuer of an X.509 certificate. This value is equivalent to the <see cref="F:System.Security.Cryptography.X509Certificates.X509NameType.DnsName" /> value.</summary>
|
||||
// Token: 0x040006B4 RID: 1716
|
||||
[Token(Token = "0x40006B4")]
|
||||
DnsFromAlternativeName,
|
||||
/// <summary>The URL address associated with the alternative name of either the subject or issuer of an X509 certificate.</summary>
|
||||
// Token: 0x040006B5 RID: 1717
|
||||
[Token(Token = "0x40006B5")]
|
||||
UrlName
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Specifies which X509 certificates in the chain should be checked for revocation.</summary>
|
||||
// Token: 0x020001D9 RID: 473
|
||||
[Token(Token = "0x20001D9")]
|
||||
public enum X509RevocationFlag
|
||||
{
|
||||
/// <summary>Only the end certificate is checked for revocation.</summary>
|
||||
// Token: 0x040006B7 RID: 1719
|
||||
[Token(Token = "0x40006B7")]
|
||||
EndCertificateOnly,
|
||||
/// <summary>The entire chain of certificates is checked for revocation.</summary>
|
||||
// Token: 0x040006B8 RID: 1720
|
||||
[Token(Token = "0x40006B8")]
|
||||
EntireChain,
|
||||
/// <summary>The entire chain, except the root certificate, is checked for revocation.</summary>
|
||||
// Token: 0x040006B9 RID: 1721
|
||||
[Token(Token = "0x40006B9")]
|
||||
ExcludeRoot
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Specifies the mode used to check for X509 certificate revocation.</summary>
|
||||
// Token: 0x020001DA RID: 474
|
||||
[Token(Token = "0x20001DA")]
|
||||
public enum X509RevocationMode
|
||||
{
|
||||
/// <summary>No revocation check is performed on the certificate.</summary>
|
||||
// Token: 0x040006BB RID: 1723
|
||||
[Token(Token = "0x40006BB")]
|
||||
NoCheck,
|
||||
/// <summary>A revocation check is made using an online certificate revocation list (CRL).</summary>
|
||||
// Token: 0x040006BC RID: 1724
|
||||
[Token(Token = "0x40006BC")]
|
||||
Online,
|
||||
/// <summary>A revocation check is made using a cached certificate revocation list (CRL).</summary>
|
||||
// Token: 0x040006BD RID: 1725
|
||||
[Token(Token = "0x40006BD")]
|
||||
Offline
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines a string that identifies a certificate's subject key identifier (SKI). This class cannot be inherited.</summary>
|
||||
// Token: 0x020001F6 RID: 502
|
||||
[Token(Token = "0x20001F6")]
|
||||
public sealed class X509SubjectKeyIdentifierExtension : X509Extension
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class.</summary>
|
||||
// Token: 0x06000D11 RID: 3345 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D11")]
|
||||
[Address(RVA = "0x51E3E0", Offset = "0x51D1E0", VA = "0x18051E3E0")]
|
||||
public X509SubjectKeyIdentifierExtension()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using encoded data and a value that identifies whether the extension is critical.</summary>
|
||||
/// <param name="encodedSubjectKeyIdentifier">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to use to create the extension.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000D12 RID: 3346 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D12")]
|
||||
[Address(RVA = "0x51E0B0", Offset = "0x51CEB0", VA = "0x18051E0B0")]
|
||||
public X509SubjectKeyIdentifierExtension(AsnEncodedData encodedSubjectKeyIdentifier, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a byte array and a value that identifies whether the extension is critical.</summary>
|
||||
/// <param name="subjectKeyIdentifier">A byte array that represents data to use to create the extension.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000D13 RID: 3347 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D13")]
|
||||
[Address(RVA = "0x51DF50", Offset = "0x51CD50", VA = "0x18051DF50")]
|
||||
public X509SubjectKeyIdentifierExtension(byte[] subjectKeyIdentifier, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a string and a value that identifies whether the extension is critical.</summary>
|
||||
/// <param name="subjectKeyIdentifier">A string, encoded in hexadecimal format, that represents the subject key identifier (SKI) for a certificate.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000D14 RID: 3348 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D14")]
|
||||
[Address(RVA = "0x51E170", Offset = "0x51CF70", VA = "0x18051E170")]
|
||||
public X509SubjectKeyIdentifierExtension(string subjectKeyIdentifier, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a public key and a value indicating whether the extension is critical.</summary>
|
||||
/// <param name="key">A <see cref="T:System.Security.Cryptography.X509Certificates.PublicKey" /> object to create a subject key identifier (SKI) from.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000D15 RID: 3349 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D15")]
|
||||
[Address(RVA = "0x51E3C0", Offset = "0x51D1C0", VA = "0x18051E3C0")]
|
||||
public X509SubjectKeyIdentifierExtension(PublicKey key, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a public key, a hash algorithm identifier, and a value indicating whether the extension is critical.</summary>
|
||||
/// <param name="key">A <see cref="T:System.Security.Cryptography.X509Certificates.PublicKey" /> object to create a subject key identifier (SKI) from.</param>
|
||||
/// <param name="algorithm">One of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierHashAlgorithm" /> values that identifies which hash algorithm to use.</param>
|
||||
/// <param name="critical">
|
||||
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06000D16 RID: 3350 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D16")]
|
||||
[Address(RVA = "0x51E470", Offset = "0x51D270", VA = "0x18051E470")]
|
||||
public X509SubjectKeyIdentifierExtension(PublicKey key, X509SubjectKeyIdentifierHashAlgorithm algorithm, bool critical)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets a string that represents the subject key identifier (SKI) for a certificate.</summary>
|
||||
/// <returns>A string, encoded in hexadecimal format, that represents the subject key identifier (SKI).</returns>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
|
||||
// Token: 0x17000270 RID: 624
|
||||
// (get) Token: 0x06000D17 RID: 3351 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000270")]
|
||||
public string SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x6000D17")]
|
||||
[Address(RVA = "0x51E800", Offset = "0x51D600", VA = "0x18051E800")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Creates a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class by copying information from encoded data.</summary>
|
||||
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to use to create the extension.</param>
|
||||
// Token: 0x06000D18 RID: 3352 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D18")]
|
||||
[Address(RVA = "0x51D7A0", Offset = "0x51C5A0", VA = "0x18051D7A0", Slot = "4")]
|
||||
public override void CopyFrom(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D19 RID: 3353 RVA: 0x00006C48 File Offset: 0x00004E48
|
||||
[Token(Token = "0x6000D19")]
|
||||
[Address(RVA = "0x51DB00", Offset = "0x51C900", VA = "0x18051DB00")]
|
||||
internal static byte FromHexChar(char c)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000D1A RID: 3354 RVA: 0x00006C60 File Offset: 0x00004E60
|
||||
[Token(Token = "0x6000D1A")]
|
||||
[Address(RVA = "0x51DB30", Offset = "0x51C930", VA = "0x18051DB30")]
|
||||
internal static byte FromHexChars(char c1, char c2)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000D1B RID: 3355 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D1B")]
|
||||
[Address(RVA = "0x51DBB0", Offset = "0x51C9B0", VA = "0x18051DBB0")]
|
||||
internal static byte[] FromHex(string hex)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D1C RID: 3356 RVA: 0x00006C78 File Offset: 0x00004E78
|
||||
[Token(Token = "0x6000D1C")]
|
||||
[Address(RVA = "0x51D930", Offset = "0x51C730", VA = "0x18051D930")]
|
||||
internal AsnDecodeStatus Decode(byte[] extension)
|
||||
{
|
||||
return AsnDecodeStatus.Ok;
|
||||
}
|
||||
|
||||
// Token: 0x06000D1D RID: 3357 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D1D")]
|
||||
[Address(RVA = "0x51DA80", Offset = "0x51C880", VA = "0x18051DA80")]
|
||||
internal byte[] Encode()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D1E RID: 3358 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D1E")]
|
||||
[Address(RVA = "0x51DD30", Offset = "0x51CB30", VA = "0x18051DD30", Slot = "5")]
|
||||
internal override string ToString(bool multiLine)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000709 RID: 1801
|
||||
[Token(Token = "0x4000709")]
|
||||
internal const string oid = "2.5.29.14";
|
||||
|
||||
// Token: 0x0400070A RID: 1802
|
||||
[Token(Token = "0x400070A")]
|
||||
internal const string friendlyName = "Subject Key Identifier";
|
||||
|
||||
// Token: 0x0400070B RID: 1803
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400070B")]
|
||||
private byte[] _subjectKeyIdentifier;
|
||||
|
||||
// Token: 0x0400070C RID: 1804
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400070C")]
|
||||
private string _ski;
|
||||
|
||||
// Token: 0x0400070D RID: 1805
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400070D")]
|
||||
private AsnDecodeStatus _status;
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Defines the type of hash algorithm to use with the <see cref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class.</summary>
|
||||
// Token: 0x020001DB RID: 475
|
||||
[Token(Token = "0x20001DB")]
|
||||
public enum X509SubjectKeyIdentifierHashAlgorithm
|
||||
{
|
||||
/// <summary>The SKI is composed of the 160-bit SHA-1 hash of the value of the public key (excluding the tag, length, and number of unused bits).</summary>
|
||||
// Token: 0x040006BF RID: 1727
|
||||
[Token(Token = "0x40006BF")]
|
||||
Sha1,
|
||||
/// <summary>The SKI is composed of a four-bit type field with the value 0100, followed by the least significant 60 bits of the SHA-1 hash of the value of the public key (excluding the tag, length, and number of unused bit string bits)</summary>
|
||||
// Token: 0x040006C0 RID: 1728
|
||||
[Token(Token = "0x40006C0")]
|
||||
ShortSha1,
|
||||
/// <summary>The subject key identifier (SKI) is composed of a 160-bit SHA-1 hash of the encoded public key (including the tag, length, and number of unused bits).</summary>
|
||||
// Token: 0x040006C1 RID: 1729
|
||||
[Token(Token = "0x40006C1")]
|
||||
CapiSha1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
// Token: 0x020001DD RID: 477
|
||||
[Token(Token = "0x20001DD")]
|
||||
internal class X509Utils
|
||||
{
|
||||
// Token: 0x06000C64 RID: 3172 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C64")]
|
||||
[Address(RVA = "0x51E8D0", Offset = "0x51D6D0", VA = "0x18051E8D0")]
|
||||
internal static string FindOidInfo(uint keyType, string keyValue, OidGroup oidGroup)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000C65 RID: 3173 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000C65")]
|
||||
[Address(RVA = "0x51E880", Offset = "0x51D680", VA = "0x18051E880")]
|
||||
internal static string FindOidInfoWithFallback(uint key, string value, OidGroup group)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography.X509Certificates
|
||||
{
|
||||
/// <summary>Specifies conditions under which verification of certificates in the X509 chain should be conducted.</summary>
|
||||
// Token: 0x020001DC RID: 476
|
||||
[Token(Token = "0x20001DC")]
|
||||
[Flags]
|
||||
public enum X509VerificationFlags
|
||||
{
|
||||
/// <summary>No flags pertaining to verification are included.</summary>
|
||||
// Token: 0x040006C3 RID: 1731
|
||||
[Token(Token = "0x40006C3")]
|
||||
NoFlag = 0,
|
||||
/// <summary>Ignore certificates in the chain that are not valid either because they have expired or they are not yet in effect when determining certificate validity.</summary>
|
||||
// Token: 0x040006C4 RID: 1732
|
||||
[Token(Token = "0x40006C4")]
|
||||
IgnoreNotTimeValid = 1,
|
||||
/// <summary>Ignore that the certificate trust list (CTL) is not valid, for reasons such as the CTL has expired, when determining certificate verification.</summary>
|
||||
// Token: 0x040006C5 RID: 1733
|
||||
[Token(Token = "0x40006C5")]
|
||||
IgnoreCtlNotTimeValid = 2,
|
||||
/// <summary>Ignore that the CA (certificate authority) certificate and the issued certificate have validity periods that are not nested when verifying the certificate. For example, the CA cert can be valid from January 1 to December 1 and the issued certificate from January 2 to December 2, which would mean the validity periods are not nested.</summary>
|
||||
// Token: 0x040006C6 RID: 1734
|
||||
[Token(Token = "0x40006C6")]
|
||||
IgnoreNotTimeNested = 4,
|
||||
/// <summary>Ignore that the basic constraints are not valid when determining certificate verification.</summary>
|
||||
// Token: 0x040006C7 RID: 1735
|
||||
[Token(Token = "0x40006C7")]
|
||||
IgnoreInvalidBasicConstraints = 8,
|
||||
/// <summary>Ignore that the chain cannot be verified due to an unknown certificate authority (CA).</summary>
|
||||
// Token: 0x040006C8 RID: 1736
|
||||
[Token(Token = "0x40006C8")]
|
||||
AllowUnknownCertificateAuthority = 16,
|
||||
/// <summary>Ignore that the certificate was not issued for the current use when determining certificate verification.</summary>
|
||||
// Token: 0x040006C9 RID: 1737
|
||||
[Token(Token = "0x40006C9")]
|
||||
IgnoreWrongUsage = 32,
|
||||
/// <summary>Ignore that the certificate has an invalid name when determining certificate verification.</summary>
|
||||
// Token: 0x040006CA RID: 1738
|
||||
[Token(Token = "0x40006CA")]
|
||||
IgnoreInvalidName = 64,
|
||||
/// <summary>Ignore that the certificate has invalid policy when determining certificate verification.</summary>
|
||||
// Token: 0x040006CB RID: 1739
|
||||
[Token(Token = "0x40006CB")]
|
||||
IgnoreInvalidPolicy = 128,
|
||||
/// <summary>Ignore that the end certificate (the user certificate) revocation is unknown when determining certificate verification.</summary>
|
||||
// Token: 0x040006CC RID: 1740
|
||||
[Token(Token = "0x40006CC")]
|
||||
IgnoreEndRevocationUnknown = 256,
|
||||
/// <summary>Ignore that the certificate trust list (CTL) signer revocation is unknown when determining certificate verification.</summary>
|
||||
// Token: 0x040006CD RID: 1741
|
||||
[Token(Token = "0x40006CD")]
|
||||
IgnoreCtlSignerRevocationUnknown = 512,
|
||||
/// <summary>Ignore that the certificate authority revocation is unknown when determining certificate verification.</summary>
|
||||
// Token: 0x040006CE RID: 1742
|
||||
[Token(Token = "0x40006CE")]
|
||||
IgnoreCertificateAuthorityRevocationUnknown = 1024,
|
||||
/// <summary>Ignore that the root revocation is unknown when determining certificate verification.</summary>
|
||||
// Token: 0x040006CF RID: 1743
|
||||
[Token(Token = "0x40006CF")]
|
||||
IgnoreRootRevocationUnknown = 2048,
|
||||
/// <summary>All flags pertaining to verification are included.</summary>
|
||||
// Token: 0x040006D0 RID: 1744
|
||||
[Token(Token = "0x40006D0")]
|
||||
AllFlags = 4095
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user