Tests: LibreSSL client detection in multiple certificate tests.
SSL_CTRL_SET_SIGALGS_LIST and TLSv1.3 support are missing from LibreSSL
despite high OPENSSL_VERSION_NUMBER. Treat it as pre-1.0.2 OpenSSL client.
diff --git a/ssl_certificates.t b/ssl_certificates.t
index 20249a3..3d963c2 100644
--- a/ssl_certificates.t
+++ b/ssl_certificates.t
@@ -133,7 +133,8 @@
my $ctx = Net::SSLeay::CTX_new() or die("Failed to create SSL_CTX $!");
if (defined $type) {
- if (Net::SSLeay::SSLeay() < 0x1000200f) {
+ my $ssleay = Net::SSLeay::SSLeay();
+ if ($ssleay < 0x1000200f || $ssleay == 0x20000000) {
Net::SSLeay::CTX_set_cipher_list($ctx, $type)
or die("Failed to set cipher list");
} else {
diff --git a/ssl_stapling.t b/ssl_stapling.t
index 893e7cb..33ee6b0 100644
--- a/ssl_stapling.t
+++ b/ssl_stapling.t
@@ -304,7 +304,8 @@
my $ctx = Net::SSLeay::CTX_new() or die("Failed to create SSL_CTX $!");
- if (Net::SSLeay::SSLeay() < 0x1000200f) {
+ my $ssleay = Net::SSLeay::SSLeay();
+ if ($ssleay < 0x1000200f || $ssleay == 0x20000000) {
Net::SSLeay::CTX_set_cipher_list($ctx, $ciphers)
or die("Failed to set cipher list");
} else {