Add tests for i2d_TYPE_fp and d2i_TYPE_fp
authorNicola Tuveri <nic.tuv@gmail.com>
Wed, 15 Jul 2020 22:57:09 +0000 (01:57 +0300)
committerNicola Tuveri <nic.tuv@gmail.com>
Mon, 30 Aug 2021 12:18:08 +0000 (15:18 +0300)
commitea1128e94e36fa9fa25278dc6b3f5b42d8735782
treef71d5b23051b5b93b435e0bc38e0e25bbd68c556
parente8e1f6d1a9e599d575431f559200018b8f822e0f
Add tests for i2d_TYPE_fp and d2i_TYPE_fp

These functions are part of the public API but we don't have tests
covering their usage.
They are actually implemented as macros and the absence of tests has
caused them to fall out-of-sync with the latest changes to ASN1 related
functions and cause compilation warnings.

@@ Note: This commit limits to ECPKParameters as a type.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16355)
test/ec_internal_test.c