Home GnuPG
Diffusion GnuPG 3ac1a9d3a018

common: Support different digest algorithms for ssh fingerprints.

Description

common: Support different digest algorithms for ssh fingerprints.

* common/ssh-utils.c (get_fingerprint): Add and honor 'algo' parameter.
(ssh_get_fingerprint{,_string}): Likewise.
* common/ssh-utils.h (ssh_get_fingerprint{,_string}): Update prototypes.
* common/t-ssh-utils.c (main): Adapt accordingly.
* agent/command-ssh.c (agent_raw_key_from_file): Likewise.
(ssh_identity_register): Likewise.
* agent/command.c (do_one_keyinfo): Likewise.
* agent/findkey.c (modify_description): Likewise.

This lays the foundation to support other algorithms.

  • GnuPG-bug-id: T2106
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Dec 4 2015, 3:19 PM
Parents
rG0c628321a18c: Register DCO for William L. Thomson Jr.
Branches
Unknown
Tags
Unknown
Tasks
T2106: Support SHA-256 fingerprints for ssh