summaryrefslogtreecommitdiffstats
path: root/test/evp_libctx_test.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-02-11 16:57:37 +0100
committerTomas Mraz <tomas@openssl.org>2021-02-17 15:26:12 +0100
commitfe75766c9c2919f649df7b3ad209df2bc5e56dd0 (patch)
treee7be8f417b0102fffe05865c41a4fbf384993587 /test/evp_libctx_test.c
parentFix backward incompatibility revolving around OSSL_HTTP_REQ_CTX_sendreq_d2i() (diff)
downloadopenssl-fe75766c9c2919f649df7b3ad209df2bc5e56dd0.tar.xz
openssl-fe75766c9c2919f649df7b3ad209df2bc5e56dd0.zip
Rename OSSL_ENCODER_CTX_new_by_EVP_PKEY and OSSL_DECODER_CTX_new_by_EVP_PKEY
Additional renames done in encoder and decoder implementation to follow the style. Fixes #13622 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14155)
Diffstat (limited to 'test/evp_libctx_test.c')
-rw-r--r--test/evp_libctx_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/evp_libctx_test.c b/test/evp_libctx_test.c
index 0b8ea1c4a9..302ec2c9b1 100644
--- a/test/evp_libctx_test.c
+++ b/test/evp_libctx_test.c
@@ -474,10 +474,10 @@ static int rsa_keygen(int bits, EVP_PKEY **pub, EVP_PKEY **priv)
|| !TEST_true(EVP_PKEY_CTX_set_rsa_keygen_bits(keygen_ctx, bits))
|| !TEST_int_gt(EVP_PKEY_keygen(keygen_ctx, priv), 0)
|| !TEST_ptr(ectx =
- OSSL_ENCODER_CTX_new_by_EVP_PKEY(*priv,
- EVP_PKEY_PUBLIC_KEY,
- "DER", "type-specific",
- NULL))
+ OSSL_ENCODER_CTX_new_for_pkey(*priv,
+ EVP_PKEY_PUBLIC_KEY,
+ "DER", "type-specific",
+ NULL))
|| !TEST_true(OSSL_ENCODER_to_data(ectx, &pub_der, &len)))
goto err;
pp = pub_der;