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
* Do not do the allocation and parsing in the constructor, since throwing there prevents Dispose from running
* If something goes wrong between AllocHGlobal and moving the pointer into a PointerMemoryManager, call FreeHGlobal.
* Past that point it will be correctly freed by Dispose.
* Switch from AllocHGlobal/FreeHGlobal to NativeMemory.Alloc/Free
* Harden the Dispose method against mid-execution failure.
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/AndroidCertificatePal.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/AndroidPkcs12Reader.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/AppleCertificatePal.Pkcs12.iOS.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/AppleCertificatePal.Pkcs12.macOS.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/ApplePkcs12Reader.iOS.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/ApplePkcs12Reader.macOS.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslPkcs12Reader.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/StorePal.Android.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/StorePal.iOS.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/StorePal.macOS.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/UnixPkcs12Reader.cs
+28-17
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
usingSystem.Collections.Generic;
6
6
usingSystem.Diagnostics;
7
7
usingSystem.Formats.Asn1;
8
+
usingSystem.Runtime.CompilerServices;
8
9
usingSystem.Runtime.InteropServices;
9
10
usingSystem.Security.Cryptography.Asn1;
10
11
usingSystem.Security.Cryptography.Asn1.Pkcs12;
@@ -30,7 +31,7 @@ internal abstract class UnixPkcs12Reader : IDisposable
0 commit comments