[PATCH] gpgme-tool: use the default handlers for INPUT and OUTPUT.

Werner Koch wk at gnupg.org
Tue Sep 25 17:46:21 CEST 2012


On Fri, 14 Sep 2012 16:08, wking at tremily.us said:

> With the current gpgme-tool, this doesn't work, because the input and
> output file descriptors get stored in server->input_fd where they are
> never heard from again.
 
You are right, there is a bug.  We should not use assuan_get_input_fd
but get it from SERVER_FD. 

> With this patch, we use the default handlers, which store the file
> descriptors where they will be used for the cryptographic operations.

Removing the handlers is a bad idea - your code will work but all other
stuff will break: Using a filename as well as passing an encoding.
There is a reason whey we have the input and output handlers.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list