diff --git a/meta-digi-dey/recipes-connectivity/openssl/openssl/0003-Modify-openssl.cnf-to-automatically-load-the-cryptoc.patch b/meta-digi-dey/recipes-connectivity/openssl/openssl/0003-Modify-openssl.cnf-to-automatically-load-the-cryptoc.patch new file mode 100644 index 000000000..36afe491d --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/openssl/openssl/0003-Modify-openssl.cnf-to-automatically-load-the-cryptoc.patch @@ -0,0 +1,40 @@ +From: Gabriel Valcazar +Date: Wed, 2 May 2018 18:49:28 +0200 +Subject: [PATCH] Modify openssl.cnf to automatically load the cryptochip + engine + +https://jira.digi.com/browse/DEL-5592 + +Signed-off-by: Gabriel Valcazar +--- + apps/openssl.cnf | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/apps/openssl.cnf b/apps/openssl.cnf +index 1eb86c4..49d9d83 100644 +--- a/apps/openssl.cnf ++++ b/apps/openssl.cnf +@@ -3,6 +3,8 @@ + # This is mostly being used for generation of certificate requests. + # + ++openssl_conf = openssl_init ++ + # This definition stops the following lines choking if HOME isn't + # defined. + HOME = . +@@ -348,3 +350,14 @@ tsa_name = yes # Must the TSA name be included in the reply? + # (optional, default: no) + ess_cert_id_chain = no # Must the ESS cert id chain be included? + # (optional, default: no) ++ ++[ openssl_init ] ++engines = engine_section ++ ++[ engine_section ] ++ateccx08 = ateccx08_config ++ ++[ ateccx08_config ] ++engine_id = ateccx08 ++dynamic_path = /usr/lib/ssl/engines/libateccssl.so ++init = 0 diff --git a/meta-digi-dey/recipes-connectivity/openssl/openssl_%.bbappend b/meta-digi-dey/recipes-connectivity/openssl/openssl_%.bbappend index 2f4503192..6256fbf53 100644 --- a/meta-digi-dey/recipes-connectivity/openssl/openssl_%.bbappend +++ b/meta-digi-dey/recipes-connectivity/openssl/openssl_%.bbappend @@ -1,4 +1,4 @@ -# Copyright (C) 2016 Digi International. +# Copyright (C) 2016-2018 Digi International. FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" @@ -6,3 +6,10 @@ SRC_URI += " \ file://0001-cryptodev-Fix-issue-with-signature-generation.patch \ file://0002-cryptodev-allow-copying-EVP-contexts.patch \ " + +CRYPTOCHIP_COMMON_PATCHES = " \ + file://0003-Modify-openssl.cnf-to-automatically-load-the-cryptoc.patch \ +" + +SRC_URI_append_ccimx6ul = " ${CRYPTOCHIP_COMMON_PATCHES}" +SRC_URI_append_ccimx6qpsbc = " ${CRYPTOCHIP_COMMON_PATCHES}"