diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-07-26 10:21:49 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-07-26 10:21:49 +0300 |
commit | 7a7813863589464e22255c910ded2c1ed89189ab (patch) | |
tree | 73c237fcac76dfed204f94ad4521b2d0c90bebfe | |
parent | d6d62d84018b1935566957495b68c88f801e6af4 (diff) |
Apply changes from https://github.com/mono/mono/pull/9650 to API snapshot
-rw-r--r-- | profiles/monodroid/mscorlib.cs | 31 | ||||
-rw-r--r-- | profiles/monotouch/mscorlib.cs | 31 | ||||
-rw-r--r-- | profiles/net_4_x/mscorlib.cs | 31 |
3 files changed, 30 insertions, 63 deletions
diff --git a/profiles/monodroid/mscorlib.cs b/profiles/monodroid/mscorlib.cs index e2be36e..7ff1fce 100644 --- a/profiles/monodroid/mscorlib.cs +++ b/profiles/monodroid/mscorlib.cs @@ -22087,16 +22087,14 @@ namespace System.Security.Cryptography } namespace System.Security.Cryptography.X509Certificates { - [System.MonoTODOAttribute("X509ContentType.SerializedCert isn't supported (anywhere in the class)")] - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public partial class X509Certificate : System.IDisposable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable { public X509Certificate() { } public X509Certificate(byte[] data) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(byte[] rawData, System.Security.SecureString password) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(byte[] rawData, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } public X509Certificate(byte[] rawData, string password) { } public X509Certificate(byte[] rawData, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } @@ -22104,45 +22102,40 @@ namespace System.Security.Cryptography.X509Certificates public X509Certificate(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public X509Certificate(System.Security.Cryptography.X509Certificates.X509Certificate cert) { } public X509Certificate(string fileName) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(string fileName, System.Security.SecureString password) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(string fileName, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } public X509Certificate(string fileName, string password) { } public X509Certificate(string fileName, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public System.IntPtr Handle { get { throw null; } } public string Issuer { get { throw null; } } public string Subject { get { throw null; } } public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromCertFile(string filename) { throw null; } - [System.MonoTODOAttribute("Incomplete - minimal validation in this version")] public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile(string filename) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public override bool Equals(object obj) { throw null; } public virtual bool Equals(System.Security.Cryptography.X509Certificates.X509Certificate other) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported")] - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported. SecureString support is incomplete.")] + [System.CLSCompliantAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, System.Security.SecureString password) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported")] - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, string password) { throw null; } protected static string FormatDate(System.DateTime date) { throw null; } public virtual byte[] GetCertHash() { throw null; } + public virtual byte[] GetCertHash(System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual string GetCertHashString() { throw null; } + public virtual string GetCertHashString(System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual string GetEffectiveDateString() { throw null; } public virtual string GetExpirationDateString() { throw null; } public virtual string GetFormat() { throw null; } public override int GetHashCode() { throw null; } - [System.ObsoleteAttribute("Use the Issuer property.")] + [System.ObsoleteAttribute("This method has been deprecated. Please use the Issuer property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public virtual string GetIssuerName() { throw null; } public virtual string GetKeyAlgorithm() { throw null; } public virtual byte[] GetKeyAlgorithmParameters() { throw null; } public virtual string GetKeyAlgorithmParametersString() { throw null; } - [System.ObsoleteAttribute("Use the Subject property.")] + [System.ObsoleteAttribute("This method has been deprecated. Please use the Subject property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public virtual string GetName() { throw null; } public virtual byte[] GetPublicKey() { throw null; } public virtual string GetPublicKeyString() { throw null; } @@ -22152,24 +22145,20 @@ namespace System.Security.Cryptography.X509Certificates public virtual string GetSerialNumberString() { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(byte[] rawData) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] public virtual void Import(byte[] rawData, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.MonoTODOAttribute("missing KeyStorageFlags support")] [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(byte[] rawData, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(string fileName) { } - [System.MonoTODOAttribute("SecureString support is incomplete, missing KeyStorageFlags support")] public virtual void Import(string fileName, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.MonoTODOAttribute("missing KeyStorageFlags support")] [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(string fileName, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Reset() { } void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object sender) { } void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public override string ToString() { throw null; } public virtual string ToString(bool fVerbose) { throw null; } + public virtual bool TryGetCertHash(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Span<byte> destination, out int bytesWritten) { bytesWritten = default(int); throw null; } } public enum X509ContentType { diff --git a/profiles/monotouch/mscorlib.cs b/profiles/monotouch/mscorlib.cs index 80a707e..bd579ec 100644 --- a/profiles/monotouch/mscorlib.cs +++ b/profiles/monotouch/mscorlib.cs @@ -20826,16 +20826,14 @@ namespace System.Security.Cryptography } namespace System.Security.Cryptography.X509Certificates { - [System.MonoTODOAttribute("X509ContentType.SerializedCert isn't supported (anywhere in the class)")] - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public partial class X509Certificate : System.IDisposable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable { public X509Certificate() { } public X509Certificate(byte[] data) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(byte[] rawData, System.Security.SecureString password) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(byte[] rawData, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } public X509Certificate(byte[] rawData, string password) { } public X509Certificate(byte[] rawData, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } @@ -20843,45 +20841,40 @@ namespace System.Security.Cryptography.X509Certificates public X509Certificate(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public X509Certificate(System.Security.Cryptography.X509Certificates.X509Certificate cert) { } public X509Certificate(string fileName) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(string fileName, System.Security.SecureString password) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(string fileName, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } public X509Certificate(string fileName, string password) { } public X509Certificate(string fileName, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public System.IntPtr Handle { get { throw null; } } public string Issuer { get { throw null; } } public string Subject { get { throw null; } } public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromCertFile(string filename) { throw null; } - [System.MonoTODOAttribute("Incomplete - minimal validation in this version")] public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile(string filename) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public override bool Equals(object obj) { throw null; } public virtual bool Equals(System.Security.Cryptography.X509Certificates.X509Certificate other) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported")] - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported. SecureString support is incomplete.")] + [System.CLSCompliantAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, System.Security.SecureString password) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported")] - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, string password) { throw null; } protected static string FormatDate(System.DateTime date) { throw null; } public virtual byte[] GetCertHash() { throw null; } + public virtual byte[] GetCertHash(System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual string GetCertHashString() { throw null; } + public virtual string GetCertHashString(System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual string GetEffectiveDateString() { throw null; } public virtual string GetExpirationDateString() { throw null; } public virtual string GetFormat() { throw null; } public override int GetHashCode() { throw null; } - [System.ObsoleteAttribute("Use the Issuer property.")] + [System.ObsoleteAttribute("This method has been deprecated. Please use the Issuer property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public virtual string GetIssuerName() { throw null; } public virtual string GetKeyAlgorithm() { throw null; } public virtual byte[] GetKeyAlgorithmParameters() { throw null; } public virtual string GetKeyAlgorithmParametersString() { throw null; } - [System.ObsoleteAttribute("Use the Subject property.")] + [System.ObsoleteAttribute("This method has been deprecated. Please use the Subject property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public virtual string GetName() { throw null; } public virtual byte[] GetPublicKey() { throw null; } public virtual string GetPublicKeyString() { throw null; } @@ -20891,24 +20884,20 @@ namespace System.Security.Cryptography.X509Certificates public virtual string GetSerialNumberString() { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(byte[] rawData) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] public virtual void Import(byte[] rawData, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.MonoTODOAttribute("missing KeyStorageFlags support")] [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(byte[] rawData, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(string fileName) { } - [System.MonoTODOAttribute("SecureString support is incomplete, missing KeyStorageFlags support")] public virtual void Import(string fileName, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.MonoTODOAttribute("missing KeyStorageFlags support")] [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(string fileName, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Reset() { } void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object sender) { } void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public override string ToString() { throw null; } public virtual string ToString(bool fVerbose) { throw null; } + public virtual bool TryGetCertHash(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Span<byte> destination, out int bytesWritten) { bytesWritten = default(int); throw null; } } public enum X509ContentType { diff --git a/profiles/net_4_x/mscorlib.cs b/profiles/net_4_x/mscorlib.cs index 5c90cea..2a2933d 100644 --- a/profiles/net_4_x/mscorlib.cs +++ b/profiles/net_4_x/mscorlib.cs @@ -22192,16 +22192,14 @@ namespace System.Security.Cryptography } namespace System.Security.Cryptography.X509Certificates { - [System.MonoTODOAttribute("X509ContentType.SerializedCert isn't supported (anywhere in the class)")] - [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public partial class X509Certificate : System.IDisposable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable { public X509Certificate() { } public X509Certificate(byte[] data) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(byte[] rawData, System.Security.SecureString password) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(byte[] rawData, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } public X509Certificate(byte[] rawData, string password) { } public X509Certificate(byte[] rawData, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } @@ -22209,45 +22207,40 @@ namespace System.Security.Cryptography.X509Certificates public X509Certificate(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public X509Certificate(System.Security.Cryptography.X509Certificates.X509Certificate cert) { } public X509Certificate(string fileName) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(string fileName, System.Security.SecureString password) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] + [System.CLSCompliantAttribute(false)] public X509Certificate(string fileName, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } public X509Certificate(string fileName, string password) { } public X509Certificate(string fileName, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public System.IntPtr Handle { get { throw null; } } public string Issuer { get { throw null; } } public string Subject { get { throw null; } } public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromCertFile(string filename) { throw null; } - [System.MonoTODOAttribute("Incomplete - minimal validation in this version")] public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile(string filename) { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public override bool Equals(object obj) { throw null; } public virtual bool Equals(System.Security.Cryptography.X509Certificates.X509Certificate other) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported")] - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported. SecureString support is incomplete.")] + [System.CLSCompliantAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, System.Security.SecureString password) { throw null; } - [System.MonoTODOAttribute("X509ContentType.Pfx/Pkcs12 and SerializedCert are not supported")] - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, string password) { throw null; } protected static string FormatDate(System.DateTime date) { throw null; } public virtual byte[] GetCertHash() { throw null; } + public virtual byte[] GetCertHash(System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual string GetCertHashString() { throw null; } + public virtual string GetCertHashString(System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; } public virtual string GetEffectiveDateString() { throw null; } public virtual string GetExpirationDateString() { throw null; } public virtual string GetFormat() { throw null; } public override int GetHashCode() { throw null; } - [System.ObsoleteAttribute("Use the Issuer property.")] + [System.ObsoleteAttribute("This method has been deprecated. Please use the Issuer property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public virtual string GetIssuerName() { throw null; } public virtual string GetKeyAlgorithm() { throw null; } public virtual byte[] GetKeyAlgorithmParameters() { throw null; } public virtual string GetKeyAlgorithmParametersString() { throw null; } - [System.ObsoleteAttribute("Use the Subject property.")] + [System.ObsoleteAttribute("This method has been deprecated. Please use the Subject property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public virtual string GetName() { throw null; } public virtual byte[] GetPublicKey() { throw null; } public virtual string GetPublicKeyString() { throw null; } @@ -22257,24 +22250,20 @@ namespace System.Security.Cryptography.X509Certificates public virtual string GetSerialNumberString() { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(byte[] rawData) { } - [System.MonoTODOAttribute("SecureString support is incomplete")] public virtual void Import(byte[] rawData, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.MonoTODOAttribute("missing KeyStorageFlags support")] [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(byte[] rawData, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(string fileName) { } - [System.MonoTODOAttribute("SecureString support is incomplete, missing KeyStorageFlags support")] public virtual void Import(string fileName, System.Security.SecureString password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.MonoTODOAttribute("missing KeyStorageFlags support")] [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Import(string fileName, string password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) { } - [System.Runtime.InteropServices.ComVisibleAttribute(false)] public virtual void Reset() { } void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object sender) { } void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public override string ToString() { throw null; } public virtual string ToString(bool fVerbose) { throw null; } + public virtual bool TryGetCertHash(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Span<byte> destination, out int bytesWritten) { bytesWritten = default(int); throw null; } } public enum X509ContentType { |