summaryrefslogtreecommitdiffstats
path: root/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/0001-tests-Address-another-formatting-difference-in-OpenSSL-3.4.1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-perl/recipes-perl/libnet/libnet-ssleay-perl/0001-tests-Address-another-formatting-difference-in-OpenSSL-3.4.1.patch')
-rw-r--r--meta-perl/recipes-perl/libnet/libnet-ssleay-perl/0001-tests-Address-another-formatting-difference-in-OpenSSL-3.4.1.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/0001-tests-Address-another-formatting-difference-in-OpenSSL-3.4.1.patch b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/0001-tests-Address-another-formatting-difference-in-OpenSSL-3.4.1.patch
new file mode 100644
index 0000000000..17310908c1
--- /dev/null
+++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/0001-tests-Address-another-formatting-difference-in-OpenSSL-3.4.1.patch
@@ -0,0 +1,32 @@
1From eac7ac502b02f44a84a67920e9f634cce71ff335 Mon Sep 17 00:00:00 2001
2From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
3Date: Tue, 18 Feb 2025 18:57:15 +0100
4Subject: [PATCH] tests: Address another formatting difference in OpenSSL 3.4.1
5
6Since OpenSSL 3.4.1, commit 8a28bca8ee08 ("x509: add a newline after
7printing Full Name") to be exact, there is another new line change.
8
9Adapt the testsuite.
10
11Fixes: #513
12
13Upstream-Status: Backport [https://github.com/radiator-software/p5-net-ssleay/commit/eac7ac502b02f44a84a67920e9f634cce71ff335]
14Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
15---
16 t/local/32_x509_get_cert_info.t | 3 +++
17 1 file changed, 3 insertions(+)
18
19diff --git a/t/local/32_x509_get_cert_info.t b/t/local/32_x509_get_cert_info.t
20index 0fd1b68..08316bf 100644
21--- a/t/local/32_x509_get_cert_info.t
22+++ b/t/local/32_x509_get_cert_info.t
23@@ -218,6 +218,9 @@ for my $f (keys (%$dump)) {
24 # OpenSSL 1.0.0 to 1.1.1:
25 $ext_data =~ s{(Full Name:\n )}{\n$1}g;
26 $ext_data .= "\n";
27+ } elsif ( Net::SSLeay::SSLeay > 0x3040000f ) {
28+ $ext_data =~ s{(\nFull Name:)}{\n$1}g;
29+ $ext_data .= "\n";
30 }
31 }
32 elsif ( $nid == 126 ) {