# HG changeset patch # User Sergey Kandaurov # Date 1542122956 -10800 # Node ID d3d2aabe16dd9a22980266bc04b1ed9b087d1f2e # Parent 28ddfda3ca2a74954fb1472eedd61e55829d03c7 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 --- a/ssl_certificates.t +++ b/ssl_certificates.t @@ -133,7 +133,8 @@ sub get_ssl_socket { 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 --- a/ssl_stapling.t +++ b/ssl_stapling.t @@ -304,7 +304,8 @@ sub staple { 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 {