[PATCH] tls: fix not x86: fix CONFIG_FEATURE_TLS_SHA1=y + CONFIG_SHA1_HWACCEL=y
Denys Vlasenko
vda.linux at googlemail.com
Sun Oct 6 16:10:57 UTC 2024
Applied, thank you.
On Sun, Sep 29, 2024 at 7:58 PM Rudi Heitbaum <rudi at heitbaum.com> wrote:
>
> fixes non i386 and x86 builds
>
> libbb/hash_md5_sha.c: In function 'sha1_end':
> libbb/hash_md5_sha.c:1316:35: error: 'sha1_process_block64_shaNI'
> undeclared (first use in this function); did you mean
> 'sha1_process_block64'?
> 1316 | || ctx->process_block == sha1_process_block64_shaNI
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> | sha1_process_block64
>
> Signed-off-by: Rudi Heitbaum <rudi at heitbaum.com>
> ---
> libbb/hash_md5_sha.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c
> index 57a801459..75a61c32c 100644
> --- a/libbb/hash_md5_sha.c
> +++ b/libbb/hash_md5_sha.c
> @@ -1313,7 +1313,9 @@ unsigned FAST_FUNC sha1_end(sha1_ctx_t *ctx, void *resbuf)
> hash_size = 8;
> if (ctx->process_block == sha1_process_block64
> #if ENABLE_SHA1_HWACCEL
> +# if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
> || ctx->process_block == sha1_process_block64_shaNI
> +# endif
> #endif
> ) {
> hash_size = 5;
> --
> 2.43.0
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list