<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/cpp/src/context.cpp, branch gpgme-2.2.0</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-2.2.0</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-2.2.0'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2025-02-03T09:55:40Z</updated>
<entry>
<title>cpp,qt: Remove C++ and Qt bindings</title>
<updated>2025-02-03T09:55:40Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2025-02-03T09:49:25Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=763d5f5d6a88ec938b8678ab597e1404af724553'/>
<id>urn:sha1:763d5f5d6a88ec938b8678ab597e1404af724553</id>
<content type='text'>
* README: Update.
* configure.ac: Remove checks, variables and file generations related to
the C++/Qt bindings. Remove cpp and qt* from available_languages and
default_languages.
* lang/Makefile.am (DIST_SUBDIRS): Remove cpp and qt.
* lang/cpp, lang/qt: Remove.
* m4/ax_check_compile_flag.m4, m4/ax_cxx_compile_stdcxx.m4,
m4/ax_gcc_func_attribute.m4, m4/pkg.m4, m4/qt5.m4, m4/qt6.m4: Remove.
--

The C++ and Qt bindings have been moved to separate Git repositories:
gpgmepp and gpgmeqt.

GnuPG-bug-id: 7262
</content>
</entry>
<entry>
<title>cpp: Add support for setting owner trust and for disabling keys</title>
<updated>2024-08-06T15:56:43Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2024-08-06T13:32:20Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=d5f612e9685d18313d445799a19ff83e013f1b0a'/>
<id>urn:sha1:d5f612e9685d18313d445799a19ff83e013f1b0a</id>
<content type='text'>
* lang/cpp/src/context.cpp, lang/cpp/src/context.h (class Context): Add
member functions setOwnerTrust, startSetOwnerTrust, setKeyEnabled,
startSetKeyEnabled.
* lang/cpp/src/context.cpp (owner_trust_to_string): New.
--

GnuPG-bug-id: 7239
</content>
</entry>
<entry>
<title>cpp: Deprecate Error::asString and update users</title>
<updated>2024-07-05T08:05:51Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2024-07-04T16:03:17Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=28542b14c4df40c7a54bfcf65d7c725bd99fb3e5'/>
<id>urn:sha1:28542b14c4df40c7a54bfcf65d7c725bd99fb3e5</id>
<content type='text'>
* lang/cpp/src/error.h (Error::asString): Mark as deprecated.
* lang/cpp/src/context.cpp (operator&lt;&lt;),
lang/cpp/src/editinteractor.cpp (edit_interactor_callback_impl),
lang/cpp/tests/run-getkey.cpp (main),
lang/cpp/tests/run-keylist.cpp (main),
lang/cpp/tests/run-wkdlookup.cpp (main): Use Error::asStdString instead
of Error::asString.
--

GnuPG-bug-id: 7188
</content>
</entry>
<entry>
<title>cpp: Add safer member function returning text describing an error</title>
<updated>2024-07-05T08:05:51Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2024-07-04T12:36:04Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=2656d3ee5b1a905d9fe4dd5c8b2d9737e775df31'/>
<id>urn:sha1:2656d3ee5b1a905d9fe4dd5c8b2d9737e775df31</id>
<content type='text'>
* lang/cpp/src/error.h, lang/cpp/src/context.cpp (class Error): New
member function asStdString.
--

Unlike asString the new function doesn't cache the value returned by
gpgme_strerror_r. This ensures that on Windows the UTF-8 encoded text
is returned for the main thread even if the function was called before
for another thread. For other threads asStdString will still return the
natively encoded error description until UTF-8 encoded error
descriptions can be enabled for all threads (T7185).

