[PATCH] lib/rsa: avoid -Wdiscarded-qualifiers
Tom Rini
trini at konsulko.com
Mon Jan 10 19:47:06 CET 2022
On Sun, Jan 09, 2022 at 03:39:40PM +0100, Heinrich Schuchardt wrote:
> The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *.
> Our code drops the const qualifier leading to
>
> In file included from tools/lib/rsa/rsa-sign.c:1:
> ./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_add_verify_data’:
> ./tools/../lib/rsa/rsa-sign.c:631:13: warning:
> assignment discards ‘const’ qualifier from pointer target type
> [-Wdiscarded-qualifiers]
> 631 | rsa = EVP_PKEY_get0_RSA(pkey);
> | ^
>
> Add a type conversion.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220110/c24a7c8e/attachment.sig>
More information about the U-Boot
mailing list