[GPGME] gpgme data buffer not showing any data
Christian Biere
christianbiere at gmx.de
Sat Jan 13 12:55:51 CET 2007
Marcus Brinkmann wrote:
> At Sun, 7 Jan 2007 01:15:18 +0000,
> Garrett Kajmowicz <gkajmowi at tbaytel.net> wrote:
> >
> > I'm trying to push some data into a gogme_data_t buffer from an object and I'm
> > not having any luck. The following code should return 8, but insted I'm
> > getting -1. Please advise as to what I am missing.
>
> http://gnupg.unixmexico.org/faq/gpgme-faq.html.de
>
> Why does the function gpgme_data_seek not work?
> Note that you have to compile your program with largefile support even
> if you do not use gpgme_data_seek, because file descriptors are
> exchanged between the program and GPGME.
For what it's worth, the header file could possibly include something like
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS != 64
#error "API mismatch; largefile support is mandatory"
#endif
That's just a raw sketch of course.
> > #define D_FILE_OFFSET_BITS 64
^^
Indeed, he prolly meant
#define _FILE_OFFSET_BITS 64
--
Christian
More information about the Gnupg-devel
mailing list