aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-08-07 03:46:09 +0000
committerNIIBE Yutaka <[email protected]>2020-08-07 04:02:47 +0000
commit373c975859a55f942276d6078f27ee33570bf2d5 (patch)
treec0f94f54047f2f3ae55ed89c010b3ea35f320246 /agent/command-ssh.c
parentgpg: Fix short key ID for v5key. (diff)
downloadgnupg-373c975859a55f942276d6078f27ee33570bf2d5.tar.gz
gnupg-373c975859a55f942276d6078f27ee33570bf2d5.zip
gpg: Fix trustdb for v5key.
* g10/keydb.h (fpr20_from_pk): New. * g10/keyid.c (fpr20_from_pk): New. * g10/tdbio.c (tdbio_search_trust_byfpr): Use fpr20_from_pk. * g10/trustdb.c (keyid_from_fpr20): New. (verify_own_keys): Use keyid_from_fpr20. (tdb_update_ownertrust): Use fpr20_from_pk. (update_min_ownertrust): Likewise. (update_validity): Likewise. -- For the compatibility of existing implementation, we keep the format of trustdb untouched. The format of trustdb uses 20-byte fingerprint for the trust record entry. To handle both of v4key (with 20-byte fingerprint) and v5 key (with 32-byte fingerprint), we introduce FPR20 fingerprint, internally. For v4key, FPR20 is as same as v4 fingerprint. For v5key, FPR20 is constructed from v5key fingerprint. GnuPG-bug-id: 5000 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/command-ssh.c')
0 files changed, 0 insertions, 0 deletions