-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP/3: Update generated transport features (#34757)
- Loading branch information
Showing
13 changed files
with
195 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17213,4 +17213,4 @@ public bool MoveNext() | |
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
src/Servers/Kestrel/Transport.Quic/src/Internal/FakeTlsConnectionFeature.cs
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
src/Servers/Kestrel/Transport.Quic/src/Internal/QuicConnectionContext.FeatureCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Net.Sockets; | ||
using System.Security.Cryptography.X509Certificates; | ||
using Microsoft.AspNetCore.Connections; | ||
using Microsoft.AspNetCore.Connections.Features; | ||
using Microsoft.AspNetCore.Http.Features; | ||
|
||
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal | ||
{ | ||
internal sealed partial class QuicConnectionContext : IProtocolErrorCodeFeature, ITlsConnectionFeature | ||
{ | ||
public long Error { get; set; } | ||
|
||
// Support accessing client certificate | ||
// https://github.com/dotnet/aspnetcore/issues/34756 | ||
public X509Certificate2? ClientCertificate | ||
{ | ||
get => throw new NotSupportedException(); | ||
set => throw new NotSupportedException(); | ||
} | ||
|
||
public Task<X509Certificate2?> GetClientCertificateAsync(CancellationToken cancellationToken) | ||
{ | ||
throw new NotSupportedException(); | ||
} | ||
|
||
private void InitializeFeatures() | ||
{ | ||
_currentIProtocolErrorCodeFeature = this; | ||
_currentITlsConnectionFeature = this; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.