Fix test/asn1_encode_test.c to handle encoding/decoding failure
authorRichard Levitte <levitte@openssl.org>
Fri, 9 Jul 2021 06:51:55 +0000 (08:51 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 10 Jul 2021 10:05:51 +0000 (12:05 +0200)
commitf1d97905bbd8679b7647c992b97f526791069040
tree3d971fd7c56ea01697d80195a5efd7055ec0affc
parent5434acb6c4d56507d761b28f7e142ccab808a8fa
Fix test/asn1_encode_test.c to handle encoding/decoding failure

Make it only report (and fail on) encoding/decoding failures when success
is expected.

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