Skip to content

Conversation

@DwarfsLord
Copy link

While attempting to add an additional backend (rustls/ring), I had difficulties with the LocalKeyPair::raw_components function.

Ring does not like you to extract the private key out of a Key pair.

Considering that this function was (as far as I am aware) not part of the public API, but only used internally, I have decided to create this PR that moves it out of the trait implementation and into the OpenSSL specific impl block.

Due to the nature of scoping, and of where the tests are positioned, this also leads to an suboptimal mod structure in crypto/mod.rs.
If you know of a more idiomatic way to get the include situation sorted, feel free to let me know/edit the PR.

Thank you to all the maintainers!

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.

1 participant