Diffusion GnuPG 8dfef5197af9

sm: Support import of PKCS#12 encoded ECC private keys.

Authored by werner on Apr 21 2020, 8:59 PM.

Description

sm: Support import of PKCS#12 encoded ECC private keys.

* sm/minip12.c: Include ksba.h.
(oid_pcPublicKey): New const.
(parse_bag_data): Add arg 'r-curve'.  Support parsing of ECC private
keys.
(p12_parse): Add arg 'r_curve'.
* sm/import.c (parse_p12): Support ECC import.
  • GnuPG-bug-id: T4921
  • Signed-off-by: Werner Koch <wk@gnupg.org>