gpgme - gpgme_data_seek() failing with

Matthijs Mohlmann matthijs at cacholong.nl
Fri May 6 21:22:09 CEST 2005


Did you compile it with: -D_FILE_OFFSET_BITS=64

Regards,

tom jones wrote:
> Hi,
>
> I am trying to get the encryption test distributed
> with gpgme 1.0.2 to work.  Technically everything can
> work.
>
> If I do all the work in the main() everything goes
> fine.  gpgme_data_seek() works fine in main(),
> returning 0, but any use of gpgme_data_seek() in a
> function outside of my main fails, returning -1.  The
> error is Invalid Argument.
>
> As far as I can tell the data () being passed to the
> seek() looks scrambled.  I've printed out the cipher
> data going in and the wierd thing is that even though
> the cipher text data looks random ( there's no
> -----BEGIN PGP MESSAGE----- and it isn't the data I
> passed it), like it's a memory problem, the layout of
> the text is similar to encrypted text and it ends with
> the line
> -----END PGP MESSAGE-----
>
> I've tried passing with and without pointers.  After
> failing in the called function, trying seek() again in
> the main() works fine.
>
> I will happily send / post the exact code I am using,
> but I experience this problem with the gpgme
> t-encrypt.c test anyway.
>
> All help is appriciated.
>
>
>
> Yahoo! Mail
> Stay connected, organized, and protected. Take the tour:
> http://tour.mail.yahoo.com/mailtour.html
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20050506/e50ae7e1/signature-0001.pgp


More information about the Gnupg-users mailing list