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

W. Trevor King wking at tremily.us
Tue Sep 25 20:33:37 CEST 2012


On Tue, Sep 25, 2012 at 05:46:21PM +0200, Werner Koch wrote:
> On Fri, 14 Sep 2012 16:08, wking at tremily.us said:
> > 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.

I'm not removing the handlers, I'm removing the override and using the
default libassuan handlers (`std_handler_input` and
`std_handler_output` in `src/assuan-handler.c`).  The default handlers
should already do the right thing.  If we need filename/encoding
handlers, can we move that over to libassuan?

Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20120925/ecad1fdf/attachment.pgp>


More information about the Gnupg-devel mailing list