ENCODER: Refactor the OSSL_ENCODER API to be more like OSSL_DECODER
authorRichard Levitte <levitte@openssl.org>
Mon, 14 Sep 2020 07:20:41 +0000 (09:20 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 20 Sep 2020 15:31:22 +0000 (17:31 +0200)
commitb8975c68b1a7796993759db22905d0ef05f7e077
tree5cd409609aa40deddd2a3ecc16992f80b9611fa9
parent5a6d6fe66614ee5ff5976ca6e90bd156c8143553
ENCODER: Refactor the OSSL_ENCODER API to be more like OSSL_DECODER

OSSL_ENCODER was developed before OSSL_DECODER, so the idea of
chaining and the resulting API came later.  This series of changes
brings the same sort of API and functionality back to OSSL_ENCODER,
making the two APIs more consistent with each other.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12873)
16 files changed:
crypto/encode_decode/encoder_err.c
crypto/encode_decode/encoder_lib.c
crypto/encode_decode/encoder_local.h
crypto/encode_decode/encoder_meth.c
crypto/encode_decode/encoder_pkey.c
crypto/err/openssl.ec
crypto/err/openssl.txt
doc/man3/OSSL_ENCODER.pod
doc/man3/OSSL_ENCODER_CTX.pod
doc/man3/OSSL_ENCODER_CTX_new_by_EVP_PKEY.pod
doc/man3/OSSL_ENCODER_to_bio.pod
include/crypto/encoder.h
include/openssl/encoder.h
include/openssl/encodererr.h
util/libcrypto.num
util/other.syms