From e73cf1139a6651a968828d1634be8fec5beb50ba Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior 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 --- 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 0f7e2d5a..0fd1b689 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}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