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

Correctly encode a CRL with empty revokedCertificates. #295

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

partim
Copy link
Member

@partim partim commented Jun 11, 2024

This PR fixes the encoding of CRLs by leaving out the revokedCertificates element entirely if it is empty as required by section 5.1.2.6 of RFC 5280.

There is no test whether it is actually left out since I can’t quite think of a way to do that. I have, however, manually verified the encoding and there are now tests for both cases that check that we ourselves accept the result.

@partim partim requested a review from a team June 11, 2024 15:10
cjeker pushed a commit to rpki-client/rpki-client-openbsd that referenced this pull request Jun 12, 2024
@partim partim merged commit bdf9a32 into main Jun 12, 2024
24 checks passed
@partim partim deleted the fix-encoding-empty-crl branch June 12, 2024 09:41
partim added a commit that referenced this pull request Jun 21, 2024
Bug fixes

* Correctly encode a CRL with empty revokedCertificates. ([#295])
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