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

Update get_client_cert_chain API documentation #4260

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

goatgoose
Copy link
Contributor

Description of changes:

Currently the s2n_connection_get_client_cert_chain() API documentation is a bit unclear as to what's being retrieved. The output argument is called "der_cert_chain_out", which implies that the output is just a list of DER-encoded certificates. Without reading the client_cert code, it's not clear that this function actually returns the certificate chain as received from the client, which includes length values prepending each DER-encoding.

This PR updates the API documentation to make this more clear.

Testing:

Documentation change - no new tests.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Oct 24, 2023
@goatgoose goatgoose force-pushed the client-cert-getter-docs branch from da298e8 to 798f97a Compare October 24, 2023 18:59
@goatgoose goatgoose force-pushed the client-cert-getter-docs branch from 798f97a to d1eb3e4 Compare October 24, 2023 18:59
@goatgoose goatgoose marked this pull request as ready for review October 24, 2023 19:22
@goatgoose goatgoose enabled auto-merge (squash) October 25, 2023 21:06
@goatgoose goatgoose merged commit 80db009 into aws:main Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants