diff options
| author | Werner Koch <[email protected]> | 2022-06-20 14:45:42 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2022-06-20 14:47:41 +0000 |
| commit | a4e04375e84ecb7ea0d02e153cb27988fca4c2d0 (patch) | |
| tree | da96f1af8e6ffc08f47d459f66b533bcf321c700 /common/call-gpg.c | |
| parent | agent: Improve "Insert the card" message. (diff) | |
| download | gnupg-a4e04375e84ecb7ea0d02e153cb27988fca4c2d0.tar.gz gnupg-a4e04375e84ecb7ea0d02e153cb27988fca4c2d0.zip | |
sm: Rework the PKCS#12 parser to support DFN issued keys.
* sm/minip12.c (struct p12_parse_ctx_s): New. Use this instead of
passing several parameters to most functions.
(parse_pag_data): Factor things out to ...
parse_shrouded_key_bag): new.
(parse_cert_bag): New.
(parse_bag_data): New.
(p12_parse): Setup the parse context.
--
To support newer pkcs#12 files like those issued by the DFN we need to
support another ordering of data elements. This rework reflects the
P12 data structure a bit better than our old ad-hoc hacks. Tests could
only be done with the certificate parts and not the encrypted private
keys.
GnuPG-bug-id: 6037
Diffstat (limited to 'common/call-gpg.c')
0 files changed, 0 insertions, 0 deletions
