We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce83d7 commit 34621d4Copy full SHA for 34621d4
src/MySqlConnector/Core/ServerSession.cs
@@ -1595,7 +1595,11 @@ caCertificateChain is not null &&
1595
var rootCertificate = caCertificateChain.ChainElements[^1].Certificate;
1596
foreach (var sslCaCertificate in caCertificateChain.ChainPolicy.ExtraStore)
1597
{
1598
+#if NET7_0_OR_GREATER
1599
+ if (rootCertificate.RawDataMemory.Span.SequenceEqual(sslCaCertificate.RawDataMemory.Span))
1600
+#else
1601
if (rootCertificate.RawData.AsSpan().SequenceEqual(sslCaCertificate.RawData))
1602
+#endif
1603
1604
rcbPolicyErrors &= ~SslPolicyErrors.RemoteCertificateChainErrors;
1605
break;
0 commit comments