summaryrefslogtreecommitdiffstats
path: root/test/tls-provider.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2024-04-12 11:16:17 +0200
committerTomas Mraz <tomas@openssl.org>2024-05-10 13:51:55 +0200
commit3de3d481b269e9831d0b9abd3598b262647ae050 (patch)
tree084f355b64eee7e6de9ccac0f401cc90f9590484 /test/tls-provider.c
parenttls_provider_init(): Fix leaks in error cases (diff)
downloadopenssl-3de3d481b269e9831d0b9abd3598b262647ae050.tar.xz
openssl-3de3d481b269e9831d0b9abd3598b262647ae050.zip
tls_provider_init(): Rename prov_ctx to xor_prov_ctx to clarify
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Paul Dale <ppzgs1@gmail.com> (Merged from https://github.com/openssl/openssl/pull/24103)
Diffstat (limited to 'test/tls-provider.c')
-rw-r--r--test/tls-provider.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tls-provider.c b/test/tls-provider.c
index 18c5960a4c..d8ec7c2dc2 100644
--- a/test/tls-provider.c
+++ b/test/tls-provider.c
@@ -3220,12 +3220,12 @@ int tls_provider_init(const OSSL_CORE_HANDLE *handle,
OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new_from_dispatch(handle, in);
OSSL_FUNC_core_obj_create_fn *c_obj_create= NULL;
OSSL_FUNC_core_obj_add_sigid_fn *c_obj_add_sigid= NULL;
- PROV_XOR_CTX *prov_ctx = xor_newprovctx(libctx);
+ PROV_XOR_CTX *xor_prov_ctx = xor_newprovctx(libctx);
- if (libctx == NULL || prov_ctx == NULL)
+ if (libctx == NULL || xor_prov_ctx == NULL)
goto err;
- *provctx = prov_ctx;
+ *provctx = xor_prov_ctx;
/*
* Randomise the group_id and code_points we're going to use to ensure we
@@ -3279,7 +3279,7 @@ int tls_provider_init(const OSSL_CORE_HANDLE *handle,
return 1;
err:
- OPENSSL_free(prov_ctx);
+ OPENSSL_free(xor_prov_ctx);
*provctx = NULL;
OSSL_LIB_CTX_free(libctx);
return 0;