a few GPGME issues

Werner Koch wk at gnupg.org
Mon Apr 22 09:57:01 CEST 2002


On Sun, 21 Apr 2002 14:27:00 +0200, Wichert Akkerman said:

> * I need to be able to copy the data buffer with the generated signature
>   (and modify it, the buffer does not seem to be zero-terminated which is
>   somewhat unpractical considering it is a string). Since it seems to
>   be impossible to get the size of the data in a buffer this is impossible.

    gpgme_data_write (dh, "", 1);
    mystring = gpgme_data_release_and_get_mem (dh, NULL);

works if you are sure that you have a string (i.e. when using gpgme_set_armor).

  Werner





More information about the Gnupg-devel mailing list