Skip to content

Use ASN1_STRING accessors for opaque ASN1_INTEGER (OpenSSL 4.0) - #317

Open
raviksharma wants to merge 1 commit into
lefcha:masterfrom
raviksharma:fix-openssl4-asn1
Open

Use ASN1_STRING accessors for opaque ASN1_INTEGER (OpenSSL 4.0)#317
raviksharma wants to merge 1 commit into
lefcha:masterfrom
raviksharma:fix-openssl4-asn1

Conversation

@raviksharma

Copy link
Copy Markdown

OpenSSL 4.0 made ASN1_INTEGER (aka ASN1_STRING) opaque. Direct
access to struct members ->length, ->type, and ->data no longer
compiles. Replace with accessor functions available since OpenSSL 1.1.0.

Ubuntu bug: https://launchpad.net/bugs/2155005
Debian bug: https://bugs.debian.org/1138453

OpenSSL 4.0 made ASN1_INTEGER opaque. Replace direct struct member
access (->length, ->type, ->data) with ASN1_STRING_length(),
ASN1_STRING_type(), ASN1_STRING_get0_data().
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.

1 participant