Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
smazov committed Jul 25, 2019
1 parent 46ce8a7 commit 358ae9f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Diagnostics;
#if FEATURE_DIAGNOSTICS_TRACESOURCE
using System;
using System.Threading;
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE

Expand Down Expand Up @@ -28,6 +29,7 @@ public static bool IsEnabled(TraceEventType traceEventType)
public static void Log(string text)
{
#if FEATURE_DIAGNOSTICS_TRACESOURCE
Console.WriteLine(text);
Loggging.TraceEvent(TraceEventType.Verbose, Thread.CurrentThread.ManagedThreadId, text);
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE
}
Expand Down
9 changes: 9 additions & 0 deletions src/Renci.SshNet/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,15 @@ public void Connect()
return;
}

Console.WriteLine(ConnectionInfo.CurrentClientHmacAlgorithm);
Console.WriteLine(ConnectionInfo.CurrentClientCompressionAlgorithm);
Console.WriteLine(ConnectionInfo.CurrentClientEncryption);
Console.WriteLine(ConnectionInfo.CurrentHostKeyAlgorithm);
Console.WriteLine(ConnectionInfo.CurrentKeyExchangeAlgorithm);
Console.WriteLine(ConnectionInfo.CurrentServerCompressionAlgorithm);
Console.WriteLine(ConnectionInfo.CurrentServerEncryption);
Console.WriteLine(ConnectionInfo.CurrentServerHmacAlgorithm);

// Request user authorization service
SendMessage(new ServiceRequestMessage(ServiceName.UserAuthentication));

Expand Down

0 comments on commit 358ae9f

Please sign in to comment.