Werner Koch
bb157044a0
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
(cherry picked from commit c1f78634ec3927ddcfdc4687bc6e408c658a0ece)
2023-10-05 10:32:57 +02:00
Werner Koch
a6dad932f4
sm: Complete rewrite of the PKCS#12 parser
...
* sm/minip12.c: Reworked most of the parser.
(p12_set_verbosity): Add arg debug and change all callers.
* sm/t-minip12.c: New.
* sm/Makefile.am (module_maint): Add it.
* tests/samplekeys/Description-p12: New.
* tests/samplekeys/t5793-openssl.pfx: New from T5793.
* tests/samplekeys/t5793-test.pfx: Ditto.
* tests/samplekeys/Description-p12: Add them.
* tests/Makefile.am (EXTRA_DIST): Add samplekeys.
--
GnuPG-bug-id: 6536
Backported_from: 101433dfb42b333e48427baf9dd58ac4787c9786
Backported_from: 5f694dc0be994e8cd3bc009139d1349f3b1fcf62
2023-07-05 14:21:16 +02:00
Werner Koch
fe2f182699
Add the STEED Self-Signing Nonthority certificate.
...
* doc/com-certs.pem: Install it when creating a keybox.
2011-12-20 15:35:42 +01:00
Werner Koch
08f78839cf
.
2010-07-23 12:19:35 +00:00
Werner Koch
503f91e0ae
tryu harder to ignore duplicate specified keyrings and -boxes.
...
Documentation updates.
2007-08-24 09:34:39 +00:00
Werner Koch
d68674a77a
More samples
2004-02-17 15:07:27 +00:00
Werner Koch
270576cf17
More stuff for testing
2004-02-12 09:30:37 +00:00
Werner Koch
dc4b9ab770
new test certs and messages
2002-09-03 14:54:18 +00:00
Werner Koch
beb0fef1ee
Tweaked the build system so that make distcheck finanly said Well
...
Done.
2002-08-09 18:16:02 +00:00
Werner Koch
0e43a57953
Added distfiles kludge to distribute the content of the samplekeys directory.
2002-08-09 14:44:59 +00:00
Werner Koch
0b01b9cb62
* asschk.c: Added some new features.
...
* runtest, inittests: New.
* text-1.txt, text-2.txt, text-3.txt: New.
* text-1.osig.pem, text-1.dsig.pem, text-1.osig-bad.pem: New.
* text-2.osig.pem, text-2.osig-bad.pem: New.
* samplekeys : New directory
* sm-verify, sm-sign+verify: The first test scripts.
2002-08-08 16:32:01 +00:00