Skip to content

the examples pem.c --padding flag does not need gated behind WOLFSSL_DER_TO_PEM#10664

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
JacobBarthelmeh:nightly
Jun 12, 2026
Merged

the examples pem.c --padding flag does not need gated behind WOLFSSL_DER_TO_PEM#10664
dgarske merged 1 commit into
wolfSSL:masterfrom
JacobBarthelmeh:nightly

Conversation

@JacobBarthelmeh

Copy link
Copy Markdown
Contributor

Reproduce with : ./configure --enable-enckeys --enable-des3 && make check

Issue was reported in the nightly CDT enable tests.

@JacobBarthelmeh JacobBarthelmeh self-assigned this Jun 11, 2026
Copilot AI review requested due to automatic review settings June 11, 2026 17:54
@JacobBarthelmeh JacobBarthelmeh added the For This Release Release version 5.9.2 label Jun 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR fixes the examples/pem/pem.c --padding CLI option so it’s no longer gated behind WOLFSSL_DER_TO_PEM, aligning behavior with builds that enable encrypted keys but don’t enable DER-to-PEM conversion.

Changes:

  • Expose --padding in the usage text whenever encrypted-key support is enabled (and password-based encryption is available).
  • Parse --padding outside the WOLFSSL_DER_TO_PEM argument-handling block so the flag is accepted regardless of DER-to-PEM support.

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

@JacobBarthelmeh

Copy link
Copy Markdown
Contributor Author

Retest this please Jenkins. FIPS 140-2 failing test.

@dgarske dgarske left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Skoll Code Review

Scan type: reviewOverall recommendation: COMMENT
Findings: 1 total — 1 posted, 0 skipped
1 finding(s) posted as inline comments (see file-level comments below)

Posted findings

  • [Low] Adjacent duplicate preprocessor guard for --padding optionexamples/pem/pem.c:828-848

Review generated by Skoll

Comment thread examples/pem/pem.c
Comment thread examples/pem/pem.c
@dgarske dgarske merged commit fb80740 into wolfSSL:master Jun 12, 2026
300 of 335 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For This Release Release version 5.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants