diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/d2i-tests/bad_bio.der | bin | 0 -> 7 bytes | |||
-rw-r--r-- | test/recipes/25-test_d2i.t | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/d2i-tests/bad_bio.der b/test/d2i-tests/bad_bio.der Binary files differnew file mode 100644 index 0000000000..8681f0528d --- /dev/null +++ b/test/d2i-tests/bad_bio.der diff --git a/test/recipes/25-test_d2i.t b/test/recipes/25-test_d2i.t index 111fa5b100..9e1a643aaf 100644 --- a/test/recipes/25-test_d2i.t +++ b/test/recipes/25-test_d2i.t @@ -15,7 +15,7 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/; setup("test_d2i"); -plan tests => 2; +plan tests => 3; ok(run(test(["d2i_test", "X509", "decode", srctop_file('test','d2i-tests','bad_cert.der')])), @@ -24,3 +24,7 @@ ok(run(test(["d2i_test", "X509", "decode", ok(run(test(["d2i_test", "GENERAL_NAME", "decode", srctop_file('test','d2i-tests','bad_generalname.der')])), "Running d2i_test bad_generalname.der"); + +ok(run(test(["d2i_test", "ASN1_ANY", "BIO", + srctop_file('test','d2i-tests','bad_bio.der')])), + "Running d2i_test bad_bio.der"); |