Home GnuPG
Diffusion GnuPG adf4db6e2093

agent: Allow GET_PASSPHRASE in restricted mode.

Description

agent: Allow GET_PASSPHRASE in restricted mode.

* agent/command.c (cmd_get_passphrase): Allow use in restricted mode
but ignore the cacheid.

The use case is symmetric encryption via the extra-socket. To avoid
that the gpg running on the server has access to the cache we set the
cache id to NULL so that the cache is not used at all.

Details

Provenance
wernerAuthored on Feb 25 2024, 3:55 PM
Parents
rG2372f6a4035c: gpg: Fix gpg_mpi_write for the unused opaque case.
Branches
Unknown
Tags
Unknown