From c569adb5e3e3082bd68cdc34a2d349b7c28d3768 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 19 Sep 2018 11:51:31 +0200 Subject: json: Remove subkey-algo from createkey command. * src/gpgme-json.c (op_createkey): Remove subkey-algo param. (GPG_AGENT_ALLOWS_KEYGEN_TRHOUGH_BROWSER): Fix typo. * lang/js/src/Keyring.js: Remove subkey-algo support. * lang/js/src/permittedOperations.js: Ditto. -- We do not want to expose details of the protocol's key generation and thus the subkey-algo does not make sense. Right now we support only the default and future-default algorithms. A user can configure them anyway using new-default-key-algo in gpg.conf. Eventually we may officially support a more flexible way of creating special structured OpenPGP keys but right now that is not part of the API. Signed-off-by: Werner Koch --- lang/js/src/permittedOperations.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'lang/js/src/permittedOperations.js') diff --git a/lang/js/src/permittedOperations.js b/lang/js/src/permittedOperations.js index c3c72ca1..09a17834 100644 --- a/lang/js/src/permittedOperations.js +++ b/lang/js/src/permittedOperations.js @@ -348,9 +348,6 @@ export const permittedOperations = { algo: { allowed: ['string'] }, - 'subkey-algo': { - allowed: ['string'] - }, expires: { allowed: ['number'], } -- cgit v1.2.3