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

Use mbedtls_x509_crt_parse_der_nocopy() when certificate is in DER format #32

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

AnthonyGrondin
Copy link
Contributor

Built on top of #30

Fix #17

I've measured the free heap size while using async_server.rs to compare between DER and PEM in local experiments, and this saves about 1KB of heap memory taken by a session.

@AnthonyGrondin AnthonyGrondin marked this pull request as ready for review July 15, 2024 15:41
Copy link
Collaborator

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

Thanks

@bjoernQ bjoernQ merged commit 27c781f into esp-rs:main Jul 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not make a copy of the X509 when parsing it to save RAM.
2 participants