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

http/client: use dynamically sized buffers for PEM setters #1117

Merged
merged 1 commit into from
May 15, 2024

Conversation

maximilianfridrich
Copy link
Contributor

@maximilianfridrich maximilianfridrich commented May 13, 2024

The setters http_client_set_certpem and http_client_set_keypem pre-allocated a fixed size buffer of 512 byte. The required size is known at that time, so the correct size can be allocated right away and no resizing is needed in mbuf_write_str.

@alfredh alfredh added this to the v3.13.0 milestone May 14, 2024
@alfredh
Copy link
Contributor

alfredh commented May 14, 2024

Thanks, if you dont mind I will merge this after the release tomorrow ...

@maximilianfridrich
Copy link
Contributor Author

Sounds good, there is no rush. Thanks @alfredh.

@sreimers sreimers merged commit c1e09de into baresip:main May 15, 2024
37 checks passed
@maximilianfridrich maximilianfridrich deleted the http_dynamic_pem branch June 19, 2024 05:05
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.

3 participants