]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/evp/pmeth_lib.c
Rename the field 'provctx and data' to 'algctx' inside some objects containing
authorShane Lontis <shane.lontis@oracle.com>
Fri, 14 May 2021 03:08:42 +0000 (13:08 +1000)
committerPauli <pauli@openssl.org>
Mon, 24 May 2021 00:12:18 +0000 (10:12 +1000)
commit7c14d0c1c0ece97f7406b4df466df6439146d6c6
tree0df7120b66ec8b6cc4072492822fa071fd1288ef
parentc45df3302d20291ff1125f1aeb82fae1cdceaac8
Rename the field 'provctx and data' to 'algctx' inside some objects containing
pointers to provider size algorithm contexts.

Fixes #14284

The gettable_ctx_params methods were confusingly passing a 'provctx' and
a provider context which are completely different objects.
Some objects such as EVP_KDF used 'data' while others such as EVP_MD used 'provctx'.

For libcrypto this 'ctx' is an opaque ptr returned when a providers algorithm
implementation creates an internal context using a new_ctx() method.
Hence the new name 'algctx'.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15275)
20 files changed:
crypto/evp/asymcipher.c
crypto/evp/ctrl_params_translate.c
crypto/evp/digest.c
crypto/evp/evp_enc.c
crypto/evp/evp_lib.c
crypto/evp/evp_local.h
crypto/evp/evp_rand.c
crypto/evp/evp_utils.c
crypto/evp/exchange.c
crypto/evp/kdf_lib.c
crypto/evp/kdf_meth.c
crypto/evp/kem.c
crypto/evp/m_sigver.c
crypto/evp/mac_lib.c
crypto/evp/mac_meth.c
crypto/evp/pmeth_lib.c
crypto/evp/signature.c
include/crypto/evp.h
test/drbgtest.c
test/testutil/fake_random.c