Skip to content

Add CRL extraction logic - #275

Open
stenslae wants to merge 1 commit into
wolfSSL:pr-x509-onlyfrom
stenslae:pr-pem-only
Open

Add CRL extraction logic#275
stenslae wants to merge 1 commit into
wolfSSL:pr-x509-onlyfrom
stenslae:pr-pem-only

Conversation

@stenslae

@stenslae stenslae commented Jul 15, 2026

Copy link
Copy Markdown
Member

Introduces fully integrated CRL (Certificate Revocation List) loading and verification support.

Depends on #276

@stenslae stenslae self-assigned this Jul 15, 2026
@stenslae
stenslae changed the base branch from main to pr-x509-only July 27, 2026 20:43
@stenslae
stenslae requested review from wolfSSL-Fenrir-bot and removed request for wolfSSL-Fenrir-bot July 27, 2026 20:45

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/sign-verify/clu_x509_verify.c Outdated
Comment thread src/sign-verify/clu_x509_verify.c Outdated
@stenslae
stenslae marked this pull request as ready for review July 27, 2026 21:17
@stenslae
stenslae force-pushed the pr-pem-only branch 3 times, most recently from ad17d95 to 23283ad Compare July 27, 2026 22:41
@stenslae
stenslae requested review from wolfSSL-Fenrir-bot and removed request for wolfSSL-Fenrir-bot July 28, 2026 15:20

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src

No new issues found in the changed files. ✅

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src

No new issues found in the changed files. ✅

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src

Findings: 3
3 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/x509/clu_x509_sign.c
Comment thread src/x509/clu_cert_setup.c
Comment thread wolfclu/clu_header_main.h Outdated
Comment thread wolfclu/clu_header_main.h Outdated
Comment thread src/x509/clu_cert_setup.c
Comment thread src/x509/clu_x509_sign.c

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/sign-verify/clu_x509_verify.c
Comment thread src/sign-verify/clu_x509_verify.c

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/sign-verify/clu_x509_verify.c Outdated
Comment thread src/sign-verify/clu_x509_verify.c Outdated

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread wolfclu/x509/clu_cert.h
Comment thread wolfclu/x509/clu_cert.h

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #275

Scan targets checked: wolfclu-bugs, wolfclu-src
Findings: 2

Low (2)

No-op selfSigned guard in wolfCLU_BuildAndSignNative

File: src/x509/clu_cert_setup.c:1969
Function: wolfCLU_BuildAndSignNative
Category: Dead/unreachable code

wolfCLU_X509FillCert is called with caCert=NULL, which already unconditionally sets cert->selfSigned = 1 internally; the !isCSR guarded reassignment has no effect for either CSR or cert generation.

Recommendation: Remove the redundant reassignment, or pass appropriate caCert semantics so the !isCSR condition actually differentiates behavior.

Referenced code: src/x509/clu_cert_setup.c:1969-1971 (3 lines)


No-op selfSigned guard in wolfCLU_CertSignNative

File: src/x509/clu_x509_sign.c:1881
Function: wolfCLU_CertSignNative
Category: Dead/unreachable code

wolfCLU_X509FillCert already sets cert->selfSigned = 1 whenever caCert == x509 (or NULL); this follow-up assignment duplicates that with no observable effect.

Recommendation: Remove the redundant block since wolfCLU_X509FillCert already computes selfSigned from caCert/x509.

Referenced code: src/x509/clu_x509_sign.c:1881-1883 (3 lines)


This review was generated automatically by Fenrir. Findings are non-blocking.

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