Skip to content

Conversation

@mjdemilliano
Copy link
Contributor

The definitions for the following functions are not always available when wolfSSL is configured to only contain a minimum of functionality:

  • wc_GetPkcs8TraditionalOffset (only with ASN, which is required for RSA)
  • wc_PemToDer (only when KEYGEN is enabled)
  • wc_DerToPemEx (only when KEYGEN is enabled)

This change allows for building the Python wrapper when ASN and RSA are both disabled.

The definitions for the following functions are not always available
when wolfSSL is configured to only contain a minimum of functionality:
- wc_GetPkcs8TraditionalOffset (only with ASN, which is required for
      RSA)
- wc_PemToDer (only when KEYGEN is enabled)
- wc_DerToPemEx (only when KEYGEN is enabled)

This change allows for building the Python wrapper when ASN and RSA
are both disabled.
Copy link
Contributor

@lealem47 lealem47 left a comment

Choose a reason for hiding this comment

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

Just the one comment, the rest of the changes look good

@lealem47 lealem47 assigned mjdemilliano and unassigned wolfSSL-Bot Dec 3, 2025
It's part of the ASN feature but since it's also used by the RSA
binding this function must also be part of the library when only
the RSA feature is selected.
These functions are actually not tied to the KEYGEN feature.
@mjdemilliano
Copy link
Contributor Author

Testing the various combinations is a little tricky because it isn’t automated. I moved the two keygen functions to the ASN feature because in asn.c they do not seem to depend on the keygen configuration option.

@lealem47 lealem47 merged commit 427a1a3 into wolfSSL:master Dec 11, 2025
1 check 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