Browse Source

Fix for pEpEngine default branch: mime_encode_messageO()/mime_decode_message()

mime_encode_message() "has_pEp_msg_attachment" hard coded to false
mime_decode_message() "has_pEp_msg_attachment" hard coded to NULL
JNI-98
heck 5 years ago
parent
commit
e8686e1ac4
  1. 4
      src/gen_cpp_Message.ysl2

4
src/gen_cpp_Message.ysl2

@ -70,7 +70,7 @@ tstylesheet {
size_t _size = (size_t) env->GetArrayLength(mime_text); size_t _size = (size_t) env->GetArrayLength(mime_text);
::«@name» *_msg = nullptr; ::«@name» *_msg = nullptr;
PEP_STATUS status = mime_decode_«@name»(_mime_text, _size, &_msg); PEP_STATUS status = mime_decode_«@name»(_mime_text, _size, &_msg, NULL);
if (status) if (status)
throw_pEp_Exception(env, status); throw_pEp_Exception(env, status);
return (jlong) (int64_t) (intptr_t) _msg; return (jlong) (int64_t) (intptr_t) _msg;
@ -81,7 +81,7 @@ tstylesheet {
pEpLog("called"); pEpLog("called");
«@name» *_obj = «@name»_ptr(env, msg); «@name» *_obj = «@name»_ptr(env, msg);
char *mime_text = nullptr; char *mime_text = nullptr;
PEP_STATUS status = ::mime_encode_«@name»(_obj, false, &mime_text); PEP_STATUS status = ::mime_encode_«@name»(_obj, false, &mime_text, false);
if (status) if (status)
throw_pEp_Exception(env, status); throw_pEp_Exception(env, status);
jbyteArray result = from_string(env, mime_text); jbyteArray result = from_string(env, mime_text);

Loading…
Cancel
Save