-
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
Remove MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION #4477
Remove MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION #4477
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.
Just a small nit, otherwise LGTM.
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.
Thanks!
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.
Please rebase to avoid the first merge commit.
@gilles-peskine-arm @ronald-cron-arm is one of you planning to review this, or should it be labeled "needs: reviewer"? |
It isn't on my queue now (but I may get around to it later if nobody else does). |
Not especially on my list, either. |
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 good to me, except for what looks like a mistake in conflict resolution, and the usual suggestions for improving the wording of the migration guide.
include/mbedtls/config.h
Outdated
@@ -1909,16 +1909,14 @@ | |||
#define MBEDTLS_VERSION_FEATURES | |||
|
|||
/** | |||
* \def MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION | |||
* \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 |
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 option was removed in #4581, we don't want to re-introduce it here. This is probably an issue with conflict resolution in the merge commit.
@@ -0,0 +1,13 @@ | |||
Remove the X509 parser sensitivity control for an unknown critical extension from config.h |
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.
It think it's clearer to say "Remove the config option MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
"
Remove the X509 parser sensitivity control for an unknown critical extension from config.h | ||
------------------------------------------------------------------------------------------ | ||
|
||
It affects users who use the `MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION` |
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.
I think we should provide a bit more context here. Suggested text: "This change does not affect users of the default configuration; it only affect users who enable this option. The X.509 standard says that implementation must reject critical extensions that they don't recognize, and this is is what Mbed TLS does by default. This option allowed to continue parsing those certificates but didn't provide a convenient way to handle those extensions." Then keep the second paragraph.
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.
Done
ba1197c
to
8dd46ab
Compare
Signed-off-by: TRodziewicz <[email protected]>
Signed-off-by: TRodziewicz <[email protected]>
Signed-off-by: TRodziewicz <[email protected]>
8dd46ab
to
0ea2576
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.
LGTM - cheers!
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.
Thanks for addressing my feedback. Looks good to me now.
Signed-off-by: TRodziewicz [email protected]
Description
The config option MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION is now redundant in the library (as of #3243) as there is a more flexible runtime option for dealing with unsupported extensions: mbedtls_x509_crt_parse_der_with_ext_cb.
Fixes: #4378
Status
IN DEVELOPMENT
Requires Backporting
NO?
Migrations
NO
Todos