summary refs log tree commit diff
path: root/crypto/src/tls
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-11 14:44:47 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-11 14:44:47 +0700
commitfd335142a7a492509dda827ee2b6507a651560b8 (patch)
tree4b8895243d11a29e50ffa3c869ad1507c7358cf0 /crypto/src/tls
parentX509: Signature checks that return bool (diff)
downloadBouncyCastle.NET-ed25519-fd335142a7a492509dda827ee2b6507a651560b8.tar.xz
Platform guards for Stream code
Diffstat (limited to 'crypto/src/tls')
-rw-r--r--crypto/src/tls/TlsStream.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsStream.cs b/crypto/src/tls/TlsStream.cs
index d7d79a6fa..e6afd1869 100644
--- a/crypto/src/tls/TlsStream.cs
+++ b/crypto/src/tls/TlsStream.cs
@@ -1,7 +1,9 @@
 using System;
 using System.IO;
 using System.Threading;
+#if NETCOREAPP1_0_OR_GREATER || NET45_OR_GREATER || NETSTANDARD1_0_OR_GREATER
 using System.Threading.Tasks;
+#endif
 
 using Org.BouncyCastle.Utilities.IO;
 
@@ -39,10 +41,12 @@ namespace Org.BouncyCastle.Tls
         }
 #endif
 
+#if NETCOREAPP1_0_OR_GREATER || NET45_OR_GREATER || NETSTANDARD1_0_OR_GREATER
         public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
         {
             return Streams.CopyToAsync(this, destination, bufferSize, cancellationToken);
         }
+#endif
 
         protected override void Dispose(bool disposing)
         {