gpgme_op_verify problem

Marcus Brinkmann marcus.brinkmann at ruhr-uni-bochum.de
Mon Jul 9 22:30:24 CEST 2007


At Mon, 09 Jul 2007 18:46:39 +0200,
Mario Lenz <m at riolenz.de> wrote:
> 
> Hi!
> 
> I already asked this on the gnupg-users list, but since nobody helped, I
> have the same problem with 1.1.5 and "Bug reports and requests for
> assistance should be sent to" this list...
> 
> I'm trying to get the plain text out of a signature:

1) Please check the error codes of *all* functions that return one,
including gpgme_data_seek().

2) http://www.gnupg.org/faq/gpgme-faq.html

Why does the function gpgme_data_seek not work?

You probably did not compile the program with largefile support. GPGME
is compiled with largefile support by default, so off_t is a 64-bit
data type. Because gpgme_data_seek uses off_t as a parameter type, you
have to compile your program with largefile support as well, so that
the data types used by GPGME and by your program match.

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.

The GPGME documentation contains much more information on the
subject. See section 2.3 Largefile support of the GPGME Reference
Manual.

> Compiling with: gcc -o test_rme test_rme.c
> "$HOME"/src/gpgme-1.1.5/gpgme/.libs/libgpgme.so -Wl,--rpath
> -Wl,"$HOME"/src/gpgme-1.1.5/gpgme/.libs

You should add -D_FILE_OFFSET_BITS=64 here.

Thanks,
Marcus




More information about the Gnupg-devel mailing list