diff options
author | Werner Koch <[email protected]> | 2015-02-23 16:54:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-02-23 16:54:05 +0000 |
commit | ae09515b9d3aae653b62a32ea5b4a9b9e557fc52 (patch) | |
tree | 162ad1ca241f9ac092a7a9219e7a96732fd43175 /g10/gpg.c | |
parent | gpg: Skip legacy keys while searching keyrings. (diff) | |
download | gnupg-ae09515b9d3aae653b62a32ea5b4a9b9e557fc52.tar.gz gnupg-ae09515b9d3aae653b62a32ea5b4a9b9e557fc52.zip |
gpg: Add option to print fingerprints in ICAO spelling.
* g10/gpg.c: Add option --with-icao-spelling.
* g10/options.h (struct opt): Add with_icao_spelling.
* g10/keylist.c (print_icao_hexdigit): New.
(print_fingerprint): Print ICAO spelling.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/gpg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -176,6 +176,7 @@ enum cmd_and_opt_values oNoAskCertLevel, oFingerprint, oWithFingerprint, + oWithICAOSpelling, oWithKeygrip, oWithSecret, oAnswerYes, @@ -692,6 +693,7 @@ static ARGPARSE_OPTS opts[] = { ARGPARSE_s_n (oUtf8Strings, "utf8-strings", "@"), ARGPARSE_s_n (oNoUtf8Strings, "no-utf8-strings", "@"), ARGPARSE_s_n (oWithFingerprint, "with-fingerprint", "@"), + ARGPARSE_s_n (oWithICAOSpelling, "with-icao-spelling", "@"), ARGPARSE_s_n (oWithKeygrip, "with-keygrip", "@"), ARGPARSE_s_n (oWithSecret, "with-secret", "@"), ARGPARSE_s_s (oDisableCipherAlgo, "disable-cipher-algo", "@"), @@ -2421,6 +2423,9 @@ main (int argc, char **argv) opt.with_fingerprint = 1; opt.fingerprint++; break; + case oWithICAOSpelling: + opt.with_icao_spelling = 1; + break; case oFingerprint: opt.fingerprint++; fpr_maybe_cmd = 1; |