Home GnuPG
Diffusion GPGME aa15a664b3cf

core: Support all keylist modes and fix possible overrun

Description

core: Support all keylist modes and fix possible overrun

* src/gpgme-tool.c (gt_get_keylist_mode): Increase NR_KEYLIST_MODES to
number of keylist modes. Add support for GPGME_KEYLIST_MODE_WITH_TOFU,
GPGME_KEYLIST_MODE_WITH_KEYGRIP, GPGME_KEYLIST_MODE_WITH_V5FPR. Write
all modes.
(hlp_keylist_mode): List all supported keylist modes.
(cmd_keylist_mode): Add support for GPGME_KEYLIST_MODE_WITH_TOFU,
GPGME_KEYLIST_MODE_WITH_KEYGRIP, GPGME_KEYLIST_MODE_WITH_V5FPR.

This fixes the possible overrun reported by Michal Hlavinka and adds
support for all keylist modes.

Details

Provenance
ikloeckerAuthored on Jul 15 2024, 10:19 PM
Parents
rMe46748a0d18b: build,cpp: Fix include paths in forwarding headers in gpgme++ folder
Branches
Unknown
Tags
Unknown