Skip to content

Conversation

@botovq
Copy link
Contributor

@botovq botovq commented Nov 22, 2025

OpenSSL 4 plans to make ASN1_STRING opaque. Using a forward declaration rather than a redefinition avoids the build breakage in cryptography's cffi when it tries to validate the sizes of the members.

@alex
Copy link
Member

alex commented Nov 22, 2025

oh my god, apparently pyopenssl still uses internals 😭. Looks like we have ASN1_STRING_get0_data and ASN1_STRING_length exposed, I'll go fix there.

@botovq
Copy link
Contributor Author

botovq commented Nov 22, 2025

I see this causes issues in pyopenssl which will need to be addressed first.

@alex
Copy link
Member

alex commented Nov 22, 2025

pyca/pyopenssl#1462 has the fix -- will mark this for the next milestone and expect to rebase/merge after our next pyopenssl release.

@alex alex added this to the Forty Eighth Release milestone Nov 22, 2025
OpenSSL 4 plans to make ASN1_STRING opaque [1]. Using a forward
declaration rather than a redefinition avoids the build breakage
in cryptography's cffi when it tries to validate the sizes of the
members.

[1]: openssl/openssl#29117
@botovq botovq force-pushed the opaque-asn1-string branch from 1418191 to e2a8124 Compare November 22, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants