Home GnuPG
Diffusion GnuPG 6df75ec70afe

agent: Allow gpg-protect-tool to handle openpgp-native protection.
6df75ec70afeUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

agent: Allow gpg-protect-tool to handle openpgp-native protection.

* agent/protect-tool.c (read_and_unprotect): Add arg ctrl and pass to
agent_unprotect.
(main): Allocate a simple CTRL object and pass it to
read_and_unprotect.
(convert_from_openpgp_native): Remove stub.
(agent_key_available, agent_get_cache): New stubs.
(agent_askpin): New emulation for the one in call-pinentry.c.
(agent_write_private_key): New to dump key.
* agent/Makefile.am (gpg_protect_tool_SOURCES): Add cvt-openpgp.c
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 14 2016, 12:28 PM
Parents
rG94504b3d5af1: tests: Set fake-pinentry's stdout and stdin to _IOLBF.
Branches
Unknown
Tags
Unknown

Event Timeline