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

raise an exception instead of returning an empty list for pkcs7 cert loading #9947

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

reaperhulk
Copy link
Member

as davidben points out in #9926 we are calling a load certificates function and an empty value doesn't necessarily mean empty because PKCS7 contains multitudes. erroring is more correct.

as davidben points out in pyca#9926 we are calling a specific load
certificates function and an empty value doesn't necessarily mean empty
because PKCS7 contains multitudes. erroring is more correct.
Copy link
Member

@alex alex left a comment

Choose a reason for hiding this comment

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

changelog

CHANGELOG.rst Outdated Show resolved Hide resolved
CHANGELOG.rst Outdated Show resolved Hide resolved
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
@alex alex merged commit 3165db8 into pyca:main Dec 1, 2023
57 checks passed
@reaperhulk reaperhulk deleted the error-instead branch December 2, 2023 15:48
frenzymadness pushed a commit to frenzymadness/cryptography that referenced this pull request Feb 7, 2024
…loading (pyca#9947)

* raise an exception instead of returning an empty list

as davidben points out in pyca#9926 we are calling a specific load
certificates function and an empty value doesn't necessarily mean empty
because PKCS7 contains multitudes. erroring is more correct.

* changelog

* Update CHANGELOG.rst

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>

---------

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
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.

None yet

2 participants