summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-04-16 01:13:43 +0200
committerPauli <pauli@openssl.org>2021-04-17 10:22:13 +0200
commite494fac705057c91017b41fa761f9406c87f4cc5 (patch)
tree133c928c393002291a2f0ef61de870ddc2cbe8ef /crypto/evp
parentSanity check provider up-calls (diff)
downloadopenssl-e494fac705057c91017b41fa761f9406c87f4cc5.tar.xz
openssl-e494fac705057c91017b41fa761f9406c87f4cc5.zip
Fix naming for EVP_RAND_CTX_gettable functions.
Change: EVP_RAND_gettable_ctx_params -> EVP_RAND_CTX_gettable_params EVP_RAND_settable_ctx_params -> EVP_RAND_CTX_settable_params Which brings them in line with the other similar functions for other algorithm types. Fixes #14880 Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14893)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp_rand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/evp/evp_rand.c b/crypto/evp/evp_rand.c
index cae21891ee..2444be5dea 100644
--- a/crypto/evp/evp_rand.c
+++ b/crypto/evp/evp_rand.c
@@ -397,7 +397,7 @@ static int evp_rand_get_ctx_params_locked(EVP_RAND_CTX *ctx,
return ctx->meth->get_ctx_params(ctx->data, params);
}
-int EVP_RAND_get_ctx_params(EVP_RAND_CTX *ctx, OSSL_PARAM params[])
+int EVP_RAND_CTX_get_params(EVP_RAND_CTX *ctx, OSSL_PARAM params[])
{
int res;
@@ -416,7 +416,7 @@ static int evp_rand_set_ctx_params_locked(EVP_RAND_CTX *ctx,
return 1;
}
-int EVP_RAND_set_ctx_params(EVP_RAND_CTX *ctx, const OSSL_PARAM params[])
+int EVP_RAND_CTX_set_params(EVP_RAND_CTX *ctx, const OSSL_PARAM params[])
{
int res;
@@ -653,7 +653,7 @@ int EVP_RAND_state(EVP_RAND_CTX *ctx)
int state;
params[0] = OSSL_PARAM_construct_int(OSSL_RAND_PARAM_STATE, &state);
- if (!EVP_RAND_get_ctx_params(ctx, params))
+ if (!EVP_RAND_CTX_get_params(ctx, params))
state = EVP_RAND_STATE_ERROR;
return state;
}