Skip to content

Commit 256ea55

Browse files
authored
Revert "Fix webconnection typeof"
1 parent 6c55b86 commit 256ea55

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

mcs/class/Mono.Security/Mono.Security.Protocol.Tls/HttpsClientStream.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@
4040
namespace Mono.Security.Protocol.Tls {
4141

4242
// Note: DO NOT REUSE this class - instead use SslClientStream
43-
#if !SECURITY_DEP
44-
public class HttpsClientStream : SslClientStream {
45-
#else
43+
4644
internal class HttpsClientStream : SslClientStream {
47-
#endif
4845

4946
private HttpWebRequest _request;
5047
private int _status;

mcs/class/System/System.Net/WebConnection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static void EnsureSSLStreamAvailable ()
279279
if (sslStream != null)
280280
return;
281281

282-
#if MONOTOUCH && SECURITY_DEP
282+
#if MONOTOUCH && SECURITY_DEP && !UNITY
283283
sslStream = typeof (Mono.Security.Protocol.Tls.HttpsClientStream);
284284
#else
285285
// HttpsClientStream is an internal glue class in Mono.Security.dll

0 commit comments

Comments
 (0)