aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2021-12-07 10:13:59 +0000
committerIngo Klöcker <[email protected]>2021-12-07 10:14:32 +0000
commit0eddc867c31dd7239a1a9c4196bf8dc1372ea4b1 (patch)
tree9d07bb86489489b7692c2db0244f691c8a2eb187 /lang/cpp/src/context.cpp
parentcpp: Factor out common code of GpgME::engineInfo() overloads (diff)
downloadgpgme-0eddc867c31dd7239a1a9c4196bf8dc1372ea4b1.tar.gz
gpgme-0eddc867c31dd7239a1a9c4196bf8dc1372ea4b1.zip
cpp: Return engine info for engine used by the context
lang/cpp/src/context.cpp (Context::engineInfo()): Return engine info for protocol of context. -- This change also fixes Context::setEngineFileName() and Context::setEngineHomeDirectory() which overwrote home dir resp. file name of the engine info for the protocol of context with the corresponding value of the "first" engine info (i.e. engine info for gpg) instead of keeping the current home dir resp. file name. GnuPG-bug-id: 5722
Diffstat (limited to 'lang/cpp/src/context.cpp')
-rw-r--r--lang/cpp/src/context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 7f027f1d..a46aa6d3 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -488,7 +488,7 @@ static GpgME::EngineInfo get_static_engine_info(gpgme_protocol_t protocol)
EngineInfo Context::engineInfo() const
{
- return EngineInfo(gpgme_ctx_get_engine_info(d->ctx));
+ return get_engine_info(gpgme_ctx_get_engine_info(d->ctx), gpgme_get_protocol(d->ctx));
}
Error Context::setEngineFileName(const char *filename)