read GpgmeData
Florian Lindner
mailinglists at xgm.de
Tue Apr 29 14:13:05 CEST 2003
Hello,
I'm rather a C++ programmer than C, therefor I've little excperience with
malloc, free and char[].
How can I get the result of gpgme_data_release_and_get_mem into a std::string
object?
GpgmeData data, output;
gpgme_data_new(&data);
gpgme_data_new_from_mem(&data, m_text.c_str(), m_text.size(), 1);
gpgme_op_encrypt(m_ctx, rec, data, output);
int length;
gpgme_data_release_and_get_mem(output, &length); // get the return value
Thx,
Florian
More information about the Gnupg-devel
mailing list