aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-11-27 08:20:02 +0000
committerWerner Koch <[email protected]>2013-11-27 08:20:02 +0000
commite951782e937ce290be0d89d83e84b3daea997587 (patch)
tree07d7833eb28a3ad344592395bc685efe8aebf046 /g10/options.h
parentMake use of the *_NAME etc macros. (diff)
downloadgnupg-e951782e937ce290be0d89d83e84b3daea997587.tar.gz
gnupg-e951782e937ce290be0d89d83e84b3daea997587.zip
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 <[email protected]>
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/options.h b/g10/options.h
index d44d7a14b..f9878bdc3 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -91,7 +91,11 @@ struct
int def_cert_level;
int min_cert_level;
int ask_cert_level;
- int no_version;
+ int emit_version; /* 0 = none,
+ 1 = major only,
+ 2 = major and minor,
+ 3 = full version,
+ 4 = full version plus OS string. */
int marginals_needed;
int completes_needed;
int max_cert_depth;