aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2025-03-28 18:53:14 +0300
committerVitaly Chikunov <vt@altlinux.org>2025-03-28 19:14:48 +0300
commit9bdd3eea377ad06d79823a7f185fb0b20ab8f1a8 (patch)
treec7defd570fd381e57f53cb1e4777538af5b5b19c
parentede3886cc5507c2ba000ab9b057f198da03e8766 (diff)
downloadgost-engine-master.zip
gost-engine-master.tar.gz
gost-engine-master.tar.bz2
tcl_tests: ca.try: Ignore multi-space indentation in openssl crl outputHEADmaster
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 <vt@altlinux.org>
-rw-r--r--tcl_tests/ca.try13
1 files 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" {