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 15:05:07 +0000 (17:05 +0200)
commit50d0a51d6dc83815a6fca5c00c711ffcf407a214
treea9ecc38edbc4c9f032c3df84a380a20c1dc08195
parentf0f4de4e50eaa11eb5a51fa6e7756d4a0876557e
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/16036)
test/asn1_encode_test.c