]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
tcl_tests: Fix cms and smime_io tests by telling that signature is -binary
authorVitaly Chikunov <vt@altlinux.org>
Wed, 13 Nov 2019 22:44:32 +0000 (01:44 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sat, 11 Jan 2020 21:20:37 +0000 (00:20 +0300)
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:

tcl_tests/cms.try
tcl_tests/smime_io.try

index 2db2958a7105a5d92829577f5809ba3a45ec5ae8..a877c0b9091a87227e66e1444bb9a3744067ca87 100644 (file)
@@ -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
 "
 
index daf76b275cf99062dafe06c7c42f3c88dc94432d..e4d7666cb507b56120ad0ef3391c5b37ce34a0de 100644 (file)
@@ -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
 "