Home GnuPG
Diffusion GnuPG f355f3f38182

gpg: Fix --quick-set-expire for V5 subkey fingerprints

Description

gpg: Fix --quick-set-expire for V5 subkey fingerprints

* g10/keyedit.c (keyedit_quick_set_expire): Use actual size of
fingerprint.

The size of the fingerprints is either 20 (V4) or 32 (V5). Using the
actual size of the fingerprints fixes the lookup of subkeys with V5
fingerprint.

(cherry picked from commit 79298e87d8436bf0b0bd07c2c1513d10a7eb5823)

Details

Provenance
ikloeckerAuthored on Sep 24 2024, 10:44 AM
wernerCommitted on Tue, Oct 29, 1:11 PM
Parents
rG2ae017a25fe8: common: Fix a race condition in creating socketdir.
Branches
Unknown
Tags
Unknown
Tasks
T7298: gpg --quick-set-expire fails for V5 subkeys