Skip to content

Fixes to run python with --enable-all#9831

Open
julek-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
julek-wolfssl:pytho-3.13.4
Open

Fixes to run python with --enable-all#9831
julek-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
julek-wolfssl:pytho-3.13.4

Conversation

@julek-wolfssl
Copy link
Member

@julek-wolfssl julek-wolfssl commented Feb 24, 2026

Depends on wolfSSL/osp#322

Copilot AI review requested due to automatic review settings February 24, 2026 23:22
@julek-wolfssl julek-wolfssl self-assigned this Feb 24, 2026
Copy link
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

This PR implements fixes to enable Python compatibility when wolfSSL is built with the --enable-all configuration flag. The changes address version compatibility, hash algorithm support, and cipher suite handling.

Changes:

  • Repositioned WOLFSSL_PYTHON version compatibility check to take precedence over other configurations
  • Added BLAKE2 hash algorithm support (BLAKE2B and BLAKE2S) throughout the EVP layer
  • Refactored cipher suite stack handling to use insertion-based approach instead of manual node linking

Reviewed changes

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

Show a summary per file
File Description
wolfssl/openssl/opensslv.h Moved WOLFSSL_PYTHON version definition earlier in conditional chain
wolfssl/openssl/evp.h Added BLAKE2/BLAKE2S includes and union members
wolfssl/internal.h Added declaration for new heap-aware stack creation function
wolfcrypt/src/evp.c Implemented BLAKE2 algorithm support in EVP layer with init, update, and final operations
src/x509.c Fixed registeredID encoding to use DER format and removed conditional serial number handling
src/ssl_sk.c Refactored to use XMEMCPY instead of custom copy function and added heap parameter support
src/ssl.c Simplified cipher suite stack creation using insertion API instead of manual linking
src/internal.c Added max fragment size limiting for send operations
.github/workflows/python.yml Added CI workflow for Python 3.12.11, 3.13.4, and 3.13.7 testing

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

- Add a GitHub Actions workflow to automate testing of Python integration
- Implement Blake2b and Blake2s hash functions into the EVP API.
- Improve OpenSSL compatibility by standardizing ASN.1 encoding for
serial numbers and registered IDs, streamlining cipher stack management, and optimizing stack node copying.
- Enforce maximum fragment size during data transmission to ensure proper TLS/DTLS record fragmentation.
Copilot AI review requested due to automatic review settings February 25, 2026 17:48
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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