mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-20 21:34:31 -05:00
set gpg2 engine for gpgme
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1734 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
090bab6b28
commit
8a67100ebf
@ -153,6 +153,16 @@ GPGAuthMgr::GPGAuthMgr()
|
||||
gpgme_set_locale(NULL, LC_MESSAGES, setlocale (LC_MESSAGES, NULL));
|
||||
#endif
|
||||
|
||||
#ifndef WINDOWS_SYS
|
||||
/* setup the engine (gpg2) */
|
||||
if (GPG_ERR_NO_ERROR != gpgme_set_engine_info(GPGME_PROTOCOL_OpenPGP, "/usr/bin/gpg2", NULL))
|
||||
{
|
||||
std::cerr << "Error creating Setting engine";
|
||||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (GPG_ERR_NO_ERROR != gpgme_engine_check_version(GPGME_PROTOCOL_OpenPGP))
|
||||
{
|
||||
std::cerr << "Error check engine version";
|
||||
|
Loading…
Reference in New Issue
Block a user