From 9bdd3eea377ad06d79823a7f185fb0b20ab8f1a8 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Fri, 28 Mar 2025 18:53:14 +0300 Subject: [PATCH] tcl_tests: ca.try: Ignore multi-space indentation in openssl crl output Indentation is changing from 8 to 4 chars in new version of openssl[1]. Make the test forward and backward compatible with variable indentation of openssl crl output. Link: https://github.com/openssl/openssl/pull/27124 Signed-off-by: Vitaly Chikunov --- tcl_tests/ca.try | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tcl_tests/ca.try b/tcl_tests/ca.try index 7da25de..a1ac8ed 100644 --- a/tcl_tests/ca.try +++ b/tcl_tests/ca.try @@ -73,11 +73,14 @@ test -createsfiles test.crl "Generating CRL" { test -skip {![file exists test.crl]} "Displaying CRL" { - regsub -all " = " [grep "(Serial|Version|Signature Alg|Issuer)" [openssl "crl -text -noout -in test.crl"] ] "=" -} 0 " Version 2 (0x1) - Signature Algorithm: [hash_with_sign_long_name $ca_alg] - Issuer: C=RU, L=Moscow, CN=Test CA $ca_alg, O=Cryptocom, OU=OpenSSL CA, emailAddress=openssl@cryptocom.ru -$serial_list Signature Algorithm: [hash_with_sign_long_name $ca_alg] + regsub -all " +" [ + regsub -all " = " [grep "(Serial|Version|Signature Alg|Issuer)" [openssl "crl -text -noout -in test.crl"] ] "=" + ] " " +} 0 " Version 2 (0x1) + Signature Algorithm: [hash_with_sign_long_name $ca_alg] + Issuer: C=RU, L=Moscow, CN=Test CA $ca_alg, O=Cryptocom, OU=OpenSSL CA, emailAddress=openssl@cryptocom.ru +[regsub -all " +" $serial_list " "]\ + Signature Algorithm: [hash_with_sign_long_name $ca_alg] " test -skip {![file exists test.crl]} "Verifying CRL OK" { -- 2.39.5