Package: libnet-ssleay-perl
Version: 1.94-1
Severity: important
Tags: sid patch
control: affects -1 src:openssl
User: [email protected]
Usertags: openssl-3.4

Hi,

Starting with OpenSSL 3.4.0 (currently in experimental) the double colon
after "emailAddress" in othername, used via X509V3_EXT_print has been
removed. This is exposed in the test.
The patch attached updates the testsuite.

Sebastian
From: Sebastian Andrzej Siewior <[email protected]>
Date: Wed, 16 Oct 2024 21:48:51 +0200
Subject: [PATCH] test: 32_x509_get_cert_info allow single colon.

Starting with 3.4.0 the double colon in emailAddress has been removed.
Adapt the test to allow a single colon in 3.4.0 and later.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
---
 t/local/32_x509_get_cert_info.t | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/t/local/32_x509_get_cert_info.t b/t/local/32_x509_get_cert_info.t
index 0f7e2d5a2719f..0fd1b689f1b1b 100644
--- a/t/local/32_x509_get_cert_info.t
+++ b/t/local/32_x509_get_cert_info.t
@@ -188,6 +188,10 @@ for my $f (keys (%$dump)) {
                   ) {
                       $ext_data =~ s{(othername:) [^, ]+}{$1<unsupported>}g;
                   }
+                  # Starting with 3.4.0 the double colon in emailAddress has been removed.
+                  if (Net::SSLeay::SSLeay >= 0x30400000) {
+                      $ext_data =~ s{emailAddress::}{emailAddress:};
+                  }
               }
               elsif ( $nid == 89 ) {
                   # The output formatting for certificate policies has a
-- 
2.45.2

Reply via email to