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) --- apps/dhparam.c | 2 +- apps/rsa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/dhparam.c b/apps/dhparam.c index e2fb38d8c0..58cdfd000d 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -325,7 +325,7 @@ int dhparam_main(int argc, char **argv) OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS, outformat == FORMAT_ASN1 ? "DER" : "PEM", - NULL, NULL, NULL); + NULL, NULL); if (ectx == NULL || !OSSL_ENCODER_to_bio(ectx, out)) { OSSL_ENCODER_CTX_free(ectx); diff --git a/apps/rsa.c b/apps/rsa.c index da1342b4c0..058c2be2ad 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -323,7 +323,7 @@ int rsa_main(int argc, char **argv) /* Now, perform the encoding */ ectx = OSSL_ENCODER_CTX_new_by_EVP_PKEY(pkey, selection, output_type, output_structure, - NULL, NULL); + NULL); if (OSSL_ENCODER_CTX_get_num_encoders(ectx) == 0) { BIO_printf(bio_err, "%s format not supported\n", output_type); goto end; -- cgit v1.2.3