summaryrefslogtreecommitdiffstats
path: root/test/build.info
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-07-09 19:10:39 +0200
committerRichard Levitte <levitte@openssl.org>2020-07-24 16:43:13 +0200
commit5a23d78c9b141e31ab9b7d551b2125b124a75e49 (patch)
tree9655175a4a2359593ce43c9156f003aae3878a19 /test/build.info
parentdcfacbbfe9b3f8fa13eeb17a8fa4c89edefc8389 (diff)
TEST: Add new serializer and deserializer test
This test revolves around a central function that will first serialize an EVP_PKEY, then deserialize the result into a new EVP_PKEY and compare the two. The following tests are currently implemented: 1. EVP_PKEY (RSA) -> DER, then DER -> EVP_PKEY (RSA). 2. EVP_PKEY (RSA) -> PEM, then PEM -> EVP_PKEY (RSA). This one exercises deserializer chains, as we know that there is a PEM -> DER and a DER -> EVP_PKEY (RSA) deserializer, but no direct PEM -> EVP_PKEY (RSA) deserializer. Additionally, a small fix in test_fail_string_common(), as strcmp() could run past a buffer if one of the strings isn't terminated with a null byte within the given length. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12410)
Diffstat (limited to 'test/build.info')
-rw-r--r--test/build.info5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/build.info b/test/build.info
index a49d9c6d6e..d15ee75814 100644
--- a/test/build.info
+++ b/test/build.info
@@ -777,6 +777,11 @@ IF[{- !$disabled{tests} -}]
INCLUDE[hexstr_test]=.. ../include ../apps/include
DEPEND[hexstr_test]=../libcrypto.a libtestutil.a
+ PROGRAMS{noinst}=serdes_test
+ SOURCE[serdes_test]=serdes_test.c
+ INCLUDE[serdes_test]=.. ../include ../apps/include
+ DEPEND[serdes_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