diff options
author | Neal H. Walfield <neal@g10code.com> | 2017-06-11 14:07:02 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2017-06-11 14:07:02 +0200 |
commit | cb0484e0762a1ce05d00d949f4b70162e2f7b82c (patch) | |
tree | c2520817337ba1cab3684d121140f9aa911dbcd5 /g10 | |
parent | gpg: Support 'gpgcompose --encrypted-pop --help' (diff) | |
download | gnupg2-cb0484e0762a1ce05d00d949f4b70162e2f7b82c.tar.xz gnupg2-cb0484e0762a1ce05d00d949f4b70162e2f7b82c.zip |
gpg: Improve some output of gpgcompose.
Diffstat (limited to 'g10')
-rw-r--r-- | g10/gpgcompose.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/gpgcompose.c b/g10/gpgcompose.c index 49bb8afcb..98c04f24f 100644 --- a/g10/gpgcompose.c +++ b/g10/gpgcompose.c @@ -512,7 +512,8 @@ static struct option major_options[] = { { "--encrypted-mdc", encrypted, "Create a symmetrically encrypted and integrity protected data packet." }, { "--encrypted-pop", encrypted_pop, - "Pop an encryption container." }, + "Pop the most recent encryption container started by either" + " --encrypted or --encrypted-mdc." }, { "--compressed", NULL, "Create a compressed data packet." }, { "--literal", literal, "Create a literal (plaintext) data packet." }, { "--signature", signature, "Create a signature packet." }, @@ -2534,7 +2535,9 @@ encrypted (const char *option, int argc, char *argv[], void *cookie) argc, argv); if (! session_key.algo) - log_fatal ("%s: no session key configured.\n", option); + log_fatal ("%s: no session key configured\n" + " (use e.g. --sk-esk PASSWORD or --pk-esk KEYID).\n", + option); memset (&e, 0, sizeof (e)); /* We only need to set E->LEN, E->EXTRALEN (if E->LEN is not |