Home GnuPG
Diffusion GPGME 0de991fee05a

json: Do not allow to export or delete secret keys.

Description

json: Do not allow to export or delete secret keys.

* src/gpgme-json.c (op_export, op_delete): Return GPG_ERR_FORBIDDEN if
"secret" is used.

This should not be possible from a browser and we need to make this
fully clear. Actually gpg-agent won't allow that anyway but having
this explicitly is better.

If that is ever needed a dedicated command line option may enable
this, for example when used by regular programs and not by the browser.
But that requires other changes as well.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 28 2018, 9:56 AM
Parents
rM368f2d9db30d: json: Fix use of get_context.
Branches
Unknown
Tags
Unknown