Skip to content

Commit

Permalink
Fix type lookup when SSL/TLS is not embedded into System.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Jul 2, 2013
1 parent b888cf5 commit abe9907
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mcs/class/System/System.Net/WebConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,12 @@ static void EnsureSSLStreamAvailable ()
#else
// HttpsClientStream is an internal glue class in Mono.Security.dll
sslStream = Type.GetType ("Mono.Security.Protocol.Tls.HttpsClientStream, " +
Consts.AssemblySystem, false);
Consts.AssemblyMono_Security, false);

if (sslStream == null) {
string msg = "Missing Mono.Security.dll assembly. " +
"Support for SSL/TLS is unavailable.";

Console.WriteLine (msg);
throw new NotSupportedException (msg);
}
#endif
Expand Down

0 comments on commit abe9907

Please sign in to comment.