Skip to content

Allow X509Certificates to be trimmed in HttpClientHandler.#37909

Merged
eerhardt merged 2 commits intodotnet:masterfrom
eerhardt:TrimX509Cert
Jun 16, 2020
Merged

Allow X509Certificates to be trimmed in HttpClientHandler.#37909
eerhardt merged 2 commits intodotnet:masterfrom
eerhardt:TrimX509Cert

Conversation

@eerhardt
Copy link
Member

When DangerousAcceptAnyServerCertificateValidator is never used, the backing static field won't be trimmed by the ILLinker. This will keep empty X509Certificate2 and X509Chain types around, which is the only thing in the X509Certificates assembly.

See dotnet/linker#1270

When DangerousAcceptAnyServerCertificateValidator is never used, the backing static field won't be trimmed by the ILLinker. This will keep empty X509Certificate2 and X509Chain types around, which is the only thing in the X509Certificates assembly.

See dotnet/linker#1270
@ghost
Copy link

ghost commented Jun 15, 2020

Tagging subscribers to this area: @dotnet/ncl
Notify danmosemsft if you want to be subscribed.

@eerhardt eerhardt merged commit 250ab76 into dotnet:master Jun 16, 2020
@eerhardt eerhardt deleted the TrimX509Cert branch June 16, 2020 18:02
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants