Home GnuPG
Diffusion GnuPG 3a07a69dfc87

common: Correctly render SHA256-based ssh fingerprints.

Description

common: Correctly render SHA256-based ssh fingerprints.

* common/ssh-utils.c (dummy_realloc): New function.
(dummy_free): Likewise.
(get_fingerprint): Prepend the fingerprint with the name of the digest
algorithm.  Correctly render SHA256-based ssh fingerprints.
* common/t-ssh-utils.c (sample_keys): Add SHA256 hashes for the keys.
(main): Add an option to dump the keys to gather fingerprints, also
print the SHA256 fingerprint for keys given as arguments, and check
the SHA256 fingerprints of the test keys.
  • GnuPG-bug-id: T2106
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on May 24 2017, 5:03 PM
Parents
rG3ac1a9d3a018: common: Support different digest algorithms for ssh fingerprints.
Branches
Unknown
Tags
Unknown
Tasks
T2106: Support SHA-256 fingerprints for ssh