diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-01-09 15:39:40 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-10 08:13:24 -0500 |
commit | 675c3ccc5c7842966eb536202bfe0a398d7d04cb (patch) | |
tree | 638ba814da6203b9fe342d0cbd1a4e32099d967f /.mailmap | |
parent | 6ef836accea026a5f87145f890ee47748bc8bfac (diff) | |
download | u-boot-675c3ccc5c7842966eb536202bfe0a398d7d04cb.tar.gz |
lib/rsa: avoid -Wdiscarded-qualifiers
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@canonical.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions