ENCODER: Refactor provider implementations, and some cleanup
authorRichard Levitte <levitte@openssl.org>
Mon, 7 Sep 2020 10:25:17 +0000 (12:25 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 9 Sep 2020 14:35:22 +0000 (16:35 +0200)
commit8ae40cf57d2138af92a3479e23f35037ae8c5c30
tree18b15b731f9b593f93716e05884cb0b9ba0a54a5
parentce43db7a3fcd18866385a4552f5e4a83adfc0979
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 <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12803)
37 files changed:
crypto/encode_decode/encoder_pkey.c
crypto/err/openssl.txt
include/openssl/core_dispatch.h
providers/common/include/prov/providercommonerr.h
providers/common/provider_err.c
providers/encoders.inc
providers/implementations/encode_decode/build.info
providers/implementations/encode_decode/decode_common.c [deleted file]
providers/implementations/encode_decode/decode_der2key.c
providers/implementations/encode_decode/decode_ms2key.c
providers/implementations/encode_decode/decode_pem2der.c
providers/implementations/encode_decode/encode_key2any.c [new file with mode: 0644]
providers/implementations/encode_decode/encode_key2text.c [new file with mode: 0644]
providers/implementations/encode_decode/encoder_common.c [deleted file]
providers/implementations/encode_decode/encoder_dh.c [deleted file]
providers/implementations/encode_decode/encoder_dh_param.c [deleted file]
providers/implementations/encode_decode/encoder_dh_priv.c [deleted file]
providers/implementations/encode_decode/encoder_dh_pub.c [deleted file]
providers/implementations/encode_decode/encoder_dsa.c [deleted file]
providers/implementations/encode_decode/encoder_dsa_param.c [deleted file]
providers/implementations/encode_decode/encoder_dsa_priv.c [deleted file]
providers/implementations/encode_decode/encoder_dsa_pub.c [deleted file]
providers/implementations/encode_decode/encoder_ec.c [deleted file]
providers/implementations/encode_decode/encoder_ec_param.c [deleted file]
providers/implementations/encode_decode/encoder_ec_priv.c [deleted file]
providers/implementations/encode_decode/encoder_ec_pub.c [deleted file]
providers/implementations/encode_decode/encoder_ecx.c [deleted file]
providers/implementations/encode_decode/encoder_ecx_priv.c [deleted file]
providers/implementations/encode_decode/encoder_ecx_pub.c [deleted file]
providers/implementations/encode_decode/encoder_ffc_params.c [deleted file]
providers/implementations/encode_decode/encoder_local.h [deleted file]
providers/implementations/encode_decode/encoder_rsa.c [deleted file]
providers/implementations/encode_decode/encoder_rsa_priv.c [deleted file]
providers/implementations/encode_decode/encoder_rsa_pub.c [deleted file]
providers/implementations/encode_decode/endecoder_common.c [new file with mode: 0644]
providers/implementations/encode_decode/endecoder_local.h [new file with mode: 0644]
providers/implementations/include/prov/implementations.h