Home GnuPG
Diffusion GnuPG 557ddbde3258

agent: Add genpin inquiry for pinentry

Description

agent: Add genpin inquiry for pinentry

* agent/call-pinentry.c (agent_get_passphrase): Setup genpin.
(do_getpin): Update with new name for inquire callback.
(inq_quality): Rename to inq_cb and add genpin support.
(inq_cb): Renamed form inq_quality.
(generate_pin): New helper to generate a pin.
(agent_askpin): Fix some typos.
(setup_genpin): Provide new strings for pinentry.

This implements the gpg-agent side for generating a pin
especially for symmetric encryption using libgcrypt randomness
and checking it against the gpg-agent constraints.

Details

Provenance
aheineckeAuthored on Nov 6 2020, 2:19 PM
Parents
rG31e47dfad0f4: gpg: Add canceled status message.
Branches
Unknown
Tags
Unknown