aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/data.cpp
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-05-28 07:56:49 +0000
committerWerner Koch <[email protected]>2018-05-28 07:56:49 +0000
commit0de991fee05a9733ac29b2fa35643fe4607e56cb (patch)
treedbcd4aba50f93ea503d4a3c58b6b8653a0bdcccd /lang/cpp/src/data.cpp
parentjson: Fix use of get_context. (diff)
downloadgpgme-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/data.cpp')
0 files changed, 0 insertions, 0 deletions