8
0

Accepting request 1084752 from home:ohollmann:branches:security:tls:unstable

- Adapt tests for OpenSSL 3.1 [bsc#1209430]
  * Add openssl3_1-adapt_tests.patch

OBS-URL: https://build.opensuse.org/request/show/1084752
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Protocol-HTTP2?expand=0&rev=3
This commit is contained in:
2023-05-09 12:36:52 +00:00
committed by Git OBS Bridge
parent 59d375974f
commit 89ee22c7e9
3 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
From 552e3677372c77ec458548fd8c3fdc280e493d91 Mon Sep 17 00:00:00 2001
From: Otto Hollmann <otto.hollmann@suse.com>
Date: Thu, 4 May 2023 13:42:51 +0200
Subject: [PATCH] Adapt tests for OpenSSL 3.1
---
t/lib/PH2ClientServerTest.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/lib/PH2ClientServerTest.pm b/t/lib/PH2ClientServerTest.pm
index 3fe9203..fe90f32 100644
--- a/t/lib/PH2ClientServerTest.pm
+++ b/t/lib/PH2ClientServerTest.pm
@@ -43,7 +43,7 @@ sub server {
if ( !$h{upgrade} && ( $h{npn} || $h{alpn} ) ) {
eval {
$tls = AnyEvent::TLS->new(
- method => 'tlsv1',
+ method => 'tlsv1_2',
cert_file => $tls_crt,
key_file => $tls_key,
);
@@ -122,7 +122,7 @@ sub client {
}
elsif ( $h{npn} || $h{alpn} ) {
eval {
- $tls = AnyEvent::TLS->new( method => 'tlsv1', );
+ $tls = AnyEvent::TLS->new( method => 'tlsv1_2', );
if ( delete $h{npn} ) {

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 4 13:11:57 UTC 2023 - Otto Hollmann <otto.hollmann@suse.com>
- Adapt tests for OpenSSL 3.1 [bsc#1209430]
* Add openssl3_1-adapt_tests.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 26 13:57:41 UTC 2020 - pgajdos@suse.com Thu Nov 26 13:57:41 UTC 2020 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Protocol-HTTP2 # spec file for package perl-Protocol-HTTP2
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,8 @@ Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: Protocol-HTTP2-1.10.tar.gz Source0: Protocol-HTTP2-1.10.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
# PATCH-FIX-OPENSUSE https://github.com/vlet/p5-Protocol-HTTP2/pull/14
Patch1: openssl3_1-adapt_tests.patch
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
@@ -49,6 +51,7 @@ tls socket (see examples).
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%autopatch -p1
%build %build
perl Build.PL --installdirs=vendor perl Build.PL --installdirs=vendor