Skip to content

fix: build error with OpenSSL 4.0#10222

Closed
raviksharma wants to merge 1 commit into
nextcloud:masterfrom
raviksharma:fix-openssl4-compat
Closed

fix: build error with OpenSSL 4.0#10222
raviksharma wants to merge 1 commit into
nextcloud:masterfrom
raviksharma:fix-openssl4-compat

Conversation

@raviksharma

Copy link
Copy Markdown

X509_REQ_get_subject_name() now returns const X509_NAME * in OpenSSL 4.0, causing a build error. const_cast since the name is mutated via X509_NAME_add_entry_by_txt.

Fixes https://bugs.launchpad.net/ubuntu/+source/nextcloud-desktop/+bug/2154940

@raviksharma raviksharma marked this pull request as draft June 22, 2026 17:29
X509_REQ_get_subject_name() now returns const X509_NAME * in OpenSSL 4.0.
Per the OpenSSL migration guide, create a mutable X509_NAME, populate it,
and set it on the request with X509_REQ_set_subject_name().

Fixes https://bugs.launchpad.net/ubuntu/+source/nextcloud-desktop/+bug/2154940
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.

2 participants