[System] WebSockets from corefx
[mono.git] / mcs / class / System / System.Net.Security / SslStream.cs
index 264eb7a50f7e63acb55114459d7ec235dd94fee8..8d6e9ddbc5ea696dbf12c83f37f4a29bce44a421 100644 (file)
@@ -40,7 +40,6 @@ using CipherAlgorithmType = System.Security.Authentication.CipherAlgorithmType;
 using HashAlgorithmType = System.Security.Authentication.HashAlgorithmType;
 using ExchangeAlgorithmType = System.Security.Authentication.ExchangeAlgorithmType;
 
-using System;
 using System.IO;
 using System.Net;
 using System.Net.Security;
@@ -49,7 +48,6 @@ using System.Security.Cryptography.X509Certificates;
 using System.Security.Permissions;
 using System.Security.Principal;
 using System.Security.Cryptography;
-
 using System.Threading.Tasks;
 
 using MNS = Mono.Net.Security;
@@ -402,10 +400,81 @@ namespace System.Net.Security
        }
 }
 #else // !SECURITY_DEP
+
+using System.IO;
+using System.Threading.Tasks;
+
 namespace System.Net.Security
 {
-       public class SslStream
+       public class SslStream : Stream
        {
+               public SslStream (object innerStream)
+               {
+               }
+
+               public override bool CanRead {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               public override bool CanSeek {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               public override bool CanWrite {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               public override long Length {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               public override long Position {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+
+                       set {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               public override void Flush ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public override int Read (System.Byte [] buffer, int offset, int count)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public override long Seek (long offset, SeekOrigin origin)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public override void SetLength (long value)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public override void Write (System.Byte [] buffer, int offset, int count)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public virtual Task AuthenticateAsClientAsync (string targetHost, object clientCertificates, object enabledSslProtocols, bool checkCertificateRevocation)
+               {
+                       throw new NotImplementedException ();
+               }
        }
 }
 #endif