aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/gpg/GpgKeyManager.h')
-rw-r--r--src/core/function/gpg/GpgKeyManager.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/function/gpg/GpgKeyManager.h b/src/core/function/gpg/GpgKeyManager.h
index 83a38d05..986e835f 100644
--- a/src/core/function/gpg/GpgKeyManager.h
+++ b/src/core/function/gpg/GpgKeyManager.h
@@ -101,6 +101,17 @@ class GPGFRONTEND_CORE_EXPORT GpgKeyManager
*/
auto DeleteSubkey(const GpgKey& key, int subkey_index) -> bool;
+ /**
+ * @brief
+ *
+ * @param key
+ * @param subkey_index
+ * @return true
+ * @return false
+ */
+ auto RevokeSubkey(const GpgKey& key, int subkey_index, int reason_code,
+ const QString& reason_text) -> bool;
+
private:
static auto interactor_cb_fnc(void* handle, const char* status,
const char* args, int fd) -> gpgme_error_t;
@@ -111,6 +122,8 @@ class GPGFRONTEND_CORE_EXPORT GpgKeyManager
AS_SELECT,
AS_COMMAND,
AS_VALUE,
+ AS_REASON_CODE,
+ AS_REASON_TEXT,
AS_REALLY_ULTIMATE,
AS_SAVE,
AS_ERROR,