Skip to content
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

Set call back to delegate entire certificate validation process #94

Open
wants to merge 1 commit into
base: tls13-prototype
Choose a base branch
from

Conversation

lhuang04
Copy link
Collaborator

Summary:
Set call back, f_verify_callback, to delegate the entire certificate
validation process to application.
The application has additional validation logic which is not supported
in default mbedtls implementation, such as cert pinning. It may also
delegate some validation process to OS.

Test Plan:
Build and make test

Reviewers:
hanno.becker@arm.com,hannes.tschofenig@arm.com,junqi.wang@live.com,zhi.han@gmail.com

Subscribers:

Tasks:

Tags:

Summary:
Set call back, `f_verify_callback`, to delegate the entire certificate
validation process to application.
The application has additional validation logic which is not supported
in default mbedtls implementation, such as cert pinning. It may also
delegate some validation process to OS.

Test Plan:
Build and make test

Reviewers:
hanno.becker@arm.com,hannes.tschofenig@arm.com,junqi.wang@live.com,zhi.han@gmail.com

Subscribers:

Tasks:

Tags:
@hanno-becker

This comment has been minimized.

Copy link
Collaborator

@hanno-becker hanno-becker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lhuang04 This sounds like a feature extension to Mbed TLS that needs discussion independently of the context of the TLS 1.3 prototype. As such, it needs more information on motivation and design rationale -- if not here, it will certainly be necessary when trying to upstream to Mbed TLS.

Could you describe in more detail which problem you're trying to solve? In particular, I'd like to understand if/why not the existing verification callback mechanism in mbedtls_x509_crt_verify() is insufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants