Skip to content

Add an index of serial numbers to X509_CRL for fast lookups#5511

Merged
randombit merged 1 commit intomasterfrom
jack/add-crl-index
Apr 2, 2026
Merged

Add an index of serial numbers to X509_CRL for fast lookups#5511
randombit merged 1 commit intomasterfrom
jack/add-crl-index

Conversation

@randombit
Copy link
Copy Markdown
Owner

No description provided.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 89.534% (+0.008%) from 89.526%
when pulling dba123f on jack/add-crl-index
into 87d9feb on master.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves X509_CRL::is_revoked() performance by building and caching an index of revoked certificate serial numbers inside the CRL’s decoded state, avoiding repeated linear scans over CRL entries during revocation checks.

Changes:

  • Add a cached serial-number index (m_revoked_serials) to CRL_Data.
  • Build the index during CRL construction and after decoding (update_index()).
  • Replace the linear scan in X509_CRL::is_revoked() with a set membership check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@randombit randombit merged commit 021b73c into master Apr 2, 2026
50 checks passed
@randombit randombit deleted the jack/add-crl-index branch April 2, 2026 00:39
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