Access violation using gpgme

Andre Heinecke aheinecke at gnupg.org
Tue Feb 5 19:32:31 CET 2019


Hi,

On Tuesday, February 5, 2019 6:21:45 PM GMT Daniel Lo Nigro wrote:
> I'm using gpgme_set_pinentry_mode to set the pinentry mode to "loopback",
> and the access violation is being encountered after my pinentry callback
> returns. It works fine if I don't use loopback, and instead use the
> system's pinentry mechanism.

This sounds like your passphrase callback returns invalid data. I would have 
to look how the PassphraseResult is mapped in the C# bindings but from the C 
API:

The user must write the passphrase, followed by a newline character,
to the file descriptor @var{fd}.  The function @code{gpgme_io_writen}
should be used for the write operation.  Note that if the user returns
0 to indicate success, the user must at least write a newline
character before returning from the callback.


I do not think that you need to post your full code, but I would be interested 
in seeing your Passphrase callback.
(Sorry If I'm  the only one answering here but in the GnuPG Team I'm the Guy 
for "all things windows" ;-) )


Regards,
Andre

-- 
GnuPG e.V., Rochusstr. 44, D-40479 Düsseldorf.  VR 11482 Düsseldorf
Vorstand: W.Koch, M.Gollowitzer, A.Heinecke.    Mail: board at gnupg.org
Finanzamt D-Altstadt, St-Nr: 103/5923/1779.   Tel: +49-2104-4938799
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20190205/c8a1d24a/attachment.sig>


More information about the Gnupg-devel mailing list