aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/gpgsignkeyeditinteractor.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2019-10-29 15:26:42 +0000
committerAndre Heinecke <[email protected]>2019-10-29 15:31:20 +0000
commit36f7f7a478228a64d3d51a4901a264c8f55f90bb (patch)
tree1f502720bec8b1d33888eb527c055b0d227aade9 /lang/cpp/src/gpgsignkeyeditinteractor.h
parentcpp: Add convenience API to obtain remarks (diff)
downloadgpgme-36f7f7a478228a64d3d51a4901a264c8f55f90bb.tar.gz
gpgme-36f7f7a478228a64d3d51a4901a264c8f55f90bb.zip
cpp: Add support for multiple keysigs in edit
* lang/cpp/src/gpgsignkeyeditinteractor.cpp (GpgSignKeyEditInteractor::setDupeOk): New. (makeTable): Add new tansitions. (SignKeyState): Add DUPE_OK Status. (GpgSignKeyEditInteractor::action): Handle DUPE_OK. (GpgSignKeyEditInteractor::Private::Private): Carry flag. -- When extended-edit is enabled this can be used to answer the "dupe_ok" query from the edit-key with yes. This is for: GnuPG-Bug-Id: T4734
Diffstat (limited to 'lang/cpp/src/gpgsignkeyeditinteractor.h')
-rw-r--r--lang/cpp/src/gpgsignkeyeditinteractor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/cpp/src/gpgsignkeyeditinteractor.h b/lang/cpp/src/gpgsignkeyeditinteractor.h
index 34b1f064..bb5320a2 100644
--- a/lang/cpp/src/gpgsignkeyeditinteractor.h
+++ b/lang/cpp/src/gpgsignkeyeditinteractor.h
@@ -52,6 +52,11 @@ public:
void setUserIDsToSign(const std::vector<unsigned int> &userIDsToSign);
void setSigningOptions(int options);
+ /* Set this if it is ok to overwrite an existing signature. In that
+ * case the context has to have the flag "extended-edit" set to 1 through
+ * Context::setFlag before calling edit.*/
+ void setDupeOk(bool value);
+
private:
const char *action(Error &err) const override;
unsigned int nextState(unsigned int statusCode, const char *args, Error &err) const override;