Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1475544 Details for
Bug 1614884
Tests fail with OpenSSL 1.1.1
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix for t/local/09_ctx_new.t
0001-Adapt-CTX_get_min_proto_version-tests-to-system-wide.patch (text/plain), 2.40 KB, created by
Petr Pisar
on 2018-08-13 10:41:07 UTC
(
hide
)
Description:
Fix for t/local/09_ctx_new.t
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2018-08-13 10:41:07 UTC
Size:
2.40 KB
patch
obsolete
>From a00a70b7195438c543191b69382ff20e452548bf Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> >Date: Mon, 13 Aug 2018 12:33:58 +0200 >Subject: [PATCH] Adapt CTX_get_min_proto_version tests to system-wide policy >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >In our distribution, /etc/crypto-policies/back-ends/opensslcnf.config >can override default minimal SSL/TLS protocol version. If it does, >t/local/09_ctx_new.t test will fail because OpenSSL will return >different then 0 value. > >This patch parses the configuration file and adjusts expect values in >the test. > >Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com> >--- > t/local/09_ctx_new.t | 22 ++++++++++++++++++++-- > 1 file changed, 20 insertions(+), 2 deletions(-) > >diff --git a/t/local/09_ctx_new.t b/t/local/09_ctx_new.t >index 6d06f21..c584856 100644 >--- a/t/local/09_ctx_new.t >+++ b/t/local/09_ctx_new.t >@@ -109,14 +109,32 @@ else > # Having TLS_method() does not necessarily that proto getters are available > if ($ctx_tls && exists &Net::SSLeay::CTX_get_min_proto_version) > { >+ my $min_ver = 0; >+ # Adjust minimal version to system-wide crypto policy >+ if (open(my $f, '<', '/etc/crypto-policies/back-ends/opensslcnf.config')) { >+ while(<$f>) { >+ if (/^MinProtocol = ([\w.]+)\b/) { >+ if ($1 eq 'TLSv1') { >+ $min_ver = 0x0301; >+ } elsif ($1 eq 'TLSv1.1') { >+ $min_ver = 0x0302; >+ } elsif ($1 eq 'TLSv1.2') { >+ $min_ver = 0x0303; >+ } elsif ($1 eq 'TLSv1.3') { >+ $min_ver = 0x0304; >+ } >+ } >+ } >+ close($f); >+ } > my $ver; > $ver = Net::SSLeay::CTX_get_min_proto_version($ctx_tls); >- is($ver, 0, 'TLS_method CTX has automatic minimum version'); >+ is($ver, $min_ver, 'TLS_method CTX has automatic minimum version'); > $ver = Net::SSLeay::CTX_get_max_proto_version($ctx_tls); > is($ver, 0, 'TLS_method CTX has automatic maximum version'); > > $ver = Net::SSLeay::get_min_proto_version($ssl_tls); >- is($ver, 0, 'SSL from TLS_method CTX has automatic minimum version'); >+ is($ver, $min_ver, 'SSL from TLS_method CTX has automatic minimum version'); > $ver = Net::SSLeay::get_max_proto_version($ssl_tls); > is($ver, 0, 'SSL from TLS_method CTX has automatic maximum version'); > >-- >2.14.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1614884
: 1475544