Home GnuPG
Diffusion GnuPG 776876ce1c4c

gpgsm: Add --always-trust feature.

Description

gpgsm: Add --always-trust feature.

* sm/gpgsm.h (opt): Re-purpose unused flag always_trust.
(struct server_control_s): Add "always_trust".
(VALIDATE_FLAG_BYPASS): New.
* sm/gpgsm.c (oAlwaysTrust): New.
(opts): Add "--always-trust"
(main): Set option.
* sm/server.c (option_handler): Add option "always-trust".
(reset_notify): Clear that option.
(cmd_encrypt): Ditto.
(cmd_getinfo): Add sub-command always-trust.
* sm/certchain.c (gpgsm_validate_chain): Handle VALIDATE_FLAG_BYPASS.
* sm/certlist.c (gpgsm_add_to_certlist): Set that flag for recipients
in always-trust mode.

Details

Provenance
wernerAuthored on Aug 31 2023, 11:13 AM
Parents
rGee27ac18eaf2: doc: Add some hints for AD queries.
Branches
Unknown
Tags
Unknown
Tasks
T6559: GPGSM: "always trust like override" or "force" option