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

client: add ciphersuite and version arrays #242

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

divergentdave
Copy link
Contributor

This adds arrays of ciphersuites and versions as suggested in #165 and #203.

Copy link
Collaborator

@jsha jsha left a comment

Choose a reason for hiding this comment

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

This looks great, thank you! One interesting thing I noticed:

extern const uint16_t RUSTLS_DEFAULT_VERSIONS[2];

The length of the array is part of the declaration. That feels a little redundant with RUSTLS_DEFAULT_VERSIONS_LEN, but I guess the latter is more convenient that sizeof(RUSTLS_DEFAULT_VERSIONS)/sizeof(uint16_t). The only downside I can see is if someone comes to depend on the latter, and uses a version of the header that is out of date with respect to the library. I think that's fine though.

@divergentdave
Copy link
Contributor Author

Whoops, I had gotten the version order wrong at first, and then I only fixed it in one place.

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