]> git.ipfire.org Git - thirdparty/openssl.git/commit
Refactor EVP_SKEY initialization
authorTomas Mraz <tomas@openssl.org>
Mon, 17 Feb 2025 11:06:30 +0000 (12:06 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 20 Feb 2025 19:35:59 +0000 (20:35 +0100)
commit560e5863711d0eeef48d20d73bc1403f8003ccf3
tree9a62356cd6ec6601e353deb2a3a6f7041f4180e6
parentc9e56da7774bbaca1597bbc754b4111729914e5c
Refactor EVP_SKEY initialization

Enforce that skeymgmt cannot ever be NULL in EVP_SKEY.

Also add missing allocation checks.

Fixes multiple issues found by Coverity.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/26795)
crypto/evp/evp_enc.c
crypto/evp/evp_local.h
crypto/evp/s_lib.c