Home GnuPG
Diffusion GpgOL 07af82e561e2

Add simple way to check if we are in TOFU mode

Description

Add simple way to check if we are in TOFU mode

* src/keycache.cpp (KeyCache::useTofu): New.
(KeyCache::setConfig): Check for trust model tofu.
* src/parsecontroller.cpp (ParseController::parse): Only update
key in offline mode when TOFU is used.

Details

Provenance
aheineckeAuthored on May 15 2020, 10:43 AM
Parents
rO665e15cb16b6: Only update key after verify if we are online
Branches
Unknown
Tags
Unknown