Skip to content
Snippets Groups Projects
Commit 089438c2 authored by Thierry Escande's avatar Thierry Escande
Browse files

openharmony-standard-3.0: Fix openssl nodejs 17 error


This fixes the following nodejs 17 error:
 error:0308010C:digital envelope routines::unsupported

The option '--openssl-legacy-provider' is passed to nodejs and a few
OPENSSL variables are also set to point to the native sysroot ssl conf.

Signed-off-by: default avatarThierry Escande <thierry.escande@huawei.com>
parent 1b41178f
No related branches found
No related tags found
1 merge request!84Fix ACTS hap packing
......@@ -109,6 +109,14 @@ OHOS_STANDARD_SYSTEM_CONFIG_DIR = "${OHOS_BUILD_CONFIGS_DIR}/standard_system"
OHOS_PROJECT_BUILD_CONFIG_DIR = "${B}/build_configs"
# Workaround for problem with nodejs 17:
# error:0308010C:digital envelope routines::unsupported
export NODE_OPTIONS = "--openssl-legacy-provider"
export OPENSSL_CONF = "${RECIPE_SYSROOT_NATIVE}/usr/lib/ssl-3/openssl.cnf"
export SSL_CERT_DIR = "${RECIPE_SYSROOT_NATIVE}/usr/lib/ssl-3/certs"
export OPENSSL_ENGINES = "${RECIPE_SYSROOT_NATIVE}/usr/lib/engines-3"
export OPENSSL_MODULES = "${RECIPE_SYSROOT_NATIVE}/usr/lib/ossl-modules"
GN_ARGS += 'target_os="ohos"'
GN_ARGS += 'target_cpu="${OHOS_DEVICE_CPU_ARCH}"'
GN_ARGS += 'product_name="${OHOS_PRODUCT_NAME}"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment