Skip to content

x509attr: fix const-qualification for openssl-master#1007

Closed
swhitt wants to merge 1 commit intoruby:masterfrom
swhitt:fix-openssl-master-const-qualifiers
Closed

x509attr: fix const-qualification for openssl-master#1007
swhitt wants to merge 1 commit intoruby:masterfrom
swhitt:fix-openssl-master-const-qualifiers

Conversation

@swhitt
Copy link
Contributor

@swhitt swhitt commented Feb 16, 2026

X509_ATTRIBUTE_get0_object() and X509_ATTRIBUTE_get0_type() return const pointers in OpenSSL master, which breaks the build with -Werror=discarded-qualifiers.

Noticed this while working on #1004 — the openssl-master CI job was already failing before that PR, and it's still failing on master now.

X509_ATTRIBUTE_get0_object() and X509_ATTRIBUTE_get0_type() return
const pointers in OpenSSL master, causing -Werror build failures.
@swhitt
Copy link
Contributor Author

swhitt commented Feb 16, 2026

The openssl-master CI job now gets past compilation (the const fix works), but hits pre-existing test failures (test_tmp_dh, test_tmp_dh_callback, several TestPKCS12 tests). Master itself currently fails at compile time on the same ossl_x509attr.c errors this PR fixes, so these test failures aren't new but just weren't reachable before.

@swhitt
Copy link
Contributor Author

swhitt commented Feb 16, 2026

This is fixed more comprehensively in #1005

@swhitt swhitt closed this Feb 16, 2026
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

Comments