Read GpgmeData (2)
Florian Lindner
mailinglists at xgm.de
Tue Apr 29 14:26:06 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
P.S. I've send this email already about 12 hours ago, but it didn't seem to
have reached the list.
More information about the Gnupg-devel
mailing list