From 8a67100ebf31fc53fa652f84b40b25d6c2af6ad4 Mon Sep 17 00:00:00 2001 From: joss17 Date: Tue, 27 Oct 2009 20:46:56 +0000 Subject: [PATCH] set gpg2 engine for gpgme git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1734 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/authgpg.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libretroshare/src/pqi/authgpg.cc b/libretroshare/src/pqi/authgpg.cc index b05374c48..20a30345b 100644 --- a/libretroshare/src/pqi/authgpg.cc +++ b/libretroshare/src/pqi/authgpg.cc @@ -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";