diff options
author | Andre Heinecke <[email protected]> | 2019-11-04 12:54:55 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2019-11-04 12:54:55 +0000 |
commit | cb7668caeb71429afce1aded9128334182b233e1 (patch) | |
tree | daf8c5defff1c3753a68b726a80baeefcbd7db76 /lang/cpp/src/key.h | |
parent | qt,tests: Move remarks test out and extend it (diff) | |
download | gpgme-cb7668caeb71429afce1aded9128334182b233e1.tar.gz gpgme-cb7668caeb71429afce1aded9128334182b233e1.zip |
cpp: Add API to obtain mutliple remarks
* lang/cpp/src/key.cpp, lang/cpp/src/key.h (UserID::remarks): New.
* NEWS: Mention this.
--
This can be useful if we want to show remarks made by others, too.
For:
GnuPG-Bug-Id: T4734
Diffstat (limited to 'lang/cpp/src/key.h')
-rw-r--r-- | lang/cpp/src/key.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h index cca3c7a6..cf4e9054 100644 --- a/lang/cpp/src/key.h +++ b/lang/cpp/src/key.h @@ -430,6 +430,10 @@ public: const char *remark(const Key &key, Error &error) const; + /*! Get multiple remarks made by potentially multiple keys. */ + std::vector <std::string> remarks(std::vector<GpgME::Key> remarkers, + Error &error) const; + private: shared_gpgme_key_t key; gpgme_user_id_t uid; |