1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00
gnupg/tests/cms
Werner Koch c1f78634ec
sm: Improve the octet string cramming for pkcs#12
* sm/minip12.c (need_octet_string_cramming): New.
(tlv_expect_object, tlv_expect_octet_string): Run the test before
cramming.

* sm/minip12.c (ENABLE_DER_STRUCT_DUMPING): New but undefined macro
for debug purposes.
(bag_decrypted_data_p, bag_data_p): Use macro to allow dumping.
--

This bug was exhibited by importing a gpgsm exported EC certificate.

We use an extra test instead of retrying to allow retruning an error
from malloc failure.  And well, for easier reading of the code.

GnuPG-bug-id: 6536
2023-10-05 10:25:14 +02:00
..
samplekeys sm: Improve the octet string cramming for pkcs#12 2023-10-05 10:25:14 +02:00
samplemsgs common: Allow for GCM decryption in de-vs mode. 2021-06-02 19:14:37 +02:00
32100C27173EF6E9C4E9A25D3D69F86D37A4F939 tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
567064FE6D14A17B2D811ABB407728BC558AA455 tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
all-tests.scm tests: Fix tests under cms. 2022-12-01 10:33:20 +09:00
cert_cci_sphinx_ca.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_test_wzs.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_test_zs.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user02.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user03.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user04.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user06.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user07.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_dfn_pca01.der tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_dfn_pca15.der tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_g10code_test1.der tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_testpki_testpca.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
crl_testpki_testpca.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
decrypt.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
encrypt.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
export.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
gpgsm-defs.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
import.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
inittests tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
key_g10code_pete1.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
key_g10code_theo1.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
Makefile.am sm: Improve the octet string cramming for pkcs#12 2023-10-05 10:25:14 +02:00
plain-1.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
plain-2.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
plain-3.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
plain-large.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
run-tests.scm tests: Fix to support --enable-all-tests and variants. 2022-11-24 15:57:25 +09:00
runtest tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
setup.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
shell.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
sign.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
skey_g10code_test1.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
sm-sign+verify tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
sm-verify tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.dsig.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.osig-bad.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.osig-badusage.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.osig.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.txt tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-2.osig-bad.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-2.osig.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-2.txt tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-3.txt tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
verify.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00