* update expected exception for cases when all requested TLS versions are disabled
* port test fix
Co-authored-by: wfurt <tweinfurt@yahoo.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
+using System.ComponentModel;
using System.IO;
using System.Net.Security;
using System.Net.Test.Common;
{
await serverTask;
}
- catch (Exception e) when (e is IOException || e is AuthenticationException)
+ catch (Exception e) when (e is IOException || e is AuthenticationException || e is Win32Exception)
{
// Some SSL implementations simply close or reset connection after protocol mismatch.
+ // The call may fail if neither of the requested protocols is available
// Newer OpenSSL sends Fatal Alert message before closing.
return;
}