Skip to content

Fix to match OpenSSL test behavior#347

Open
embhorn wants to merge 1 commit into
wolfSSL:masterfrom
embhorn:gh10790
Open

Fix to match OpenSSL test behavior#347
embhorn wants to merge 1 commit into
wolfSSL:masterfrom
embhorn:gh10790

Conversation

@embhorn

@embhorn embhorn commented Jun 26, 2026

Copy link
Copy Markdown
Member

Fix for Python tests after changes in wolfSSL/wolfssl#10793

@embhorn embhorn self-assigned this Jun 26, 2026
Copilot AI review requested due to automatic review settings June 26, 2026 18:45

Copilot AI 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.

Pull request overview

Updates the wolfSSL Python patchsets to align CPython’s test_ssl certificate-parsing expectations with the newer wolfSSL/OpenSSL behavior referenced in wolfSSL PR #10793, unblocking failing Python test suites across supported Python versions.

Changes:

  • Adjust test_parse_cert_CVE_2013_4238 expectations for wolfSSL to validate decoded SAN content (including embedded NULs) instead of expecting a parsing failure.
  • Add a wolfSSL-specific SAN ordering expectation for the NULL-byte certificate test.
  • Apply the same behavioral alignment consistently to the 3.12.11, 3.13.4, and 3.13.7 patch files.

Reviewed changes

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

File Description
Python/wolfssl-python-3.13.7.patch Updates CPython SSL test expectations for wolfSSL SAN parsing/order for the NULL-byte cert case.
Python/wolfssl-python-3.13.4.patch Same test expectation adjustment as 3.13.7, applied to the 3.13.4 patchset.
Python/wolfssl-python-3.12.11.patch Same test expectation adjustment, applied to the 3.12.11 patchset.

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

p = ssl._ssl._test_decode_cert(NULLBYTECERT)
if support.verbose:
sys.stdout.write("\n" + pprint.pformat(p) + "\n")
+ # wolfSSL preserves the embedded NULs and lists SAN entries in a different order.
p = ssl._ssl._test_decode_cert(NULLBYTECERT)
if support.verbose:
sys.stdout.write("\n" + pprint.pformat(p) + "\n")
+ # wolfSSL preserves the embedded NULs and lists SAN entries in a different order.
p = ssl._ssl._test_decode_cert(NULLBYTECERT)
if support.verbose:
sys.stdout.write("\n" + pprint.pformat(p) + "\n")
+ # wolfSSL preserves the embedded NULs and lists SAN entries in a different order.
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