<div dir="ltr">Thanks Werner, <div><br></div><div>I did that, saw the call to gpg2 (2.0.28, libcrypt 1.6.3), tried changing the engine to /usr/bin/gpg ( using <span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,103,124)">gpgme_ctx_set_engine_info</span>(<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">ctx</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">GPGME_PROTOCOL_OpenPGP</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"/usr/bin/gpg"</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">NULL</span><span style="color:rgb(192,192,192)"> </span>) ) <span style="color:rgb(192,192,192)"></span>and that worked under Ubuntu.</div>
<div><br></div><div>Now, my target environment is CentOS 7, and they resolve /usr/bin/gpg with a link to /usr/bin/gpg2 - which does not play nice with set_passphrase_cb(). Any suggestions on the best way to untangle that knot?</div><div><br></div><div>Mike</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 22, 2018 at 3:20 AM, Werner Koch <span dir="ltr"><<a href="mailto:wk@gnupg.org" target="_blank">wk@gnupg.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 21 Mar 2018 23:53, <a href="mailto:mangocats@gmail.com">mangocats@gmail.com</a> said:<br>
<br>
> Which versions of gpg/gpgme support passphrase callback setting for<br>
> symmetric encryption? My gpgme_check_version returns 1.5.5 and gpg<br>
> --version returns 1.4.18 in Ubuntu 15.10<br>
<br>
</span>I doubt that it will work with 1.4. Note that gpgme prefers an<br>
installed GnuPG 2 version and that may be an too old version or<br>
combination of GnuPG 2 and gpgme.<br>
<br>
I would suggest that you run your application with<br>
<br>
GPGME_DEBUG=9:gpgme.log: ./your-application<br>
<br>
and check the created log file. It will have the used gpg version right<br>
at the top and log the entire communication between gpgme and gpg.<br>
<br>
<br>
Salam-Shalom,<br>
<br>
Werner<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
# Please read: Daniel Ellsberg - The Doomsday Machine #<br>
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.<br>
</font></span></blockquote></div><br></div>