* protect-tool.c: New options --have-cert and --prompt.
authorWerner Koch <wk@gnupg.org>
Thu, 19 Feb 2004 16:26:32 +0000 (16:26 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 19 Feb 2004 16:26:32 +0000 (16:26 +0000)
commita1b487a17a084b3d8d652d4feabb7de2d67ad292
treef0a4fbb66f6b7d89de99fc8e69c20dc96f7db0d4
parent50ad027c9af9327699a5826db02c2d71cc01cff7
* protect-tool.c: New options --have-cert and --prompt.
(export_p12_file): Read a certificate from STDIN and pass it to
p12_build.  Detect a keygrip and construct the filename in that
case.  Unprotcet a key if needed.  Print error messages for key
formats we can't handle.
(release_passphrase): New.
(get_passphrase): New arg PROMPTNO. Return the allocated
string. Changed all callers.

* minip12.c: Revamped the build part.
(p12_build): New args CERT and CERTLEN.

* simple-pwquery.c (agent_open): Don't mangle INFOSTR.

* export.c (export_p12, popen_protect_tool)
(gpgsm_p12_export): New.
* gpgsm.c (main): New command --export-secret-key-p12.
14 files changed:
NEWS
agent/ChangeLog
agent/minip12.c
agent/minip12.h
agent/protect-tool.c
common/ChangeLog
common/simple-pwquery.c
doc/gpgsm.texi
scd/command.c
sm/ChangeLog
sm/export.c
sm/gpgsm.c
sm/gpgsm.h
sm/import.c