From ffdb75217bc09561cf651dab15cd26e0024d89a7 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Tue, 26 Mar 2019 12:02:28 +0100 Subject: 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 --- lang/cpp/src/gpggencardkeyinteractor.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lang/cpp/src/gpggencardkeyinteractor.h') 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: -- cgit v1.2.3