test/endecoder_legacy_test.c: new test for legacy comparison
authorRichard Levitte <levitte@openssl.org>
Sat, 17 Oct 2020 06:59:48 +0000 (08:59 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 15 Nov 2020 18:37:26 +0000 (19:37 +0100)
commite76a696273e472803b156af90fa869bb9aeb798c
tree73b23a5133b6fc14516ba6a69afed5f6a5617e44
parentefb4667f72356046a492d8875bd3b02b6fe352e8
test/endecoder_legacy_test.c: new test for legacy comparison

It checks that all of these functions have a corresponding
OSSL_ENCODER implementation, and that the output is the same:

- i2d_{TYPE}PrivateKey
- i2d_{TYPE}PublicKey
- i2d_{TYPE}params
- i2d_{TYPE}_PUBKEY
- PEM_write_bio_{TYPE}PrivateKey
- PEM_write_bio_{TYPE}PublicKey
- PEM_write_bio_{TYPE}Parameters
- PEM_write_bio_{TYPE}_PUBKEY

It also checks that all of these functions have a corresponding
OSSL_DECODER implementation, and that the decoding result matches:

- d2i_{TYPE}PrivateKey()
- d2i_{TYPE}PublicKey(),
- d2i_{TYPE}params(),
- d2i_{TYPE}_PUBKEY(),
- PEM_read_bio_{TYPE}PrivateKey()
- PEM_read_bio_{TYPE}PublicKey()
- PEM_read_bio_{TYPE}params()
- PEM_read_bio_{TYPE}_PUBKEY()

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13262)
test/build.info
test/endecoder_legacy_test.c [new file with mode: 0644]
test/recipes/04-test_encoder_decoder_legacy.t [new file with mode: 0644]