]> code.ossystems Code Review - meta-freescale.git/commitdiff
openssl-1.0.1i: s/inline/static/ to fix gcc5.2 issue
authorTing Liu <ting.liu@freescale.com>
Tue, 28 Jul 2015 07:04:43 +0000 (15:04 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Jul 2015 13:48:21 +0000 (10:48 -0300)
Fix the following error:
| ../libcrypto.so: undefined reference to `spcf_bn2bin'
| ../libcrypto.so: undefined reference to `spcf_bn2bin_ex'
| collect2: error: ld returned 1 exit status
| make[2]: *** [link_app.gnu] Error 1

Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch

index 8c8b1f228b15f3404d9f57cd6c34a99d22a89e13..98272abf2172dca7ce3eaf18f74ca459ef038386 100644 (file)
@@ -62,7 +62,7 @@ index e3eb98b..7ee314b 100644
  const EVP_CIPHER cryptodev_aes_128_cbc_hmac_sha1;
  const EVP_CIPHER cryptodev_aes_256_cbc_hmac_sha1;
  
-+inline int spcf_bn2bin(BIGNUM *bn, unsigned char **bin,  int *bin_len)
++static int spcf_bn2bin(BIGNUM *bn, unsigned char **bin,  int *bin_len)
 +{
 +      int len;
 +      unsigned char *p;
@@ -84,7 +84,7 @@ index e3eb98b..7ee314b 100644
 +      return 0;
 +}
 +
-+inline int spcf_bn2bin_ex(BIGNUM *bn, unsigned char **bin,  int *bin_len)
++static int spcf_bn2bin_ex(BIGNUM *bn, unsigned char **bin,  int *bin_len)
 +{
 +      int len;
 +      unsigned char *p;