diff options
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.patch | 32 |
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 @@ | |||
| 1 | From eac7ac502b02f44a84a67920e9f634cce71ff335 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | ||
| 3 | Date: Tue, 18 Feb 2025 18:57:15 +0100 | ||
| 4 | Subject: [PATCH] tests: Address another formatting difference in OpenSSL 3.4.1 | ||
| 5 | |||
| 6 | Since OpenSSL 3.4.1, commit 8a28bca8ee08 ("x509: add a newline after | ||
| 7 | printing Full Name") to be exact, there is another new line change. | ||
| 8 | |||
| 9 | Adapt the testsuite. | ||
| 10 | |||
| 11 | Fixes: #513 | ||
| 12 | |||
| 13 | Upstream-Status: Backport [https://github.com/radiator-software/p5-net-ssleay/commit/eac7ac502b02f44a84a67920e9f634cce71ff335] | ||
| 14 | Signed-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 | |||
| 19 | diff --git a/t/local/32_x509_get_cert_info.t b/t/local/32_x509_get_cert_info.t | ||
| 20 | index 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 ) { | ||
