mbedtls
mbedtls copied to clipboard
TLS 1.3: Add support for trusted certificate callback
Description
Fix #7079
PR checklist
- [ ] changelog required, TODO
- [ ] 3.6 backport required, TODO
- [x] 2.28 backport done, or not required
- [x] tests provided
Just one question for my own education (no impact on this PR): why is the cert verification code not common between 1.3 and 1.2?
Just one question for my own education (no impact on this PR): why is the cert verification code not common between 1.3 and 1.2?
I have been wondering the same when working on this PR and I think there is no good reason. There are some differences (key usage checks for example I think) but most of the code in common. I've considered doing it in this PR but decided eventually that I did not have enough time to do it. I am creating an issue to not forget about it: #9018.
This fixes things for us, thanks!
Closing this pull request as we prefer to address the more general #9018 issue rather than #7079.