- agent/call-pinentry.c (estimate_passphrase_quality): Call external program to evaluate passphrase if requested.
- agent/agent.h (struct opt): New field passphrase_quality_checker.
- agent/gpg-agent.c (oPassphraseChecker): New const.
(opts): New option --passphrase-checker.
(parse_rereadable_options): Handle the new option.
This is a proposal to allow deferring the evaluation of a
passphrase's quality to an external program. The program is
expected to accept the passphrase to its standard input and
to write the quality value on its standard output (this is
the behavior of the pwscore program, part of the libpwquality
project).
GnuPG-bug-id: 2103
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>