From 3384a7d80612997a7bf38b70710e99faa4221172 Mon Sep 17 00:00:00 2001 From: Gert Driesen Date: Sun, 23 Mar 2014 09:09:20 +0000 Subject: [PATCH] Fix compile on .NET 3.5 --- Renci.SshClient/Renci.SshNet/ConnectionInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs b/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs index 1669bc13..1b4763cb 100644 --- a/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs +++ b/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs @@ -433,7 +433,7 @@ namespace Renci.SshNet } } - private bool TryAuthenticate(Session session, ICollection allowedAuthenticationMethods, IList failedAuthenticationMethods, ref SshAuthenticationException authenticationException) + private bool TryAuthenticate(Session session, IList allowedAuthenticationMethods, IList failedAuthenticationMethods, ref SshAuthenticationException authenticationException) { if (!allowedAuthenticationMethods.Any()) { @@ -447,7 +447,7 @@ namespace Renci.SshNet var matchingAuthenticationMethods = AuthenticationMethods.Where(a => allowedAuthenticationMethods.Contains(a.Name)).ToList(); if (!matchingAuthenticationMethods.Any()) { - authenticationException = new SshAuthenticationException(string.Format("No suitable authentication method found to complete authentication ({0}).", string.Join(",", allowedAuthenticationMethods))); + authenticationException = new SshAuthenticationException(string.Format("No suitable authentication method found to complete authentication ({0}).", string.Join(",", allowedAuthenticationMethods.ToArray()))); return false; }