[Skiboot] [PATCH] libstb/create-container: avoid using deprecated APIs when compiling with OpenSSL 3.0
Cédric Le Goater
clg at kaod.org
Tue Jan 25 02:55:02 AEDT 2022
On 1/19/22 21:16, Eric Richter wrote:
> OpenSSL 3.0 has deprecated functions that operate on raw key data, however the
> closest replacement function are not available in OpenSSL 1.x. This patch
> attempts to maintain compatibility with both 3.0 and 1.x versions.
>
> Avoids using the following deprecated functions when compiling with 3.0:
> - EC_KEY_get0_group
> - EC_KEY_get0_public_key
> - EC_POINT_point2bn
> - EC_KEY_free
>
> Signed-off-by: Eric Richter <erichte at linux.ibm.com>
> ---
>
> NOTE: While this patch should work, I have not yet been able to adequately
> test this on actual hardware. The resulting data that stored in pubKeyData[]
> appears to be identical when compiling with both versions of OpenSSL (minus
> the one byte header that is removed anyway), thus it should work as expected.
Would you prefer to have some tests on HW confirm that this patch is safe
merge ? or should we proceed ?
Thanks
C.
More information about the Skiboot
mailing list