diff options
author | NIIBE Yutaka <[email protected]> | 2015-08-06 07:44:03 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-08-06 07:51:14 +0000 |
commit | a6e40530898622fbc5d76557a7da5e69368ecaa4 (patch) | |
tree | 8af5b8614faee43779d970cb63a14734416953d7 /g10/import.c | |
parent | scd: Fix ecc_oid. (diff) | |
download | gnupg-a6e40530898622fbc5d76557a7da5e69368ecaa4.tar.gz gnupg-a6e40530898622fbc5d76557a7da5e69368ecaa4.zip |
common: extend API of openpgp_oid_to_curve for canonical name.
* common/openpgp-oid.c (openpgp_oid_to_curve): Add CANON argument.
* common/util.h: Update.
* g10/import.c (transfer_secret_keys): Follow the change.
* g10/keyid.c (pubkey_string): Likewise.
* g10/keylist.c (list_keyblock_print, list_keyblock_colon): Likewise.
* parse-packet.c (parse_key): Likewise.
* scd/app-openpgp.c (send_key_attr, get_public_key): Likewise.
--
Change the function so that caller can select canonical name of curve
or name for printing. Suggested by wk.
Diffstat (limited to '')
-rw-r--r-- | g10/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/import.c b/g10/import.c index 0a2ebcd46..e92769dc8 100644 --- a/g10/import.c +++ b/g10/import.c @@ -1414,7 +1414,7 @@ transfer_secret_keys (ctrl_t ctrl, struct stats_s *stats, kbnode_t sec_keyblock, err = gpg_error_from_syserror (); else { - const char *curvename = openpgp_oid_to_curve (curvestr); + const char *curvename = openpgp_oid_to_curve (curvestr, 1); err = gcry_sexp_build (&curve, NULL, "(curve %s)", curvename?curvename:curvestr); xfree (curvestr); |