-
Notifications
You must be signed in to change notification settings - Fork 10.4k
HTTP/3: Complete support for UseHttps #42774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#nullable enable | ||
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature | ||
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.ClientHelloInfo.get -> System.Net.Security.SslClientHelloInfo | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.ClientHelloInfo.set -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.Connection.get -> Microsoft.AspNetCore.Connections.BaseConnectionContext! | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.Connection.set -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.State.get -> object? | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.State.set -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.TlsConnectionCallbackContext() -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.ApplicationProtocols.get -> System.Collections.Generic.List<System.Net.Security.SslApplicationProtocol>! | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.ApplicationProtocols.set -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnection.get -> System.Func<Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext!, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<System.Net.Security.SslServerAuthenticationOptions!>>! | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnection.set -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnectionState.get -> object? | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnectionState.set -> void | ||
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.TlsConnectionCallbackOptions() -> void |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#nullable enable | ||
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature | ||
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#nullable enable | ||
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature | ||
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#if NET7_0_OR_GREATER | ||
using System.Net.Security; | ||
using System.Threading; | ||
using Microsoft.AspNetCore.Connections; | ||
using Microsoft.AspNetCore.Http.Features; | ||
|
||
namespace Microsoft.AspNetCore.Connections; | ||
|
||
/// <summary> | ||
/// Per connection state used to determine the TLS options. | ||
/// </summary> | ||
public class TlsConnectionCallbackContext | ||
{ | ||
/// <summary> | ||
/// Information from the Client Hello message. | ||
/// </summary> | ||
public SslClientHelloInfo ClientHelloInfo { get; set; } | ||
|
||
/// <summary> | ||
/// The information that was passed when registering the callback. | ||
/// </summary> | ||
public object? State { get; set; } | ||
|
||
/// <summary> | ||
/// Information about an individual connection. | ||
/// </summary> | ||
public BaseConnectionContext Connection { get; set; } = default!; | ||
} | ||
#endif |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#if NET7_0_OR_GREATER | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Security; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.AspNetCore.Connections; | ||
|
||
/// <summary> | ||
/// Options used to configure a per connection callback for TLS configuration. | ||
/// </summary> | ||
public class TlsConnectionCallbackOptions | ||
{ | ||
/// <summary> | ||
/// The callback to invoke per connection. This property is required. | ||
/// </summary> | ||
public Func<TlsConnectionCallbackContext, CancellationToken, ValueTask<SslServerAuthenticationOptions>> OnConnection { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Optional application state to flow to the <see cref="OnConnection"/> callback. | ||
/// </summary> | ||
public object? OnConnectionState { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a list of ALPN protocols. | ||
/// </summary> | ||
public List<SslApplicationProtocol> ApplicationProtocols { get; set; } = default!; | ||
} | ||
#endif |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,17 @@ | |
"solution": { | ||
"path": "..\\..\\..\\AspNetCore.sln", | ||
"projects": [ | ||
"src\\DataProtection\\Abstractions\\src\\Microsoft.AspNetCore.DataProtection.Abstractions.csproj", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these changes required/intentional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They're required to build the Kestrel solution. The recently added web transport sample project uses WebApplication and references the |
||
"src\\DataProtection\\Cryptography.Internal\\src\\Microsoft.AspNetCore.Cryptography.Internal.csproj", | ||
"src\\DataProtection\\DataProtection\\src\\Microsoft.AspNetCore.DataProtection.csproj", | ||
"src\\DefaultBuilder\\src\\Microsoft.AspNetCore.csproj", | ||
"src\\Extensions\\Features\\src\\Microsoft.Extensions.Features.csproj", | ||
"src\\Extensions\\Features\\test\\Microsoft.Extensions.Features.Tests.csproj", | ||
"src\\Hosting\\Abstractions\\src\\Microsoft.AspNetCore.Hosting.Abstractions.csproj", | ||
"src\\Hosting\\Hosting\\src\\Microsoft.AspNetCore.Hosting.csproj", | ||
"src\\Hosting\\Server.Abstractions\\src\\Microsoft.AspNetCore.Hosting.Server.Abstractions.csproj", | ||
"src\\Http\\Authentication.Abstractions\\src\\Microsoft.AspNetCore.Authentication.Abstractions.csproj", | ||
"src\\Http\\Authentication.Core\\src\\Microsoft.AspNetCore.Authentication.Core.csproj", | ||
"src\\Http\\Headers\\src\\Microsoft.Net.Http.Headers.csproj", | ||
"src\\Http\\Http.Abstractions\\src\\Microsoft.AspNetCore.Http.Abstractions.csproj", | ||
"src\\Http\\Http.Extensions\\src\\Microsoft.AspNetCore.Http.Extensions.csproj", | ||
|
@@ -21,8 +27,12 @@ | |
"src\\Middleware\\HostFiltering\\src\\Microsoft.AspNetCore.HostFiltering.csproj", | ||
"src\\Middleware\\HttpOverrides\\src\\Microsoft.AspNetCore.HttpOverrides.csproj", | ||
"src\\ObjectPool\\src\\Microsoft.Extensions.ObjectPool.csproj", | ||
"src\\Security\\Authentication\\Core\\src\\Microsoft.AspNetCore.Authentication.csproj", | ||
"src\\Security\\Authorization\\Core\\src\\Microsoft.AspNetCore.Authorization.csproj", | ||
"src\\Security\\Authorization\\Policy\\src\\Microsoft.AspNetCore.Authorization.Policy.csproj", | ||
"src\\Servers\\Connections.Abstractions\\src\\Microsoft.AspNetCore.Connections.Abstractions.csproj", | ||
"src\\Servers\\IIS\\IISIntegration\\src\\Microsoft.AspNetCore.Server.IISIntegration.csproj", | ||
"src\\Servers\\IIS\\IIS\\src\\Microsoft.AspNetCore.Server.IIS.csproj", | ||
"src\\Servers\\Kestrel\\Core\\src\\Microsoft.AspNetCore.Server.Kestrel.Core.csproj", | ||
"src\\Servers\\Kestrel\\Core\\test\\Microsoft.AspNetCore.Server.Kestrel.Core.Tests.csproj", | ||
"src\\Servers\\Kestrel\\Kestrel\\src\\Microsoft.AspNetCore.Server.Kestrel.csproj", | ||
|
@@ -47,7 +57,8 @@ | |
"src\\Servers\\Kestrel\\test\\Sockets.BindTests\\Sockets.BindTests.csproj", | ||
"src\\Servers\\Kestrel\\test\\Sockets.FunctionalTests\\Sockets.FunctionalTests.csproj", | ||
"src\\Servers\\Kestrel\\tools\\CodeGenerator\\CodeGenerator.csproj", | ||
"src\\Testing\\src\\Microsoft.AspNetCore.Testing.csproj" | ||
"src\\Testing\\src\\Microsoft.AspNetCore.Testing.csproj", | ||
"src\\WebEncoders\\src\\Microsoft.Extensions.WebEncoders.csproj" | ||
] | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.