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

FFI: Expose the peer cert chain #1691

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bwoebi
Copy link
Contributor

@bwoebi bwoebi commented Dec 14, 2023

Just wanted to use Connection::peer_cert_chain() and realized it's not actually exposed via FFI.

The vector cannot be trivially returned by FFI, except by translating the vector to a &[Certificate] with a struct Certificate { *mut u8; size_t; }, and then adding a free-function for this.

I think directly fetching the values one by one is a superior approach for FFI purposes in terms of usability and complexity, hence this PR proposes this.

@bwoebi bwoebi requested a review from a team as a code owner December 14, 2023 15:21
@bwoebi bwoebi changed the title Expose the peer cert chain via FFI FFI: Expose the peer cert chain Dec 14, 2023
@bwoebi
Copy link
Contributor Author

bwoebi commented Feb 22, 2024

@LPardue Sorry that I ping you here after 2 months now, but is there a chance that this will be reviewed and merged? Thanks!

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.

None yet

1 participant