Skip to contentSkip to conversation

conf: Remove openssl engines

PATCH In review Ryan Eatmon 2 participants 4 messages Sep 10

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 conf: Remove openssl engines

With the move to OpenSSL 4.0 [1], OpenSSL no longer has engines, so we need to remove them from our config.

[1] https://git.openembedded.org/openembedded-core/commit/?id=20bf704e5809e95036b998f0f45145cf7205b05b

---
 meta-arago-distro/conf/distro/arago.conf | 3 ---
 1 file changed, 3 deletions(-)
meta-arago-distro/conf/distro/arago.conf +0 -3
index f3feb8b5..f735c23f 100644
@@ -92,9 +92,6 @@ PACKAGECONFIG_GL:pn-libsdl2 = "gles2"
 # Add KMS/DRM backend support
 PACKAGECONFIG:append:pn-libsdl2 = " kmsdrm"
 
-# Enable cryptodev/devcrypto engine in OpenSSL 1.1
-PACKAGECONFIG:append:pn-openssl = " cryptodev-linux"
-
 # Enable GST_TRACER logging in gstreamer
 PACKAGECONFIG:append:pn-gstreamer1.0 = " tracer-hooks coretracers"
 
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/3 packagegroup-arago-crypto: Remove openssl engines

With the move to OpenSSL 4.0 [1], OpenSSL no longer has engines, so we need to remove them from the packagegroup.

[1] https://git.openembedded.org/openembedded-core/commit/?id=20bf704e5809e95036b998f0f45145cf7205b05b

---
 .../recipes-core/packagegroups/packagegroup-arago-crypto.bb      | 1 -
 1 file changed, 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-crypto.bb +0 -1
index a8c4e7f0..c94b1452 100644
@@ -8,7 +8,6 @@ CRYPTO_SUPPORT = "\
     openssl \
     openssl-bin \
     openssl-conf \
-    openssl-engines \
     cryptodev-module \
     opensc \
 "
Signature · 1 line
2.43.0
#2 lore raw

PATCH 3/3 netopeer2-server: Patch for OpenSSL 4.0

In reply to Ryan Eatmon

With the move to OpenSSL 4.0 [1] we need to patch some calls in netopeer2-server that are not 4.0 compliant.

[1] https://git.openembedded.org/openembedded-core/commit/?id=20bf704e5809e95036b998f0f45145cf7205b05b

---
 .../0001-Update-for-OpenSSL-4.0-support.patch | 64 +++++++++++++++++++
 .../sysrepo/netopeer2-server_git.bb           |  2 +
 2 files changed, 66 insertions(+)
 create mode 100644 meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/0001-Update-for-OpenSSL-4.0-support.patch
meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/0001-Update-for-OpenSSL-4.0-support.patch new file +64 -0
new file mode 100644
index 00000000..541c09b7
@@ -0,0 +1,64 @@
+From e8dec096bf30c0e074814af223717cd109634f05 Mon Sep 17 00:00:00 2001
+From: Ryan Eatmon <[email protected]>
+Date: Thu, 3 Sep 2026 17:32:39 -0500
+Subject: [PATCH] Update for OpenSSL 4.0 support
+
+Upstream-Status: Pending
+
+Signed-off-by: Ryan Eatmon <[email protected]>
+---
+ cli/commands.c | 21 ++++++++++++---------
+ 1 file changed, 12 insertions(+), 9 deletions(-)
+
+diff --git a/cli/commands.c b/cli/commands.c
+index 677fbe7..f4ad96f 100644
+--- a/cli/commands.c
++++ b/cli/commands.c
+@@ -1825,6 +1825,7 @@ parse_cert(const char *name, const char *path)
+     int i, j, has_san, first_san;
+     ASN1_OCTET_STRING *ip;
+     ASN1_INTEGER *bs;
++    BIGNUM *bn;
+     BIO *bio_out;
+     FILE *fp;
+     X509 *cert;
+@@ -1847,10 +1848,10 @@ parse_cert(const char *name, const char *path)
+     bio_out = BIO_new_fp(stdout, BIO_NOCLOSE);
+ 
+     bs = X509_get_serialNumber(cert);
++    bn = ASN1_INTEGER_to_BN(bs,NULL);
++
+     BIO_printf(bio_out, "-----%s----- serial: ", name);
+-    for (i = 0; i < bs->length; i++) {
+-        BIO_printf(bio_out, "%02x", bs->data[i]);
+-    }
++    BIO_printf(bio_out, "%s", BN_bn2hex(bn));
+     BIO_printf(bio_out, "\n");
+ 
+     BIO_printf(bio_out, "Subject: ");
+@@ -1903,14 +1904,16 @@ parse_cert(const char *name, const char *path)
+                 if (san_name->type == GEN_IPADD) {
+                     BIO_printf(bio_out, "IP:");
+                     ip = san_name->d.iPAddress;
+-                    if (ip->length == 4) {
+-                        BIO_printf(bio_out, "%d.%d.%d.%d", ip->data[0], ip->data[1], ip->data[2], ip->data[3]);
+-                    } else if (ip->length == 16) {
+-                        for (j = 0; j < ip->length; ++j) {
++                    const unsigned char *ptr = ASN1_STRING_get0_data(ip);
++                    int len = ASN1_STRING_length(ip);
++                    if (len == 4) {
++                        BIO_printf(bio_out, "%d.%d.%d.%d", ptr[0], ptr[1], ptr[2], ptr[3]);
++                    } else if (len == 16) {
++                        for (j = 0; j < len; ++j) {
+                             if ((j > 0) && (j < 15) && (j % 2 == 1)) {
+-                                BIO_printf(bio_out, "%02x:", ip->data[j]);
++                                BIO_printf(bio_out, "%02x:", ptr[j]);
+                             } else {
+-                                BIO_printf(bio_out, "%02x", ip->data[j]);
++                                BIO_printf(bio_out, "%02x", ptr[j]);
+                             }
+                         }
+                     }
+-- 
+2.43.0
+
meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb +2 -0
index e43ef9f6..6b78fbbb 100644
@@ -11,6 +11,8 @@ SRC_URI = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://netopeer2-serverd.service', '', d)} \
 "
 
+SRC_URI += "file://0001-Update-for-OpenSSL-4.0-support.patch"
+
 PV = "2.2.35+git"
 SRCREV = "6d1cb61ef3ce2274a91dc9cbc51318bcd0b54697"
 
Signature · 1 line
2.43.0
#3 lore raw
In reply to Ryan Eatmon

meta-arago / na / 20260910005856.3904973-1-reatmon

PRC Results: FAIL

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-arago][master][PATCH 1/3] conf: Remove openssl engines
WARN: Commit message does not include file/recipe name: conf: Remove openssl engines. (COMMIT-MESSAGE-2)
patch

WARN: Commit message should not include directory path to recipe: conf: Remove openssl engines.
conf (COMMIT-MESSAGE-3)
patch

For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887

=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-arago][master][PATCH 1/3] conf: Remove openssl engines
- Submitter: From: Ryan Eatmon <[email protected]>
- Date: Date: Wed, 9 Sep 2026 19:58:54 -0500
- Num Patches: 3
- Mailing List (public inbox) Commit SHA: 0cb90220913a019aba79d2cd3ada3f1eea052881

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master-wip
- Commit Author: Ryan Eatmon <[email protected]>
- Commit Subject: netopeer2-server: Patch for OpenSSL 4.0
- Commit SHA: 745d80a58f87d57cbccbf78d4a956b5611488a02

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: PASS
=========================================================
master
=====================
PASS

=========================================================
yocto-check-layers: FAIL
=========================================================
master - FAIL
=====================

ERROR: Multiple recipes found for mesa-demos

    oe-core/meta/recipes-graphics/mesa/mesa-demos_9.0.0.bb
    meta-arago/meta-arago-distro/recipes-graphics/mesa/mesa-demos_git.bb