diff options
author | Richard Levitte <levitte@openssl.org> | 2020-10-17 08:59:48 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-11-15 19:37:26 +0100 |
commit | e76a696273e472803b156af90fa869bb9aeb798c (patch) | |
tree | 73b23a5133b6fc14516ba6a69afed5f6a5617e44 /test/build.info | |
parent | efb4667f72356046a492d8875bd3b02b6fe352e8 (diff) |
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)
Diffstat (limited to 'test/build.info')
-rw-r--r-- | test/build.info | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/build.info b/test/build.info index 51100d1418..b7fafb7eba 100644 --- a/test/build.info +++ b/test/build.info @@ -793,6 +793,11 @@ IF[{- !$disabled{tests} -}] INCLUDE[endecode_test]=.. ../include ../apps/include DEPEND[endecode_test]=../libcrypto.a libtestutil.a + PROGRAMS{noinst}=endecoder_legacy_test + SOURCE[endecoder_legacy_test]=endecoder_legacy_test.c + INCLUDE[endecoder_legacy_test]=.. ../include ../apps/include + DEPEND[endecoder_legacy_test]=../libcrypto.a libtestutil.a + PROGRAMS{noinst}=namemap_internal_test SOURCE[namemap_internal_test]=namemap_internal_test.c INCLUDE[namemap_internal_test]=.. ../include ../apps/include |