gnupg/tests/cms
Werner Koch 5f694dc0be
sm: Adding missing stuff to the PKCS#12 parser rewrite.
* sm/minip12.c (struct bufferlist_s): New.
(struct tlv_ctx_s): Add bufferlist.
(tlv_register_buffer): New.
(tlv_release): Release bufferlist.
(tlv_expect_object): Handle octet string cramming.
(tlv_expect_octet_string): Ditto.
(cram_octet_string): Changed interface.  We don't need the
input_consumed value anymore.

* sm/minip12.c (parse_shrouded_key_bag): Also parse the attribute set.

* sm/t-minip12.c (main): Add option --no-extra.
(cert_collect_cb, run_tests_from_file): Fix memory leak

* tests/cms/samplekeys/t5793-openssl.pfx: New from T5793.
* tests/cms/samplekeys/t5793-test.pfx: Ditto.
* tests/cms/samplekeys/Description-p12: Add them.
* tests/cms/Makefile.am (EXTRA_DIST): Add samplekeys.
--

This should finish the rewrite of the pkcsc#12 parser for now.  More
fun is likely to come.

GnuPG-bug-id: 6536, 5793
2023-06-29 17:49:10 +02:00
..
samplekeys sm: Adding missing stuff to the PKCS#12 parser rewrite. 2023-06-29 17:49:10 +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
Makefile.am sm: Adding missing stuff to the PKCS#12 parser rewrite. 2023-06-29 17:49:10 +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
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