Wind River Support Network

HomeDefectsLIN9-2493
Fixed

LIN9-2493 : crda: Cross-compiling CRDA with openssl support does not take into account target word size for keys-ssl.c

Created: Dec 1, 2016    Updated: Dec 3, 2018
Resolved Date: Feb 8, 2017
Found In Version: unknown
Fix Version: 9.0.0.3
Severity: Severe
Applicable for: Wind River Linux 9
Component/s: Userspace

Description

1. setup a project with 32 target:
$ ./wrlinux-9/setup.sh --machines intel-x86-64 --kernel=standard --distros=wrlinux --dl-layers 
$ . ./environment-setup-x86_64-wrlinuxsdk-linux 
$ . ./oe-init-build-env build_test 

2. Edit recipe layers/meta-networking/recipes-connectivity/crda/crda_3.18.bb to enable openssl support: 
DEPENDS = "python-m2crypto-native python-native openssl libnl" 
EXTRA_OEMAKE += "USE_OPENSSL=1" 

3. build crda 
$ bitbake crda

4. check build/crda/crda-1.1.3/keys-ssl.c

This can pose issues when the host is 64 bit and target is 32 bit, as running crda will fail to check the digest of /usr/lib/crda/regulatory.bin 

For a 32 bit target, keys-ssl.c may look like this: 

static BN_ULONG n_0[64] = { 
    0x16a0d8e1, 0x63a27054, 0xc8ba757b, 0xdc9fca11, 
.....

Steps to Reproduce

1. Configure a project 
wrlinux-7/wrlinux/configure --enable-board=xilinx-zynq --enable-kernel=standard --enable-rootfs=glibc_std --with-package=crda --enable-reconfig=yes --enable-internet-download=yes
2. Edit recipe layers/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb to enable openssl support:
DEPENDS = "python-m2crypto-native python-native openssl libnl"
EXTRA_OEMAKE += "USE_OPENSSL=1"
either by hand or bbappend
3. build crda 
4. check build/crda/crda-1.1.3/keys-ssl.c

Other Downloads


Live chat
Online