diff options
author | Werner Koch <[email protected]> | 2018-05-28 07:56:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-05-28 07:56:49 +0000 |
commit | 0de991fee05a9733ac29b2fa35643fe4607e56cb (patch) | |
tree | dbcd4aba50f93ea503d4a3c58b6b8653a0bdcccd /lang/cpp/src | |
parent | json: Fix use of get_context. (diff) | |
download | gpgme-0de991fee05a9733ac29b2fa35643fe4607e56cb.tar.gz gpgme-0de991fee05a9733ac29b2fa35643fe4607e56cb.zip |
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 <[email protected]>
Diffstat (limited to 'lang/cpp/src')
0 files changed, 0 insertions, 0 deletions