[patch] do not print version string by default
Mansour Moufid
mansourmoufid at gmail.com
Mon Apr 6 05:18:51 CEST 2015
Hello everyone,
You may have heard about the law enforcement agents who are accused of
stealing some Silk Road bitcoins. They used GPG at some point and the
version string is used as "evidence" to identify them -- which is of
course ridiculous but it is what it is.
See: https://twitter.com/wiretapped/status/582663354533195777
Let's not print the version string by default.
Yours,
Mansour
diff --git a/doc/gpg.texi b/doc/gpg.texi
index 741271e..c70b9e0 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -2514,10 +2514,10 @@ protected by the signature.
@opindex emit-version
Force inclusion of the version string in ASCII armored output. If
given once only the name of the program and the major number is
-emitted (default), given twice the minor is also emitted, given triple
+emitted, given twice the minor is also emitted, given triple
the micro is added, and given quad an operating system identification
is also emitted. @option{--no-emit-version} disables the version
-line.
+line (default).
@item --sig-notation @code{name=value}
@itemx --cert-notation @code{name=value}
diff --git a/g10/gpg.c b/g10/gpg.c
index da4224f..e994439 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2146,7 +2146,7 @@ main (int argc, char **argv)
opt.def_cert_expire = "0";
set_homedir (default_homedir ());
opt.passphrase_repeat = 1;
- opt.emit_version = 1; /* Limit to the major number. */
+ opt.emit_version = 0;
/* Check whether we have a config file on the command line. */
orig_argc = argc;
More information about the Gnupg-devel
mailing list