mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Fix agent_public_key_from_file for ECC.
* agent/cvt-openpgp.c (extract_private_key): New. (convert_to_openpgp): Use extract_private_key. * agent/findkey.c (agent_public_key_from_file): Use extract_private_key. -- This patch add support of ECC key with a curve name and flags. Since same functionality is also needed for convert_to_openpgp, it was factored out into the extract_private_key function.
This commit is contained in:
parent
6c87d1ce66
commit
9453d645d4
3 changed files with 151 additions and 94 deletions
|
@ -497,4 +497,11 @@ int agent_card_scd (ctrl_t ctrl, const char *cmdline,
|
|||
int agent_handle_learn (ctrl_t ctrl, int send, void *assuan_context);
|
||||
|
||||
|
||||
/*-- cvt-openpgp.c --*/
|
||||
gpg_error_t
|
||||
extract_private_key (gcry_sexp_t s_key, int req_private_key_data,
|
||||
const char **r_algoname, int *r_npkey, int *r_nskey,
|
||||
const char **r_format, gcry_mpi_t *mpi_array,
|
||||
gcry_sexp_t *r_curve, gcry_sexp_t *r_flags);
|
||||
|
||||
#endif /*AGENT_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue