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

chore(openssl): Update OpenSSL function signatures to use *mut instead of *const #45

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

art049
Copy link
Member

@art049 art049 commented Jun 26, 2024

This pull request was created automatically by CodSpeed to track performance changes of the pull request cloudflare/pingora#308.

The original branch is fork-308-pluveto/chore/openssl_signatures

pluveto added 2 commits June 26, 2024 18:06
…d of *const

This PR updates the function signatures in the `ext.rs` file to use `*mut` instead of `*const` for the `ssl` and `cert` parameters in the `SSL_use_certificate` and `SSL_use_PrivateKey` functions. This indicates that the functions can modify the SSL and certificate objects as intended.

Ref:
- https://www.openssl.org/docs/man1.1.1/man3/SSL_use_certificate.html
https://boringssl.googlesource.com/boringssl/+/refs/tags/fips-20180730/ssl/ssl_cert.cc#292

Refactor the `cvt` function to use `c_long` instead of `c_int` for the return type for better compatibility with the types used in the OpenSSL library.

Also, add a test case for the `ssl_set_groups_list` function to ensure it handles valid and invalid input correctly.
Copy link

codspeed-hq bot commented Jun 26, 2024

CodSpeed Performance Report

Merging #45 will not alter performance

Comparing fork-308-pluveto/chore/openssl_signatures (e4c1b43) with main (519d1f8)

Summary

✅ 2 untouched benchmarks

@art049 art049 force-pushed the main branch 2 times, most recently from fd63f92 to 519d1f8 Compare July 13, 2024 00:00
@coco-speed coco-speed force-pushed the main branch 2 times, most recently from e3459e9 to 21bba97 Compare July 26, 2024 20:40
@coco-speed coco-speed force-pushed the main branch 2 times, most recently from 972578d to 143f455 Compare August 16, 2024 17:40
@coco-speed coco-speed force-pushed the main branch 2 times, most recently from 5f4f3a5 to ccdb32c Compare August 23, 2024 21:55
@coco-speed coco-speed force-pushed the main branch 4 times, most recently from 238a17a to fa851d6 Compare August 30, 2024 18:20
@coco-speed coco-speed force-pushed the main branch 2 times, most recently from d94ad0d to 4b82093 Compare September 20, 2024 02:00
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.

2 participants