-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
add test for SslClientAuthenticationOptions.ShallowClone #88557
Conversation
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones Issue Detailsfollow-up on #88155 and #86047 to address #88155 (comment)
|
src/libraries/Common/src/System/Net/Security/SslClientAuthenticationOptionsExtensions.cs
Show resolved
Hide resolved
AllowRenegotiation = false, | ||
AllowTlsResume = false, | ||
ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http11, SslApplicationProtocol.Http2 }, | ||
CertificateRevocationCheckMode = X509RevocationMode.Online, | ||
ClientCertificates = new X509CertificateCollection() { clientCert }, | ||
EnabledSslProtocols = SslProtocols.Tls12, | ||
EncryptionPolicy = EncryptionPolicy.RequireEncryption, | ||
TargetHost = "foo", | ||
CertificateChainPolicy = new X509ChainPolicy(), | ||
RemoteCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; }), | ||
LocalCertificateSelectionCallback = new LocalCertificateSelectionCallback(delegate { return null; }), | ||
ClientCertificateContext = SslStreamCertificateContext.Create(clientCert, null, false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume all of these are non-default values? Might be worth a comment mentioning that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. With default value they work out of the box e.g. the test would not see if we fail to copy some value.
follow-up on #88155 and #86047 to address #88155 (comment)