Skip to content

Conversation

vcfxb
Copy link
Contributor

@vcfxb vcfxb commented Jul 10, 2024

This pull request ensures errors from SecureTransport on macos are handled properly when CFStringGetCStringPtr returns null. This occurs when the string encoding conversion is not cheap/efficient.

I am making this pull request after encountering a SecureTransport error: (null); class=Net (12) while working on https://github.com/mitre/hipcheck. With these changes, I now get an error message from macos instead of (null).

@vcfxb vcfxb changed the title Add more robust reporting to SecureTransport errors on mac Add more robust reporting to SecureTransport errors on macos Jul 10, 2024
@ethomson
Copy link
Member

Sorry for the delay here - I was looking back through old PRs and realized that I never actually published my comments. 😓 Many apologies.

I went ahead and manually merged this, with a few stylistic updates. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants