aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/gpggencardkeyinteractor.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2019-03-26 11:02:28 +0000
committerAndre Heinecke <[email protected]>2019-03-26 11:02:28 +0000
commitffdb75217bc09561cf651dab15cd26e0024d89a7 (patch)
tree8c6669b7a24684800412afcc593728f9549cfc8a /lang/cpp/src/gpggencardkeyinteractor.h
parentcore, w32: Add hack to translate diag logger-fd (diff)
downloadgpgme-ffdb75217bc09561cf651dab15cd26e0024d89a7.tar.gz
gpgme-ffdb75217bc09561cf651dab15cd26e0024d89a7.zip
cpp: Fix GenCardKeyInteractor and extend it
* NEWS: Mention interface change. * lang/cpp/src/gpggencardkeyinteractor.cpp (GpgGenCardKeyInteractor::setAlgo): New. (GpgGenCardKeyInteractor::action), (GpgGenCardKeyInteractor::nextState: Handle new interface. -- Tested that this workes with the old interface of GnuPG 2.2.5 and the new interface since GnuPG 2.2.6 GnuPG-Bug-Id: T4428
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/gpggencardkeyinteractor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/cpp/src/gpggencardkeyinteractor.h b/lang/cpp/src/gpggencardkeyinteractor.h
index d6a7b7b0..3d9c7136 100644
--- a/lang/cpp/src/gpggencardkeyinteractor.h
+++ b/lang/cpp/src/gpggencardkeyinteractor.h
@@ -56,6 +56,12 @@ public:
void setDoBackup(bool value);
void setExpiry(const std::string &timeString);
+ enum Algo {
+ RSA = 1,
+ ECC = 2
+ };
+ void setAlgo(Algo algo);
+
std::string backupFileName() const;
private: