-
Notifications
You must be signed in to change notification settings - Fork 40
Add X.509 Name Constraints extension support for certificate validation #316
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
base: master
Are you sure you want to change the base?
Conversation
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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
Copilot reviewed 22 out of 22 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
18a8a4d to
4572d4e
Compare
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
Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4572d4e to
eb63118
Compare
…fSSLNameConstraints, WolfSSLGeneralName
eb63118 to
eec57b5
Compare
This PR adds
WolfSSLNameConstraintsandWolfSSLGeneralNameclasses to extract and validate X.509 Name Constraints extension (OID 2.5.29.30) from certificates. Includes JNI implementation wrapping native wolfSSLNAME_CONSTRAINTSstructure.WolfSSLNameConstraintsclass wrapping nativeWOLFSSL_NAME_CONSTRAINTSWolfSSLGeneralNameclass for GeneralName type/value pairsWolfSSLCertificate.getNameConstraints()to extract NC extensionWolfSSL.NameConstraintsEnabled()for feature detectionWraps new wolfSSL functionality introduced in wolfSSL/wolfssl#9705.
This new functionality relies on
WOLFSSL_VERSION_HEXto detect if native wolfSSL support will be available. Since native wolfSSL version hex is still matching last stable version (5.8.4), if building wolfssljni against master wolfssl, you will need to defineWOLFSSL_PR9705_PATCH_APPLIEDwhen running./java.sh: