patch to reveal bug and strange behaviours when GPGME_EXPORT_MODE_EXTERN is set

jbar jeanjacquesbrucker at gmail.com
Fri Oct 19 13:58:38 CEST 2012


First as attachement u have my gpgme/tests/run-export.c and its diff from git://git.gnupg.org/gpgme.git

You will see that Now "./run-export --extern USERID" doesn't send anymore key (But gpgme_op_export doesn't return any error).

But, and that what is strange: "./run-export --extern KEY_IDS or FPRS " really send keys.

- Why ??

If you compile with an added flag GET_KEY_FROM_ID it also works as expected.
(But I didn't expect that since that's the procedure I use in my own program... where my "gpgme_op_export_keys(...GPGME_EXPORT_MODE_EXTERN...)" call fail without returning an error :'-( ).

Also please give me some tips to understand why the procedure in my programm may behave like this !?

Thanks,
-- 
jbar <jeanjacquesbrucker at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run-export.c.diff
Type: application/octet-stream
Size: 3181 bytes
Desc: not available
URL: </pipermail/attachments/20121019/59a50e68/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run-export.c
Type: text/x-c
Size: 4754 bytes
Desc: not available
URL: </pipermail/attachments/20121019/59a50e68/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: </pipermail/attachments/20121019/59a50e68/attachment-0001.pgp>


More information about the Gnupg-devel mailing list