Skip to content

Commit

Permalink
Bump requirement for QUIC async cert validation to MsQuic 2.4 (#106251)
Browse files Browse the repository at this point in the history
* Bump requirement for async cert validation to 2.4

* Update MsQuicApi.cs
  • Loading branch information
rzikm committed Aug 13, 2024
1 parent 9f8b9bf commit b080dc2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private MsQuicApi(QUIC_API_TABLE* apiTable)
internal static string? NotSupportedReason { get; }

// workaround for https://github.com/microsoft/msquic/issues/4132
internal static bool SupportsAsyncCertValidation => Version >= new Version(2, 3, 5);
internal static bool SupportsAsyncCertValidation => Version >= new Version(2, 4);

internal static bool UsesSChannelBackend { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public class MsQuicTests : QuicTestBase, IClassFixture<CertificateSetup>
{
private static byte[] s_data = "Hello world!"u8.ToArray();
readonly CertificateSetup _certificates;
static bool DoesNotSupportAsyncCertValidation => QuicTestCollection.MsQuicVersion < new Version(2, 4);

public MsQuicTests(ITestOutputHelper output, CertificateSetup setup) : base(output)
{
Expand Down Expand Up @@ -354,7 +353,6 @@ public async Task UntrustedClientCertificateFails()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/99074", typeof(MsQuicTests), nameof(DoesNotSupportAsyncCertValidation))]
public async Task CertificateCallbackThrowPropagates()
{
using CancellationTokenSource cts = new CancellationTokenSource(PassingTestTimeout);
Expand Down

0 comments on commit b080dc2

Please sign in to comment.