Subject: | d2i_X509_bio test failure with openssl-1.1.0e |
Using openssl-1.1.0e, compiled with cl on Windows and configured with VC-WIN32, the test d2i_X509_bio from 33_x509_create_cert.t is failing:
perl -I blib\lib -I blib\arch t\local\33_x509_create_cert.t
...
not ok 123 - d2i_X509_bio
Given my poor knowledge of openssl internals, I lazily skipped it for any openssl version >= 0x1010005f, but may I ask some experts to look closer into this. Thanks.
Patch in attachement.
Subject: | 33_x509_create_cert.t.diff |
diff -Naur Net-SSLeay-1.81.old/t/local/33_x509_create_cert.t Net-SSLeay-1.81.new/t/local/33_x509_create_cert.t
--- Net-SSLeay-1.81.old/t/local/33_x509_create_cert.t 2017-01-08 04:34:40.000000000 +0100
+++ Net-SSLeay-1.81.new/t/local/33_x509_create_cert.t 2017-04-12 13:40:02.505281900 +0200
@@ -295,5 +295,8 @@
my $x509_der = File::Spec->catfile('t', 'data', 'testcert_simple.crt.der');
ok(my $bio2 = Net::SSLeay::BIO_new_file($x509_der, 'r'), "BIO_new_file");
- ok(my $x509 = Net::SSLeay::d2i_X509_bio($bio2), "d2i_X509_bio");
+ SKIP: {
+ skip 'd2i_X509_bio fails for openssl-1.1.0e and later', 1 unless Net::SSLeay::SSLeay < 0x1010005f;
+ ok(my $x509 = Net::SSLeay::d2i_X509_bio($bio2), "d2i_X509_bio");
+ }
}