diff options
author | Werner Koch <wk@gnupg.org> | 2022-06-20 16:45:42 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-06-20 16:47:41 +0200 |
commit | a4e04375e84ecb7ea0d02e153cb27988fca4c2d0 (patch) | |
tree | da96f1af8e6ffc08f47d459f66b533bcf321c700 /common | |
parent | agent: Improve "Insert the card" message. (diff) | |
download | gnupg2-a4e04375e84ecb7ea0d02e153cb27988fca4c2d0.tar.xz gnupg2-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')
0 files changed, 0 insertions, 0 deletions