1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00
gnupg/tests
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
..
cms sm: Improve the octet string cramming for pkcs#12 2023-10-05 10:25:14 +02:00
extrasamples Added sample certificates. 2006-05-16 09:54:41 +00:00
fake-pinentries docs: Point to https://dev.gnupg.org/ . 2017-05-18 15:05:57 -04:00
gpgme tests: Fix tests/gpgme for in-source-tree builds. 2022-12-21 10:52:24 +09:00
gpgscm tests: Fix to support --enable-all-tests and variants. 2022-11-24 15:57:25 +09:00
migrations tests: Fix to support --enable-all-tests and variants. 2022-11-24 15:57:25 +09:00
openpgp tests: Fix missing test message. 2022-12-16 12:02:35 +01:00
pkits tests: More fix for semihosted environment. 2022-12-01 17:09:45 +09:00
tpm2dtests tests: Restrict the use of gpgconf.ctl to make check. 2022-09-14 12:05:21 +02:00
asschk.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
gpgconf.ctl.in tests: Restrict the use of gpgconf.ctl to make check. 2022-09-14 12:05:21 +02:00
Makefile.am tests: New way to make use of gpgconf.ctl in tests. 2021-10-12 14:30:13 +02:00
run-tests.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00