agent: IMPORT_KEY with --force option fix.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 24 Dec 2015 05:19:53 +0000 (14:19 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 24 Dec 2015 05:19:53 +0000 (14:19 +0900)
commit79b51bb8727bd3485229ac8ff5987558156d5d83
tree4ff9623fdcaa0da34a24323689bbd5819750a687
parent5ca57f1a697e875bae5a5c73f1a580c42ca75343
agent: IMPORT_KEY with --force option fix.

* agent/cvt-openpgp.c (convert_from_openpgp_main): Add an option not
to check existing key.
(convert_from_openpgp): Ditto.
(convert_from_openpgp_native): Call convert_from_openpgp_main with
dontcare_exist=0.
* agent/command.c (cmd_import_key): Call with dontcare_exist=force.
agent/command.c
agent/cvt-openpgp.c
agent/cvt-openpgp.h