Skip to content

aktualizr: fix the build against OpenSSL 4.0 - #229

Merged
ricardosalveti merged 1 commit into
uptane:masterfrom
ricardosalveti:aktualizr-openssl4
Sep 10, 2026
Merged

ricardosalveti merged 1 commit into
uptane:masterfrom
ricardosalveti:aktualizr-openssl4

Conversation

@ricardosalveti

Copy link
Copy Markdown
Collaborator

OpenSSL 4.0 returns a const X509_NAME pointer from X509_get_subject_name() and removed the ENGINE API from libcrypto, so libaktualizr fails to compile and then to link:

crypto.cc:625:45: error: invalid conversion from 'const X509_NAME*'
to 'X509_NAME*' [-fpermissive]
crypto.cc:149: undefined reference to 'ENGINE_load_private_key'

Add the const fix submitted as uptane/aktualizr#138 and the patch submitted as uptane/aktualizr#139 that only compiles the engine-backed key loading with BUILD_P11. Builds without the hsm feature now link against OpenSSL 4.0; builds with it fail early at compile time until the PKCS#11 support is ported to OpenSSL providers.

OpenSSL 4.0 returns a const X509_NAME pointer from
X509_get_subject_name() and removed the ENGINE API from libcrypto, so
libaktualizr fails to compile and then to link:

  crypto.cc:625:45: error: invalid conversion from 'const X509_NAME*'
  to 'X509_NAME*' [-fpermissive]
  crypto.cc:149: undefined reference to 'ENGINE_load_private_key'

Add the const fix submitted as uptane/aktualizr#138 and the patch
submitted as uptane/aktualizr#139 that only compiles the engine-backed
key loading with BUILD_P11. Builds without the hsm feature now link
against OpenSSL 4.0; builds with it fail early at compile time until
the PKCS#11 support is ported to OpenSSL providers.

Assisted-by: Claude Code:claude-fable-5-1
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
@ricardosalveti

Copy link
Copy Markdown
Collaborator Author

This is a stop-gap until uptane/aktualizr#137 is fixed properly (migrating from engine to provider).

ricardosalveti added a commit to ricardosalveti/meta-qcom that referenced this pull request Sep 9, 2026
OE-Core moved to OpenSSL 4.0 and aktualizr from meta-updater no longer
compiles, which breaks every qcom-distro-sota image. Carry the fix
submitted as uptane/meta-updater#229 as a kas patch until it lands.

Assisted-by: Claude Code:claude-fable-5-1
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
@mergify

mergify Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@ricardosalveti
ricardosalveti merged commit 9f1d5c1 into uptane:master Sep 10, 2026
2 checks passed
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