-
Notifications
You must be signed in to change notification settings - Fork 897
domain name policy for WOLFSSL_APPLE_NATIVE_CERT_VALIDATION #8833
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
retest this please Jenkins |
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.
Pull Request Overview
This pull request updates the Apple native certificate validation flow to leverage the WolfSSL domain name when available for SSL policy creation.
- Updated the function signature of DoAppleNativeCertValidation to include the ssl context.
- Added logic to extract and use the domain name to create a hostname-based SSL policy.
- Ensured proper memory management by releasing CF objects (hostname) after usage.
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.
This looks like a good code change. It's missing a test case though. Please investigate into adding in a regression test.
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.
Additional tests can come in a follow up PR.
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.
Looks like the code is correct for getting it use the hostname.
Jenkins retest this please |
Adopting a patch from wolfSSL/wolfssl#8833 on top of the current wolfssl version we are using. This patch ensures the domain check request is properly executed when using the Apple Native Certificate Validation routine.
Adopting a patch from wolfSSL/wolfssl#8833 on top of the current wolfssl version we are using. This patch ensures the domain check request is properly executed when using the Apple Native Certificate Validation routine.
Adopting a patch from wolfSSL/wolfssl#8833 on top of the current wolfssl version we are using. This patch ensures the domain check request is properly executed when using the Apple Native Certificate Validation routine.
Description
Use WOLFSSL domain name to create policy for WOLFSSL_APPLE_NATIVE_CERT_VALIDATION. When no domain name is available,
SecPolicyCreateSSL()
uses NULL for the hostname parameter.Fixes zd#19957
Testing
Tested using
make check
and test provided in zendesk ticketChecklist