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

refactor: replace returning pyobject with bound<'p, pyany> in backend::keys module, private key functions #11983

Merged

Conversation

hoefling
Copy link
Contributor

@hoefling hoefling commented Nov 17, 2024

This PR is the continuation of #11966, but for the load_der_private_key, load_pem_private_key and private_key_from_pkey functions in backend::keys module, that does the replacement of CryptographyResult<pyo3::PyObject> return types by CryptographyResult<pyo3::Bound<'p, pyo3::PyAny>>, originally suggested by @alex in #11903 (comment).

@hoefling hoefling changed the title refactor: replace returning pyobject with bound<'p, pyany> in backend::keys refactor: replace returning pyobject with bound<'p, pyany> in backend::keys module, private key functions Nov 17, 2024
@alex alex merged commit 45409f7 into pyca:main Nov 17, 2024
60 checks passed
@hoefling hoefling deleted the refactor/remove-pyobject-return-type-in-backend-keys branch November 17, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants