Skip to content

Fix build with OpenSSL 4.0 opaque ASN1_STRING - #34

Open
raviksharma wants to merge 1 commit into
libesmtp:masterfrom
raviksharma:fix-openssl4-compat
Open

Fix build with OpenSSL 4.0 opaque ASN1_STRING#34
raviksharma wants to merge 1 commit into
libesmtp:masterfrom
raviksharma:fix-openssl4-compat

Conversation

@raviksharma

@raviksharma raviksharma commented Jul 28, 2026

Copy link
Copy Markdown

OpenSSL 4.0 made ASN1_STRING opaque, so direct access to ->data and ->length fields no longer compiles. Use ASN1_STRING_get0_data() and ASN1_STRING_length() accessors which are available since OpenSSL 1.1.0.

Fixes #33

Debian bug: https://bugs.debian.org/1138308
Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/libesmtp/+bug/2154855

OpenSSL 4.0 made ASN1_STRING opaque, so direct access to ->data and
->length fields no longer compiles. Use ASN1_STRING_get0_data() and
ASN1_STRING_length() accessors which are available since OpenSSL 1.1.0.

Fixes libesmtp#33
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.

The build fails with OpenSSL4

1 participant