mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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: 2106 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
0c628321a1
commit
3ac1a9d3a0
6 changed files with 41 additions and 36 deletions
|
@ -31,9 +31,11 @@
|
|||
#define GNUPG_COMMON_SSH_UTILS_H
|
||||
|
||||
|
||||
gpg_error_t ssh_get_fingerprint (gcry_sexp_t key, void **r_fpr, size_t *r_len);
|
||||
gpg_error_t ssh_get_fingerprint (gcry_sexp_t key, int algo,
|
||||
void **r_fpr, size_t *r_len);
|
||||
|
||||
gpg_error_t ssh_get_fingerprint_string (gcry_sexp_t key, char **r_fprstr);
|
||||
gpg_error_t ssh_get_fingerprint_string (gcry_sexp_t key, int algo,
|
||||
char **r_fprstr);
|
||||
|
||||
|
||||
#endif /*GNUPG_COMMON_SSH_UTILS_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue