From b03da688a223c18b5a10b5a66abe229bbb590133 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 27 Nov 2020 08:03:23 +0100 Subject: Adapt everything else to the updated OSSL_ENCODER_CTX_new_by_EVP_PKEY() Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/13545) --- test/endecode_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/endecode_test.c') diff --git a/test/endecode_test.c b/test/endecode_test.c index d7edd350a1..f72f9aaac8 100644 --- a/test/endecode_test.c +++ b/test/endecode_test.c @@ -195,7 +195,7 @@ static int encode_EVP_PKEY_prov(void **encoded, long *encoded_len, if (!TEST_ptr(ectx = OSSL_ENCODER_CTX_new_by_EVP_PKEY(pkey, selection, output_type, output_structure, - NULL, NULL)) + NULL)) || !TEST_int_gt(OSSL_ENCODER_CTX_get_num_encoders(ectx), 0) || (pass != NULL && !TEST_true(OSSL_ENCODER_CTX_set_passphrase(ectx, upass, -- cgit v1.2.3