GnuPG-bug-id: 7188
</content>
</entry>
<entry>
<title>cpp: Remove commented out and disabled code</title>
<updated>2024-06-10T12:54:48Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2024-06-10T09:48:05Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=4136928f0d894e873eb0ecb0bc79931a023ba32c'/>
<id>urn:sha1:4136928f0d894e873eb0ecb0bc79931a023ba32c</id>
<content type='text'>
* lang/cpp/src/configuration.cpp: Remove disabled, abandoned code.
* lang/cpp/src/context.cpp: Remove commented out, obsolete code.
--
</content>
</entry>
<entry>
<title>qt,cpp: Implement adding ADSKs to existing keys</title>
<updated>2024-05-22T11:08:50Z</updated>
<author>
<name>Tobias Fella</name>
<email>tobias.fella@gnupg.com</email>
</author>
<published>2024-01-08T10:33:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=15718cb2954d9df9af979f574cec859feb2ba052'/>
<id>urn:sha1:15718cb2954d9df9af979f574cec859feb2ba052</id>
<content type='text'>
* lang/cpp/src/context.cpp: Add functions for adding ADSKs.
* lang/cpp/src/context.h: Ditto.
* lang/qt/src/qgpgmequickjob.cpp: Add implementation of ADSK job.
* lang/qt/src/qgpgmequickjob.h: Ditto.
* lang/qt/src/quickjob.h: Add job for adding ADSKs.
</content>
</entry>
<entry>
<title>cpp: Support new flags for direct signing/encryption of files</title>
<updated>2023-12-19T13:01:18Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-12-19T13:01:18Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=60c0fd7c955d6b8c1d0d7be3d3c65257c6418a26'/>
<id>urn:sha1:60c0fd7c955d6b8c1d0d7be3d3c65257c6418a26</id>
<content type='text'>
* lang/cpp/src/context.h (enum EncryptionFlags): Add constant
EncryptFile.
* lang/cpp/src/global.h (enum SignatureMode): Add constant SignFile.
* lang/cpp/src/context.cpp (sigflags2sigflags): Handle new flag
SignFile.
(encryptflags2encryptflags): Handle new flag EncryptFile.
(operator&lt;&lt;): Add new flags to the corresponding debug streams.
* lang/cpp/src/signingresult.cpp (CreatedSignature::mode): Handle
new flag SignFile (even if it cannot occur).
--

GnuPG-bug-id: 6550
</content>
</entry>
<entry>
<title>doc,cpp: Treat GPG_ERR_FULLY_CANCELED as canceled</title>
<updated>2023-06-01T07:37:41Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-06-01T07:34:25Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=7990f70107bc8487f954c6885436a7661e162929'/>
<id>urn:sha1:7990f70107bc8487f954c6885436a7661e162929</id>
<content type='text'>
* doc/gpgme.texi (GPG_ERR_FULLY_CANCELED): New.
* lang/cpp/src/context.cpp (Error::isCanceled): Also return true for
GPG_ERR_FULLY_CANCELED.
--

For internal purposes, GnuPG sometimes uses the error code
GPG_ERR_FULLY_CANCELED instead of GPG_ERR_CANCELED. From a user
perspective both values mean the same thing and should therefore be
treated identically.

GnuPG-bug-id: 6510
</content>
</entry>
<entry>
<title>cpp: Return successful verification for signed but not encrypted data</title>
<updated>2023-02-02T11:11:29Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-02-02T10:59:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=1698eec2ae3ec1a97c739e892d9cf288c0ec4ccd'/>
<id>urn:sha1:1698eec2ae3ec1a97c739e892d9cf288c0ec4ccd</id>
<content type='text'>
* lang/cpp/src/context.cpp (Context::decrypt): Use decryptionResult().
(Context::verifyDetachedSignature, Context::verifyOpaqueSignature):
Use verificationResult().
(Context::verificationResult): Ignore "no data" error for signed but
not encrypted data.
(Context::decryptAndVerify): Use decryptionResult() and
verificationResult().
--

gpgme's decrypt operations set the error to GPG_ERR_NO_DATA if no
encrypted data was found. It makes sense to use this error for the
encryption result, but it doesn't make sense to use it also for the
verfication result if signed data was found.
This way using the combined decrypt-verify operations on data that
may be encrypted and/or signed doesn't produce confusing results.

GnuPG-bug-id: 6342
</content>
</entry>
<entry>
<title>cpp: Fix debug output of SignatureMode</title>
<updated>2023-01-31T11:01:33Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-01-31T10:48:19Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=41a30f6d9f59b08213ab2c307036be9bc9b6f876'/>
<id>urn:sha1:41a30f6d9f59b08213ab2c307036be9bc9b6f876</id>
<content type='text'>
* lang/cpp/src/context.cpp (operator&lt;&lt;): Treat signature mode as
combination of a 2-bit flag and a 1-bit flag.
--

This fixes the output for normal signature mode.

GnuPG-bug-id: 6342
</content>
</entry>
</feed>
