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

key_pair: emphasize PKCS8 input requirement in constructor fn names #249

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

cpu
Copy link
Member

@cpu cpu commented Mar 19, 2024

This branch pulls out the suggested rename from #242 in order to unblock release planning (#236) while the more generic key pair constructor is worked out.

cpu added 2 commits March 19, 2024 13:48
The `KeyPair::from_pem_and_sign_algo` fn expects PKCS8 formatted PEM as
input. This commit renames the fn to
`Keypair::from_pkcs8_pem_and_sign_algo` to emphasize this, and to pave
the way for a more generalized fn to be added in the future.
The `KeyPair::from_der_and_sign_algo` fn expects PKCS8 formatted DER as
input. This commit renames the fn to
`Keypair::from_pkcs8_der_and_sign_algo` to emphasize this, and to pave
the way for a more generalized fn to be added in the future.
Copy link
Member

@est31 est31 left a comment

Choose a reason for hiding this comment

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

very good change

@cpu cpu added this pull request to the merge queue Mar 19, 2024
Merged via the queue into rustls:main with commit b61393a Mar 19, 2024
20 checks passed
@cpu cpu deleted the cpu-emphasize-pkcs8 branch March 19, 2024 20:12
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.

3 participants