assuan external loop over socket

Ben Kibbey bjk at
Sat Jan 19 21:06:00 CET 2008

On Sat, Jan 19, 2008 at 08:00:45PM +0100, Marcus Brinkmann wrote:
> > Are you recommending using GPGME or just async IO like GPGME?
> The latter (assuming that GPGME does not provide what you need).
> > If I were
> > to select() on the socket FD I would just use assuan_write_line() and
> > assuan_read_line() and do the parsing myself?
> Yes.  It's only comments, OK, D, and ERR lines you have to parse.
> Well, and INQUIRE if you need that.  That's not insubstantial code, so
> some support from assuan may be useful.  Maybe a function that parses
> a line for status/err/ok/data/inquire?  Ie, only the line parser part
> from assuan_transact?  I am not sure assuan can do much more than that
> for you without a whole lot of more infrastructure in libassuan.

Seems easy enough.

> I am open for suggestions on this one.  I agree it is not suboptimal,
> but looking at GPGME, most of the complexity comes from places where
> libassuan can't help.
> libassuan is then reduced to connection build-up and low-level I/O.
> Better than nothing, hu? :)

Without a doubt. Thanks.

Benjamin J. Kibbey bjk at
3019 F5FC AA33 5BC7 BE9F 09D2 393E DBD2 40D5 FA7E

More information about the Gnupg-devel mailing list