[PATCH 5/8] agent: clearer documentation of export_key

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat May 21 01:41:08 CEST 2016


* agent/command.c (hlp_export_key): EXPORT_KEY help text: add a
  brief description of the effect of --openpgp.
---
 agent/command.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/agent/command.c b/agent/command.c
index dfbb831..450d924 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -2168,7 +2168,12 @@ static const char hlp_export_key[] =
   "Export a secret key from the key store.  The key will be encrypted\n"
   "using the current session's key wrapping key (cf. command KEYWRAP_KEY)\n"
   "using the AESWRAP-128 algorithm.  The caller needs to retrieve that key\n"
-  "prior to using this command.  The function takes the keygrip as argument.\n";
+  "prior to using this command.  The function takes the keygrip as argument.\n"
+  "\n"
+  "If --openpgp is used, the secret key material will be exported in RFC 4880\n"
+  "compatible passphrase-protected form.  Without --openpgp, the secret key\n"
+  "material will be exported in the clear (after prompting the user to unlock\n"
+  "it, if needed).\n";
 static gpg_error_t
 cmd_export_key (assuan_context_t ctx, char *line)
 {
-- 
2.8.1




More information about the Gnupg-devel mailing list