-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Backport 2.7] X509 verify non-DNS SANs #3556
Conversation
Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
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 code looked ok to me, but CI was unhappy. It turns out that you assumed that x509_check_wildcard
behaves sensibly when there's no wildcard, but in fact it returns a systematic success in that case. You fixed this a couple of years ago in 900fba6 but that was after 2.7. I think it would be best to backport that commit.
@mpg Same comment as for the 2.16 backport: As far as I understand and remember, we silently skip non-DNS entries in the SubjectAlternativeNames extension in those older versions of Mbed TLS. |
ceb246f
to
894c05d
Compare
@hanno-arm You approved the 2.16 backport yesterday but not this one, was that intentional? |
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.
LGTM
@mpg Apologies, that was not intentional - something must have distracted me so I forgot about the 2.7 backport. |
This is a very partial backport of #3554 to 2.7 - only the test is backported, as the bug was not present in this branch.