From 35248830081a288502343f057c04406881c27d05 Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Wed, 15 Mar 2023 09:33:56 +0100 Subject: [PATCH] Fix the x509-invalid-extension test on OpenSSL 3.1 OpenSSL 3.1 switched from outputting UNDEF to not giving a short name in this case. Luckily this only requires a tiny test change. We might consider pulling this into older versions, for ease of CI testing. Fixes GH-2869 --- .../scripts/base/protocols/ssl/x509-invalid-extension.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing/btest/scripts/base/protocols/ssl/x509-invalid-extension.test b/testing/btest/scripts/base/protocols/ssl/x509-invalid-extension.test index 6abf95efbc..73e521ca77 100644 --- a/testing/btest/scripts/base/protocols/ssl/x509-invalid-extension.test +++ b/testing/btest/scripts/base/protocols/ssl/x509-invalid-extension.test @@ -8,6 +8,9 @@ event x509_extension(f: fa_file, ext: X509::Extension) if ( ext$oid != "1.3.6.1.5.5.7.1.12" ) return; - print ext$short_name; + if ( ext?$short_name ) + print ext$short_name; + else + print "UNDEF"; print ext$value; }