Home GnuPG
Diffusion Scute 1a87b2f26ad9

Add option to return leaf certificate only.

Description

Add option to return leaf certificate only.

* src/options.h (_scute_opt_t): Add no_chain.
* src/readconf.c (_scute_read_conf): Set no_chain.
* src/agent.c (scute_gpgsm_get_cert): Ask for chain of certificates
depending on no_chain value.

The default behaviour of Scute of returning the full certificate
chain may cause various issues in client applications, some of
which seemingly only expect a single certificate. Thus we make
this behaviour configurable.

  • Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>

Details

Provenance
gouttegdAuthored on Sep 16 2022, 4:17 AM
gniibeCommitted on Sep 28 2022, 7:50 AM
Parents
rS3bf758969ded: Do not launch gpg-agent if no-autostart is active.
Branches
Unknown
Tags
Unknown