gpg: Change armor Version header to emit only the major version.
authorWerner Koch <wk@gnupg.org>
Wed, 27 Nov 2013 08:20:02 +0000 (09:20 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 27 Nov 2013 08:32:43 +0000 (09:32 +0100)
commitfd5f45249602863a4c54cd724fa6ed57e0a239c2
treefaffe249a8cea2052df094ec2dc4be746bca124f
parent571bcd4662a351cfa55bbf1a79ed1bc26da5780f
gpg: Change armor Version header to emit only the major version.

* g10/options.h (opt): Rename field no_version to emit_version.
* g10/gpg.c (main): Init opt.emit_vesion to 1.  Change --emit-version
to bump up opt.emit_version.
* g10/armor.c (armor_filter): Implement different --emit-version
values.
--

GnuPG-bug-id: 1572
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit e951782e937ce290be0d89d83e84b3daea997587)

Resolved conflicts:
NEWS
g10/armor.c
g10/gpg.c
NEWS
doc/gpg.texi
g10/armor.c
g10/gpg.c
g10/options.h