From 8ae40cf57d2138af92a3479e23f35037ae8c5c30 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 7 Sep 2020 12:25:17 +0200 Subject: ENCODER: Refactor provider implementations, and some cleanup The encoder implementations were implemented by unnecessarily copying code into numerous topical source files, making them hard to maintain. This changes merges all those into two source files, one that encodes into DER and PEM, the other to text. Diverse small cleanups are included. Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/12803) --- include/openssl/core_dispatch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/openssl/core_dispatch.h b/include/openssl/core_dispatch.h index ac83f88cc4..ad1df714ea 100644 --- a/include/openssl/core_dispatch.h +++ b/include/openssl/core_dispatch.h @@ -735,7 +735,7 @@ OSSL_CORE_MAKE_FUNC(int, encoder_encode_data, (void *ctx, const OSSL_PARAM[], OSSL_CORE_BIO *out, OSSL_PASSPHRASE_CALLBACK *cb, void *cbarg)) OSSL_CORE_MAKE_FUNC(int, encoder_encode_object, - (void *ctx, void *obj, OSSL_CORE_BIO *out, + (void *ctx, const void *obj, OSSL_CORE_BIO *out, OSSL_PASSPHRASE_CALLBACK *cb, void *cbarg)) # define OSSL_FUNC_DECODER_NEWCTX 1 -- cgit v1.2.3