I am trying a write a small little C++ application that uses gpg to encrypt/decrypt files. I am using the GpgME library.
I want to be able to have a little line edit where the user can enter the password for the key he wants to use to decrypt a message instead of popping up the gpg pinentry application.
I am able to disable the pinentry application to popup by doing: gpgme_set_pinentry_mode(context, GPGME_PINENTRY_MODE_CANCEL);
But I am not able to supply a password any other way. I have been googling for a couple of weeks now and from what I can gather people say that I can write a "custom pinentry wrapper" and supply the password that way. I am trying to wrap my brain around this, but I just cant figure out what that means or how to do it.
Anyone able to help me shed some light on this?