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
This commit is contained in:
parent
1a1e914587
commit
0eddc867c3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user