Skip to content

Add BN_bn2binpad API and enable OpenVPN master CI testing#10148

Merged
JacobBarthelmeh merged 2 commits intowolfSSL:masterfrom
julek-wolfssl:openvpn-master-bn2binpad
Apr 24, 2026
Merged

Add BN_bn2binpad API and enable OpenVPN master CI testing#10148
JacobBarthelmeh merged 2 commits intowolfSSL:masterfrom
julek-wolfssl:openvpn-master-bn2binpad

Conversation

@julek-wolfssl
Copy link
Copy Markdown
Member

No description provided.

@julek-wolfssl julek-wolfssl self-assigned this Apr 7, 2026
Copilot AI review requested due to automatic review settings April 7, 2026 12:43
Copy link
Copy Markdown
Contributor

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

Note

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

Adds OpenSSL-compatible BN_bn2binpad support to wolfSSL’s OpenSSL shim layer and updates the OpenVPN GitHub Actions workflow to test against OpenVPN master again now that the API exists.

Changes:

  • Added wolfSSL_BN_bn2binpad declaration + BN_bn2binpad macro mapping.
  • Implemented wolfSSL_BN_bn2binpad with left-zero-padding semantics and size checks.
  • Expanded BN API tests and updated OpenVPN CI matrix to include master.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
wolfssl/openssl/bn.h Exposes wolfSSL_BN_bn2binpad and maps BN_bn2binpad to it.
src/ssl_bn.c Implements wolfSSL_BN_bn2binpad encoding/padding behavior.
tests/api/test_ossl_bn.c Adds coverage for BN_bn2binpad success/error cases.
.github/workflows/openvpn.yml Re-enables testing against OpenVPN master in CI matrix.

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

Comment thread src/ssl_bn.c
Comment thread tests/api/test_ossl_bn.c Outdated
Copilot AI review requested due to automatic review settings April 8, 2026 10:10
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


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

@julek-wolfssl julek-wolfssl force-pushed the openvpn-master-bn2binpad branch from d8e9584 to 312de40 Compare April 8, 2026 13:06
Copilot AI review requested due to automatic review settings April 8, 2026 16:11
@julek-wolfssl julek-wolfssl force-pushed the openvpn-master-bn2binpad branch from 312de40 to 175cdaa Compare April 8, 2026 16:11
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


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

Comment thread src/ssl_bn.c
Comment thread tests/api/test_ossl_bn.c
Comment thread .github/workflows/codespell.yml
@dgarske
Copy link
Copy Markdown
Member

dgarske commented Apr 10, 2026

@julek-wolfssl please address #10148 (review)

Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

🐺 Skoll Code Review

Overall recommendation: APPROVE
Findings: 2 total — 2 posted, 0 skipped

Posted findings

  • [Low] Dead code: numBytes < 0 check can never triggersrc/ssl_bn.c:497-499
  • [Medium] Missing test for toLen == 0 edge casetests/api/test_ossl_bn.c:326-357

Review generated by Skoll via openclaw

Comment thread src/ssl_bn.c
Comment thread tests/api/test_ossl_bn.c
Copilot AI review requested due to automatic review settings April 13, 2026 13:50
@julek-wolfssl julek-wolfssl force-pushed the openvpn-master-bn2binpad branch from 0c43158 to 3e74f84 Compare April 13, 2026 13:50
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


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

Comment thread wolfssl/openssl/bn.h
@julek-wolfssl
Copy link
Copy Markdown
Member Author

julek-wolfssl commented Apr 13, 2026

retest this please unrelated.

@julek-wolfssl
Copy link
Copy Markdown
Member Author

Failures not related

@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

Retest this please Jenkins

@JacobBarthelmeh JacobBarthelmeh merged commit b9514e7 into wolfSSL:master Apr 24, 2026
417 of 421 checks passed
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.

5 participants