You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X509Chain.Build should throw when an internal error occurs
Chain building can sometimes return nonsensical values when an internal error is encountered. This changes the behavior so that chain building will throw instead of returning nonsensical values.
A compat switch is provided so apps can opt out of this behavior.
Fixes CVE-2024-0057.
thrownewXunitException(AddOptionalUserMessage($"Expected: Value {actual} (of enum type {typeof(T).FullName}) to have the flag {expected} set.",userMessage));
411
+
}
412
+
}
413
+
400
414
// NOTE: Consider using SequenceEqual below instead, as it will give more useful information about what
401
415
// the actual differences are, especially for large arrays/spans.
<value>There was a problem with the PKCS12 (PFX) without a supplied password. See https://go.microsoft.com/fwlink/?linkid=2233907 for more information.</value>
Copy file name to clipboardexpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/LocalAppContextSwitches.cs
+9
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ internal static partial class LocalAppContextSwitches
0 commit comments