diff options
author | Ingo Klöcker <[email protected]> | 2022-02-02 10:07:53 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-02-03 14:56:30 +0000 |
commit | bbaeeb5b9d5cca99c332cb88c7ae5f14e8745427 (patch) | |
tree | b4fffe9c249b3af8cd31dd9e934d5203d88165ef /lang/cpp/src/context.h | |
parent | cpp: Add internal adapter for passing a vector of strings to gpgme (diff) | |
download | gpgme-bbaeeb5b9d5cca99c332cb88c7ae5f14e8745427.tar.gz gpgme-bbaeeb5b9d5cca99c332cb88c7ae5f14e8745427.zip |
cpp: Allow import of keys given by key ids
* lang/cpp/src/context.h (class Context): Add overloads of member
functions importKeys and startKeyImport
* lang/cpp/src/context.cpp (class Context): ... and implement them.
--
GnuPG-bug-id: 5808
Diffstat (limited to '')
-rw-r--r-- | lang/cpp/src/context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index bfa6b8d8..9c2b2a5f 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -31,6 +31,7 @@ #include "verificationresult.h" // for Signature::Notation #include <memory> +#include <string> #include <vector> #include <utility> #include <iosfwd> @@ -225,8 +226,10 @@ public: ImportResult importKeys(const Data &data); ImportResult importKeys(const std::vector<Key> &keys); + ImportResult importKeys(const std::vector<std::string> &keyIds); GpgME::Error startKeyImport(const Data &data); GpgME::Error startKeyImport(const std::vector<Key> &keys); + GpgME::Error startKeyImport(const std::vector<std::string> &keyIds); ImportResult importResult() const; // |