From 444d85ace0dddff5c511961927052d9946035b00 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 5 Sep 2016 11:57:09 +0200 Subject: cpp: Add ostream operators for key and uid * lang/cpp/src/key.cpp (Key, UserID): Add ostream operator. * lang/cpp/src/key.h: Update accordingly. -- This is helpful debugging / showing the state of a key / uid and tofuinfo. --- lang/cpp/src/key.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/cpp/src/key.h') diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h index e8d7ee23..85b16dfc 100644 --- a/lang/cpp/src/key.h +++ b/lang/cpp/src/key.h @@ -391,6 +391,9 @@ private: gpgme_key_sig_t sig; }; +GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const UserID &uid); +GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const Key &key); + } // namespace GpgME GPGMEPP_MAKE_STD_SWAP_SPECIALIZATION(Key) -- cgit v1.2.3