Skip to content

Build fixes for older wolfSSL or FIPS variants#133

Merged
rlm2002 merged 2 commits intowolfSSL:masterfrom
cconlon:fipsFixes
Jul 24, 2025
Merged

Build fixes for older wolfSSL or FIPS variants#133
rlm2002 merged 2 commits intowolfSSL:masterfrom
cconlon:fipsFixes

Conversation

@cconlon
Copy link
Member

@cconlon cconlon commented Jul 23, 2025

This PR includes two small fixes for older wolfSSL build or FIPS build compatibility:

  • Remove explicit inclusion of wolfssl/wolfcrypt/oid_sum.h. It is not available in older builds, and gets pulled in automatically by other headers in newer builds anyways.
  • Define DH_MAX_SIZE if not defined in native wolfSSL. Some older versions and FIPS variants don't have this defined.

@cconlon cconlon self-assigned this Jul 23, 2025
@cconlon cconlon requested a review from Copilot July 23, 2025 21:21
Copy link

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 addresses compatibility issues with older wolfSSL versions and FIPS variants by making two targeted changes to improve build compatibility across different wolfSSL configurations.

  • Removes explicit inclusion of wolfssl/wolfcrypt/oid_sum.h header that may not be available in older builds
  • Adds conditional definition of DH_MAX_SIZE macro for older versions and FIPS variants that lack this definition

Reviewed Changes

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

File Description
jni/jni_asn.c Removes explicit inclusion of oid_sum.h header for older build compatibility
jni/jni_dh.c Adds conditional DH_MAX_SIZE definition with platform-specific logic for older/FIPS builds

@cconlon cconlon assigned rlm2002 and unassigned cconlon Jul 23, 2025
@rlm2002 rlm2002 merged commit 785c782 into wolfSSL:master Jul 24, 2025
45 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.

3 participants