From: Vitaly Chikunov Date: Wed, 13 Nov 2019 22:44:32 +0000 (+0300) Subject: tcl_tests: Fix cms and smime_io tests by telling that signature is -binary X-Git-Tag: v3.0.0~244 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=7602f251c8d19e0085129e07b4e81a8fbdc3f1a2;p=openssl-gost%2Fengine.git tcl_tests: Fix cms and smime_io tests by telling that signature is -binary Verification failure 139891902039680:error:2E09A09E:CMS routines:CMS_SignerInfo_verify_content:verification failure:crypto/cms/cms_sd.c:848: 139891902039680:error:2E09D06D:CMS routines:CMS_verify:content verify error:crypto/cms/cms_smime.c:393: --- diff --git a/tcl_tests/cms.try b/tcl_tests/cms.try index 2db2958..a877c0b 100644 --- a/tcl_tests/cms.try +++ b/tcl_tests/cms.try @@ -158,7 +158,7 @@ test -skip {![file exists cms_sign_$alg_fn.pem]} "Checking oids in cms struct" { } 0 [mkObjList [hash_long_name $alg] [smime_hash_with_sign_long_name $ca_sign_alg] [alg_long_name $alg] [pubkey_long_name $alg] [param_hash_long_name [param_hash $alg]] [smime_hash_with_sign_long_name $ca_sign_alg] [hash_long_name $alg] "GOST R 34.11-2012 with 256 bit hash" "GOST R 34.11-2012 with 512 bit hash" "GOST R 34.11-94" "GOST 28147-89" [alg_long_name $alg]] test -skip {![file exists cms_sign_det_$alg_fn.pem]} "Verifying detached $alg cms_signature" { - grep Veri [openssl "cms -verify -content cms_sign.dat -inform PEM -in cms_sign_det_$alg_fn.pem -out cms_verified.txt -noverify"] + grep Veri [openssl "cms -verify -binary -content cms_sign.dat -inform PEM -in cms_sign_det_$alg_fn.pem -out cms_verified.txt -noverify"] } 0 "Verification successful " diff --git a/tcl_tests/smime_io.try b/tcl_tests/smime_io.try index daf76b2..e4d7666 100644 --- a/tcl_tests/smime_io.try +++ b/tcl_tests/smime_io.try @@ -66,7 +66,7 @@ test -skip {![file exists broken_op_$alg_fn.msg]} "Verifying broken $alg opaque } 1 "Verification failure" test -skip {![file exists sign_det_$alg_fn.pem]} "Verifying detached $alg signature via cms" { - grep Veri [openssl "cms -verify -content sign.dat -inform PEM -in sign_det_$alg_fn.pem -out verified.txt -noverify"] + grep Veri [openssl "cms -verify -binary -content sign.dat -inform PEM -in sign_det_$alg_fn.pem -out verified.txt -noverify"] } 0 "Verification successful "