Merge pull request #5428 from kumpera/wasm-support-p2
[mono.git] / mcs / class / System / Mono.Net.Security / MobileAuthenticatedStream.cs
index f15f32596b7b151a196f5f2acb6292a2cb190dd3..95ecb8fd64a2d1e8a4a59296eba02dd660a86bea 100644 (file)
@@ -384,10 +384,10 @@ namespace Mono.Net.Security
                static int nextId;
                internal readonly int ID = ++nextId;
 
-               [SD.Conditional ("MARTIN_DEBUG")]
+               [SD.Conditional ("MONO_TLS_DEBUG")]
                protected internal void Debug (string message, params object[] args)
                {
-                       Console.Error.WriteLine ("MobileAuthenticatedStream({0}): {1}", ID, string.Format (message, args));
+                       MonoTlsProviderFactory.Debug ("MobileAuthenticatedStream({0}): {1}", ID, string.Format (message, args));
                }
 
 #region Called back from native code via SslConnection