Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2019-03-06 10:55:16 +0300
committerMarek Safar <marek.safar@gmail.com>2019-03-06 10:55:16 +0300
commite42bf95d14b7ea16abcdff99d769e9f250ec2fd0 (patch)
treee98658bd49b77b58df3c021199fa2ffa9ca8b228 /mcs/class/System
parentb31a445e85523a9a41b0975203f7ccd1d6f185a8 (diff)
NS2.1 Sync new changes, mobile profiles (#13198)
* Add RuntimeHelpers.GetSubArray. Add missing types to NS's TypeForwarders.cs * more NS2.1 changes * ios changes * Update Decimal (it's now readonly struct) * fix mcs * add ROMC.cs * Fix tests, finish monodroid profile * Make SRE-not-supported NS2.1 compatible * Make monotouch_tv and watch NS2.1 compatible * make some SRE types more NS21 compatible (non-abstract now) * bump corefx * More NS21 fixes * bump coreclr acceptance tests * Bump API snapshot submodule * [csproj] Update project files
Diffstat (limited to 'mcs/class/System')
-rw-r--r--mcs/class/System/System.IO/FileSystemWatcher.DefaultEventAttribute.cs16
-rw-r--r--mcs/class/System/System.Net.Security/SslApplicationProtocol.pns.cs24
-rw-r--r--mcs/class/System/System.Net.Security/SslClientAuthenticationOptions.pns.cs20
-rw-r--r--mcs/class/System/System.Net.Security/SslServerAuthenticationOptions.pns.cs20
-rw-r--r--mcs/class/System/System.Net.Security/SslStream.platformnotsupported.cs323
-rw-r--r--mcs/class/System/System.Net/HttpWebResponse.cs2
-rw-r--r--mcs/class/System/System.Net/HttpWebResponse.platformnotsupported.cs2
-rw-r--r--mcs/class/System/System.csproj12
-rw-r--r--mcs/class/System/mobile_System.dll.sources1
-rw-r--r--mcs/class/System/monotouch_watch_System.dll.sources3
10 files changed, 167 insertions, 256 deletions
diff --git a/mcs/class/System/System.IO/FileSystemWatcher.DefaultEventAttribute.cs b/mcs/class/System/System.IO/FileSystemWatcher.DefaultEventAttribute.cs
new file mode 100644
index 00000000000..fbfd54d6137
--- /dev/null
+++ b/mcs/class/System/System.IO/FileSystemWatcher.DefaultEventAttribute.cs
@@ -0,0 +1,16 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+#if !MOBILE
+namespace System.IO.CoreFX
+#else
+namespace System.IO
+#endif
+{
+ // Add DefaultEventAdttribute for NS2.1 support
+ [System.ComponentModel.DefaultEventAttribute("Changed")]
+ public partial class FileSystemWatcher
+ {
+ }
+}
diff --git a/mcs/class/System/System.Net.Security/SslApplicationProtocol.pns.cs b/mcs/class/System/System.Net.Security/SslApplicationProtocol.pns.cs
new file mode 100644
index 00000000000..59a525135f3
--- /dev/null
+++ b/mcs/class/System/System.Net.Security/SslApplicationProtocol.pns.cs
@@ -0,0 +1,24 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace System.Net.Security
+{
+ public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string hostName);
+
+ public readonly partial struct SslApplicationProtocol : System.IEquatable<System.Net.Security.SslApplicationProtocol>
+ {
+ private readonly object _dummy;
+ public static readonly System.Net.Security.SslApplicationProtocol Http11;
+ public static readonly System.Net.Security.SslApplicationProtocol Http2;
+ public SslApplicationProtocol(byte[] protocol) { throw new PlatformNotSupportedException(); }
+ public SslApplicationProtocol(string protocol) { throw new PlatformNotSupportedException(); }
+ public System.ReadOnlyMemory<byte> Protocol { get { throw new PlatformNotSupportedException(); } }
+ public bool Equals(System.Net.Security.SslApplicationProtocol other) { throw new PlatformNotSupportedException(); }
+ public override bool Equals(object obj) { throw new PlatformNotSupportedException(); }
+ public override int GetHashCode() { throw new PlatformNotSupportedException(); }
+ public static bool operator ==(System.Net.Security.SslApplicationProtocol left, System.Net.Security.SslApplicationProtocol right) { throw new PlatformNotSupportedException(); }
+ public static bool operator !=(System.Net.Security.SslApplicationProtocol left, System.Net.Security.SslApplicationProtocol right) { throw new PlatformNotSupportedException(); }
+ public override string ToString() { throw new PlatformNotSupportedException(); }
+ }
+} \ No newline at end of file
diff --git a/mcs/class/System/System.Net.Security/SslClientAuthenticationOptions.pns.cs b/mcs/class/System/System.Net.Security/SslClientAuthenticationOptions.pns.cs
new file mode 100644
index 00000000000..90ef061f2dd
--- /dev/null
+++ b/mcs/class/System/System.Net.Security/SslClientAuthenticationOptions.pns.cs
@@ -0,0 +1,20 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace System.Net.Security
+{
+ public partial class SslClientAuthenticationOptions
+ {
+ public SslClientAuthenticationOptions() => throw new PlatformNotSupportedException();
+ public bool AllowRenegotiation { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Collections.Generic.List<System.Net.Security.SslApplicationProtocol> ApplicationProtocols { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Security.Cryptography.X509Certificates.X509RevocationMode CertificateRevocationCheckMode { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Security.Authentication.SslProtocols EnabledSslProtocols { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Net.Security.EncryptionPolicy EncryptionPolicy { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Net.Security.LocalCertificateSelectionCallback LocalCertificateSelectionCallback { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Net.Security.RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get { throw new PlatformNotSupportedException(); } set { } }
+ public string TargetHost { get { throw new PlatformNotSupportedException(); } set { } }
+ }
+} \ No newline at end of file
diff --git a/mcs/class/System/System.Net.Security/SslServerAuthenticationOptions.pns.cs b/mcs/class/System/System.Net.Security/SslServerAuthenticationOptions.pns.cs
new file mode 100644
index 00000000000..491251f3b58
--- /dev/null
+++ b/mcs/class/System/System.Net.Security/SslServerAuthenticationOptions.pns.cs
@@ -0,0 +1,20 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace System.Net.Security
+{
+ public partial class SslServerAuthenticationOptions
+ {
+ public SslServerAuthenticationOptions() => throw new PlatformNotSupportedException();
+ public bool AllowRenegotiation { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Collections.Generic.List<System.Net.Security.SslApplicationProtocol> ApplicationProtocols { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Security.Cryptography.X509Certificates.X509RevocationMode CertificateRevocationCheckMode { get { throw new PlatformNotSupportedException(); } set { } }
+ public bool ClientCertificateRequired { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Security.Authentication.SslProtocols EnabledSslProtocols { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Net.Security.EncryptionPolicy EncryptionPolicy { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Net.Security.RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificate { get { throw new PlatformNotSupportedException(); } set { } }
+ public System.Net.Security.ServerCertificateSelectionCallback ServerCertificateSelectionCallback { get { throw new PlatformNotSupportedException(); } set { } }
+ }
+} \ No newline at end of file
diff --git a/mcs/class/System/System.Net.Security/SslStream.platformnotsupported.cs b/mcs/class/System/System.Net.Security/SslStream.platformnotsupported.cs
index 1c2a4167301..e04db3933df 100644
--- a/mcs/class/System/System.Net.Security/SslStream.platformnotsupported.cs
+++ b/mcs/class/System/System.Net.Security/SslStream.platformnotsupported.cs
@@ -48,262 +48,73 @@ namespace System.Net.Security
X509Certificate remoteCertificate,
string[] acceptableIssuers);
- public class SslStream : AuthenticatedStream
+ public partial class SslStream : System.Net.Security.AuthenticatedStream
{
- const string EXCEPTION_MESSAGE = "System.Net.Security.SslStream is not supported on the current platform.";
-
- public SslStream (Stream innerStream)
- : this (innerStream, false)
- {
- }
-
- public SslStream (Stream innerStream, bool leaveInnerStreamOpen)
- : base (innerStream, leaveInnerStreamOpen)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback)
- : this (innerStream, leaveInnerStreamOpen)
- {
- }
-
- public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback)
- : this (innerStream, leaveInnerStreamOpen)
- {
- }
-
- public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy)
- : this (innerStream, leaveInnerStreamOpen)
- {
- }
-
- public virtual void AuthenticateAsClient (string targetHost)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual void AuthenticateAsClient (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual IAsyncResult BeginAuthenticateAsClient (string targetHost, AsyncCallback asyncCallback, object asyncState)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual IAsyncResult BeginAuthenticateAsClient (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual void EndAuthenticateAsClient (IAsyncResult asyncResult)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual void AuthenticateAsServer (X509Certificate serverCertificate)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual void AuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual IAsyncResult BeginAuthenticateAsServer (X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual IAsyncResult BeginAuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual void EndAuthenticateAsServer (IAsyncResult asyncResult)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public TransportContext TransportContext {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual Task AuthenticateAsClientAsync (string targetHost)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual Task AuthenticateAsClientAsync (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual Task AuthenticateAsServerAsync (X509Certificate serverCertificate)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual Task AuthenticateAsServerAsync (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public virtual Task ShutdownAsync ()
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override bool IsAuthenticated {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool IsMutuallyAuthenticated {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool IsEncrypted {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool IsSigned {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool IsServer {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual SslProtocols SslProtocol {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual bool CheckCertRevocationStatus {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual X509Certificate LocalCertificate {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual X509Certificate RemoteCertificate {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual CipherAlgorithmType CipherAlgorithm {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual int CipherStrength {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual HashAlgorithmType HashAlgorithm {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual int HashStrength {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual ExchangeAlgorithmType KeyExchangeAlgorithm {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public virtual int KeyExchangeStrength {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool CanSeek {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool CanRead {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool CanTimeout {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override bool CanWrite {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override int ReadTimeout {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override int WriteTimeout {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override long Length {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override long Position {
- get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
- }
-
- public override void SetLength (long value)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override long Seek (long offset, SeekOrigin origin)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override void Flush ()
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- protected override void Dispose (bool disposing)
- {
- }
-
- public override int Read (byte[] buffer, int offset, int count)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public void Write (byte[] buffer)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override void Write (byte[] buffer, int offset, int count)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override int EndRead (IAsyncResult asyncResult)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
-
- public override void EndWrite (IAsyncResult asyncResult)
- {
- throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
- }
+ public SslStream(System.IO.Stream innerStream) : base (default(System.IO.Stream), default(bool)) => throw new PlatformNotSupportedException ();
+ public SslStream(System.IO.Stream innerStream, bool leaveInnerStreamOpen) : base (default(System.IO.Stream), default(bool)) => throw new PlatformNotSupportedException ();
+ public SslStream(System.IO.Stream innerStream, bool leaveInnerStreamOpen, System.Net.Security.RemoteCertificateValidationCallback userCertificateValidationCallback) : base (default(System.IO.Stream), default(bool)) => throw new PlatformNotSupportedException ();
+ public SslStream(System.IO.Stream innerStream, bool leaveInnerStreamOpen, System.Net.Security.RemoteCertificateValidationCallback userCertificateValidationCallback, System.Net.Security.LocalCertificateSelectionCallback userCertificateSelectionCallback) : base (default(System.IO.Stream), default(bool)) => throw new PlatformNotSupportedException ();
+ public SslStream(System.IO.Stream innerStream, bool leaveInnerStreamOpen, System.Net.Security.RemoteCertificateValidationCallback userCertificateValidationCallback, System.Net.Security.LocalCertificateSelectionCallback userCertificateSelectionCallback, System.Net.Security.EncryptionPolicy encryptionPolicy) : base (default(System.IO.Stream), default(bool)) => throw new PlatformNotSupportedException ();
+ public override bool CanRead { get { throw new PlatformNotSupportedException (); } }
+ public override bool CanSeek { get { throw new PlatformNotSupportedException (); } }
+ public override bool CanTimeout { get { throw new PlatformNotSupportedException (); } }
+ public override bool CanWrite { get { throw new PlatformNotSupportedException (); } }
+ public virtual bool CheckCertRevocationStatus { get { throw new PlatformNotSupportedException (); } }
+ public virtual System.Security.Authentication.CipherAlgorithmType CipherAlgorithm { get { throw new PlatformNotSupportedException (); } }
+ public virtual int CipherStrength { get { throw new PlatformNotSupportedException (); } }
+ public virtual System.Security.Authentication.HashAlgorithmType HashAlgorithm { get { throw new PlatformNotSupportedException (); } }
+ public virtual int HashStrength { get { throw new PlatformNotSupportedException (); } }
+ public override bool IsAuthenticated { get { throw new PlatformNotSupportedException (); } }
+ public override bool IsEncrypted { get { throw new PlatformNotSupportedException (); } }
+ public override bool IsMutuallyAuthenticated { get { throw new PlatformNotSupportedException (); } }
+ public override bool IsServer { get { throw new PlatformNotSupportedException (); } }
+ public override bool IsSigned { get { throw new PlatformNotSupportedException (); } }
+ public virtual System.Security.Authentication.ExchangeAlgorithmType KeyExchangeAlgorithm { get { throw new PlatformNotSupportedException (); } }
+ public virtual int KeyExchangeStrength { get { throw new PlatformNotSupportedException (); } }
+ public override long Length { get { throw new PlatformNotSupportedException (); } }
+ public virtual System.Security.Cryptography.X509Certificates.X509Certificate LocalCertificate { get { throw new PlatformNotSupportedException (); } }
+ public System.Net.Security.SslApplicationProtocol NegotiatedApplicationProtocol { get { throw new PlatformNotSupportedException (); } }
+ public override long Position { get { throw new PlatformNotSupportedException (); } set { throw new PlatformNotSupportedException (); } }
+ public override int ReadTimeout { get { throw new PlatformNotSupportedException (); } set { throw new PlatformNotSupportedException (); } }
+ public virtual System.Security.Cryptography.X509Certificates.X509Certificate RemoteCertificate { get { throw new PlatformNotSupportedException (); } }
+ public virtual System.Security.Authentication.SslProtocols SslProtocol { get { throw new PlatformNotSupportedException (); } }
+ public System.Net.TransportContext TransportContext { get { throw new PlatformNotSupportedException (); } }
+ public override int WriteTimeout { get { throw new PlatformNotSupportedException (); } set { throw new PlatformNotSupportedException (); } }
+ public virtual void AuthenticateAsClient(string targetHost) { throw new PlatformNotSupportedException (); }
+ public virtual void AuthenticateAsClient(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public virtual void AuthenticateAsClient(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public System.Threading.Tasks.Task AuthenticateAsClientAsync(System.Net.Security.SslClientAuthenticationOptions sslClientAuthenticationOptions, System.Threading.CancellationToken cancellationToken) { throw new PlatformNotSupportedException (); }
+ public virtual System.Threading.Tasks.Task AuthenticateAsClientAsync(string targetHost) { throw new PlatformNotSupportedException (); }
+ public virtual System.Threading.Tasks.Task AuthenticateAsClientAsync(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public virtual System.Threading.Tasks.Task AuthenticateAsClientAsync(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public virtual void AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate) { throw new PlatformNotSupportedException (); }
+ public virtual void AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public virtual void AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Net.Security.SslServerAuthenticationOptions sslServerAuthenticationOptions, System.Threading.CancellationToken cancellationToken) { throw new PlatformNotSupportedException (); }
+ public virtual System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate) { throw new PlatformNotSupportedException (); }
+ public virtual System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public virtual System.Threading.Tasks.Task AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation) { throw new PlatformNotSupportedException (); }
+ public virtual System.IAsyncResult BeginAuthenticateAsClient(string targetHost, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ public virtual System.IAsyncResult BeginAuthenticateAsClient(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, bool checkCertificateRevocation, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ public virtual System.IAsyncResult BeginAuthenticateAsClient(string targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ public virtual System.IAsyncResult BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ public virtual System.IAsyncResult BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ public virtual System.IAsyncResult BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate serverCertificate, bool clientCertificateRequired, System.Security.Authentication.SslProtocols enabledSslProtocols, bool checkCertificateRevocation, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw new PlatformNotSupportedException (); }
+ protected override void Dispose(bool disposing) { throw new PlatformNotSupportedException (); }
+ public override System.Threading.Tasks.ValueTask DisposeAsync() { throw new PlatformNotSupportedException (); }
+ public virtual void EndAuthenticateAsClient(System.IAsyncResult asyncResult) { throw new PlatformNotSupportedException (); }
+ public virtual void EndAuthenticateAsServer(System.IAsyncResult asyncResult) { throw new PlatformNotSupportedException (); }
+ public override int EndRead(System.IAsyncResult asyncResult) { throw new PlatformNotSupportedException (); }
+ public override void EndWrite(System.IAsyncResult asyncResult) { throw new PlatformNotSupportedException (); }
+ public override void Flush() { throw new PlatformNotSupportedException (); }
+ public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw new PlatformNotSupportedException (); }
+ public override int Read(byte[] buffer, int offset, int count) { throw new PlatformNotSupportedException (); }
+ public override long Seek(long offset, System.IO.SeekOrigin origin) { throw new PlatformNotSupportedException (); }
+ public override void SetLength(long value) { throw new PlatformNotSupportedException (); }
+ public virtual System.Threading.Tasks.Task ShutdownAsync() { throw new PlatformNotSupportedException (); }
+ public void Write(byte[] buffer) { throw new PlatformNotSupportedException (); }
+ public override void Write(byte[] buffer, int offset, int count) { throw new PlatformNotSupportedException (); }
}
}
diff --git a/mcs/class/System/System.Net/HttpWebResponse.cs b/mcs/class/System/System.Net/HttpWebResponse.cs
index 58003d5b3b5..82320fee778 100644
--- a/mcs/class/System/System.Net/HttpWebResponse.cs
+++ b/mcs/class/System/System.Net/HttpWebResponse.cs
@@ -61,6 +61,8 @@ namespace System.Net
bool disposed;
Stream stream;
+ public HttpWebResponse() { } // Added for NS2.1, it's empty in CoreFX too
+
// Constructors
internal HttpWebResponse (Uri uri, string method, HttpStatusCode status, WebHeaderCollection headers)
diff --git a/mcs/class/System/System.Net/HttpWebResponse.platformnotsupported.cs b/mcs/class/System/System.Net/HttpWebResponse.platformnotsupported.cs
index 300d5d4f607..51e68cf8976 100644
--- a/mcs/class/System/System.Net/HttpWebResponse.platformnotsupported.cs
+++ b/mcs/class/System/System.Net/HttpWebResponse.platformnotsupported.cs
@@ -35,6 +35,8 @@ namespace System.Net
public class HttpWebResponse : WebResponse, ISerializable, IDisposable
{
const string EXCEPTION_MESSAGE = "System.Net.HttpWebResponse is not supported on the current platform.";
+
+ public HttpWebResponse() { } // Added for NS2.1, it's empty in CoreFX too
[Obsolete ("Serialization is obsoleted for this type", false)]
protected HttpWebResponse (SerializationInfo serializationInfo, StreamingContext streamingContext)
diff --git a/mcs/class/System/System.csproj b/mcs/class/System/System.csproj
index 0726452aa6e..c011b0ab860 100644
--- a/mcs/class/System/System.csproj
+++ b/mcs/class/System/System.csproj
@@ -1092,6 +1092,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
@@ -1212,6 +1213,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\Win32UnixFactoryPal.cs" />
<Compile Include="System.Net.Security\SslStream.cs" />
@@ -1307,6 +1309,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
@@ -1431,6 +1434,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
@@ -1551,6 +1555,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
@@ -3658,6 +3663,7 @@
<Compile Include="Mono.AppleTls\SafeHandles.cs" />
<Compile Include="Mono.AppleTls\X509CertificateImplApple.cs" />
<Compile Include="Mono.AppleTls\X509PalImpl.Apple.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.platformnotsupported.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
@@ -3685,6 +3691,9 @@
<Compile Include="System.Net.NetworkInformation\UnixNetworkInterfaceFactory.cs" />
<Compile Include="System.Net.NetworkInformation\UnixTcpStatistics.cs" />
<Compile Include="System.Net.NetworkInformation\UnixUdpStatistics.cs" />
+ <Compile Include="System.Net.Security\SslApplicationProtocol.pns.cs" />
+ <Compile Include="System.Net.Security\SslClientAuthenticationOptions.pns.cs" />
+ <Compile Include="System.Net.Security\SslServerAuthenticationOptions.pns.cs" />
<Compile Include="System.Net.Security\SslStream.platformnotsupported.cs" />
<Compile Include="System.Net.Sockets\TcpClient.platformnotsupported.cs" />
<Compile Include="System.Net.Sockets\TcpListener.platformnotsupported.cs" />
@@ -3783,6 +3792,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
@@ -3924,6 +3934,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
@@ -4058,6 +4069,7 @@
<Compile Include="Mono.Net.Security\MonoTlsStream.cs" />
<Compile Include="Mono.Net.Security\NoReflectionHelper.cs" />
<Compile Include="Mono.Net.Security\SystemCertificateValidator.cs" />
+ <Compile Include="System.IO\FileSystemWatcher.DefaultEventAttribute.cs" />
<Compile Include="System.Net.Mail\SmtpClient.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPInterfaceProperties.cs" />
<Compile Include="System.Net.NetworkInformation\AixIPv4InterfaceProperties.cs" />
diff --git a/mcs/class/System/mobile_System.dll.sources b/mcs/class/System/mobile_System.dll.sources
index 734c58b369e..67c169460d7 100644
--- a/mcs/class/System/mobile_System.dll.sources
+++ b/mcs/class/System/mobile_System.dll.sources
@@ -3,4 +3,5 @@
#include corefx.unix.sources
../../../external/corefx/src/Common/src/System/Net/ContextAwareResult.Unix.cs
../../../external/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs
+System.IO/FileSystemWatcher.DefaultEventAttribute.cs
Internal.Cryptography/OidLookup.Managed.cs
diff --git a/mcs/class/System/monotouch_watch_System.dll.sources b/mcs/class/System/monotouch_watch_System.dll.sources
index 8ed3a4d14e0..4200aeb9778 100644
--- a/mcs/class/System/monotouch_watch_System.dll.sources
+++ b/mcs/class/System/monotouch_watch_System.dll.sources
@@ -41,3 +41,6 @@ System.Net.WebSockets/HttpListenerWebSocketContext.platformnotsupported.cs
../Mono.Security/Mono.Security.X509.Extensions/BasicConstraintsExtension.cs
../Mono.Security/Mono.Security.X509.Extensions/KeyUsageExtension.cs
../Mono.Security/Mono.Security.X509.Extensions/SubjectKeyIdentifierExtension.cs
+System.Net.Security/SslApplicationProtocol.pns.cs
+System.Net.Security/SslClientAuthenticationOptions.pns.cs
+System.Net.Security/SslServerAuthenticationOptions.pns.cs