-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Change iOS PEM searcher to use PemEncoding.TryFindUtf8 #109564
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
Conversation
| internal delegate bool DerCallback(ReadOnlySpan<byte> derData, X509ContentType contentType); | ||
|
|
||
| internal static bool TryDecodePem(ReadOnlySpan<byte> rawData, DerCallback derCallback) | ||
| internal static void TryDecodePem(ReadOnlySpan<byte> rawData, Func<ReadOnlySpan<byte>, X509ContentType, bool> derCallback) |
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.
The return value from this method was always ignored and seemed to have no purpose any more. So it became void.
| { | ||
| internal sealed partial class AppleCertificatePal : ICertificatePal | ||
| { | ||
| internal delegate bool DerCallback(ReadOnlySpan<byte> derData, X509ContentType contentType); |
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.
We don't need a dedicated delegate anymore with allows ref struct on Func now, so use Func.
|
/azp run runtime-extra-platforms |
|
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Since it's marked as Draft I just skimmed, but it looks good, conceptually. |
|
Marked as draft while I waited for CI in case I needed to make changes since I don't have iOS tests working locally. Failures from runtime-extra-platforms appear unrelated, so marked ready for review. |
AppleCertificatePal.TryDecodePemcan use the UTF-8 decoder. This extends outPemEnumeratorto work on UTF-8 inputs.