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>