summaryrefslogtreecommitdiffstats
path: root/g10/revoke.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-01-21 18:30:51 +0100
committerWerner Koch <wk@gnupg.org>2016-01-21 18:30:51 +0100
commitbb99b40bd1e624f58ca806ca16dc73d4d594a30a (patch)
tree7c4a020ffc369c5aa96158a6478e966e84008e0b /g10/revoke.c
parentgpg: Make --auto-key-retrieve work with dirmngr configured server. (diff)
downloadgnupg2-bb99b40bd1e624f58ca806ca16dc73d4d594a30a.tar.xz
gnupg2-bb99b40bd1e624f58ca806ca16dc73d4d594a30a.zip
gpg: Improve header text of the auto-created revocations.
* g10/revoke.c (gen_standard_revoke): Improve header text for the file. Add info output. -- GnuPG-bug-id: 1724 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r--g10/revoke.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/g10/revoke.c b/g10/revoke.c
index ba87f3546..a8f765856 100644
--- a/g10/revoke.c
+++ b/g10/revoke.c
@@ -564,14 +564,18 @@ gen_standard_revoke (PKT_public_key *psk, const char *cache_nonce)
(int)len, tmpstr);
xfree (tmpstr);
- es_fprintf (memfp, "%s\n\n%s\n\n:",
+ es_fprintf (memfp, "%s\n\n%s\n\n%s\n\n:",
+ _("A revocation certificate is a kind of \"kill switch\" to publicly\n"
+ "declare that a key shall not anymore be used. It is not possible\n"
+ "to retract such a revocation certificate once it has been published."),
_("Use it to revoke this key in case of a compromise or loss of\n"
"the secret key. However, if the secret key is still accessible,\n"
"it is better to generate a new revocation certificate and give\n"
- "a reason for the revocation."),
+ "a reason for the revocation. For details see the description of\n"
+ "of the gpg command \"--gen-revoke\" in the GnuPG manual."),
_("To avoid an accidental use of this file, a colon has been inserted\n"
"before the 5 dashes below. Remove this colon with a text editor\n"
- "before making use of this revocation certificate."));
+ "before importing and publishing this revocation certificate."));
es_putc (0, memfp);
@@ -583,6 +587,9 @@ gen_standard_revoke (PKT_public_key *psk, const char *cache_nonce)
reason.code = 0x00; /* No particular reason. */
reason.desc = NULL;
rc = create_revocation (fname, &reason, psk, NULL, leadin, 3, cache_nonce);
+ if (!rc && !opt.quiet)
+ log_info (_("revocation certificate stored as '%s.rev'\n"), fname);
+
xfree (leadin);
xfree (fname);