diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-03-02 11:27:44 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-03-02 11:54:11 +0100 |
commit | 43eab70f6a22b62ce0577e929e09f1d68cea80a8 (patch) | |
tree | cf3c1dc1a6e59f7b5c2531b8b7786181574738b5 /openpgp/src/serialize | |
parent | 18038d05d207ded98620d7ee0f7f3ca968642072 (diff) |
openpgp: Drop spaces from default string representation.
- Spaces in key ids and fingerprints make them awkward to copy and
pass as command line arguments. Change the default representation.
For the rare occasions that we expect users to manually verify
fingerprints, the previously introduced *::to_hex_pretty functions
can be used.
- Fixes #422.
Diffstat (limited to 'openpgp/src/serialize')
-rw-r--r-- | openpgp/src/serialize/cert_armored.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/cert_armored.rs b/openpgp/src/serialize/cert_armored.rs index ca39b39a..ab22ec51 100644 --- a/openpgp/src/serialize/cert_armored.rs +++ b/openpgp/src/serialize/cert_armored.rs @@ -56,7 +56,7 @@ impl Cert { }).collect(); // Add the fingerprint to the front. - headers.insert(0, self.fingerprint().to_string()); + headers.insert(0, self.fingerprint().to_spaced_hex()); headers } |