diff options
author | Chukun Pan <amadeus@jmu.edu.cn> | 2022-12-01 23:28:38 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-12-22 00:14:30 +0100 |
commit | 39dcfcd98731ed1c011171ae3f44ac440fb817fc (patch) | |
tree | b049509fdb2945a522e78a455b8a53f560129191 /package/libs | |
parent | e51f3a22aa5690aa6a0c4d634e2ab3624dd39a04 (diff) | |
download | upstream-39dcfcd98731ed1c011171ae3f44ac440fb817fc.tar.gz upstream-39dcfcd98731ed1c011171ae3f44ac440fb817fc.tar.bz2 upstream-39dcfcd98731ed1c011171ae3f44ac440fb817fc.zip |
wolfssl: fix build with /dev/crypto
Backport upstream patch to fix build error when
/dev/crypto enabled.
https://github.com/wolfSSL/wolfssl/commit/dc9f46a3be00b5e82684a158605189d1278e324c
Fixes: #10944
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
(cherry picked from commit 171691500eca0737c59d4fff50578b74a90583be)
Diffstat (limited to 'package/libs')
-rw-r--r-- | package/libs/wolfssl/patches/001-Fix-enable-devcrypto-build-error.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/libs/wolfssl/patches/001-Fix-enable-devcrypto-build-error.patch b/package/libs/wolfssl/patches/001-Fix-enable-devcrypto-build-error.patch new file mode 100644 index 0000000000..bcdaf2b7a2 --- /dev/null +++ b/package/libs/wolfssl/patches/001-Fix-enable-devcrypto-build-error.patch @@ -0,0 +1,33 @@ +From dc9f46a3be00b5e82684a158605189d1278e324c Mon Sep 17 00:00:00 2001 +From: Eric Blankenhorn <eric@wolfssl.com> +Date: Wed, 12 Oct 2022 16:05:17 -0500 +Subject: [PATCH] Fix --enable-devcrypto build error for sys without u_int8_t + type + +--- + wolfcrypt/src/port/devcrypto/README.md | 2 +- + wolfcrypt/src/port/devcrypto/wc_devcrypto.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/wolfcrypt/src/port/devcrypto/README.md ++++ b/wolfcrypt/src/port/devcrypto/README.md +@@ -22,7 +22,7 @@ modprobe cryptodev + For default build with all supported features use: + + ``` +-./configure --enable-cryptodev ++./configure --enable-devcrypto + ``` + + Or for more control over features used: +--- a/wolfcrypt/src/port/devcrypto/wc_devcrypto.c ++++ b/wolfcrypt/src/port/devcrypto/wc_devcrypto.c +@@ -122,7 +122,7 @@ int wc_DevCryptoCreate(WC_CRYPTODEV* ctx + case CRYPTO_SHA2_512_HMAC: + ctx->sess.cipher = 0; + ctx->sess.mac = type; +- ctx->sess.mackey = (u_int8_t*)key; ++ ctx->sess.mackey = (byte*)key; + ctx->sess.mackeylen = keySz; + break; + |