|
|
@ -12,6 +12,7 @@ tstylesheet { |
|
|
|
#include <assert.h> |
|
|
|
#include <pEp/message_api.h> |
|
|
|
#include "org_pEp_jniadapter_«@name».h" |
|
|
|
#include "throw_pEp_exception.hh" |
|
|
|
#include "jniutils.hh" |
|
|
|
|
|
|
|
using namespace pEp::JNIAdapter; |
|
|
@ -41,6 +42,11 @@ tstylesheet { |
|
|
|
`` apply "parm[creates|returns]", mode=out |
|
|
|
|
|
|
|
PEP_STATUS status = ::«@name»(session`apply "parm", mode=call``if "@name = 'encrypt_message'" > , PEP_enc_PEP`); |
|
|
|
if ((status > PEP_STATUS_OK && status < PEP_UNENCRYPTED) |`> |` |
|
|
|
status >= PEP_TRUSTWORD_NOT_FOUND) { |
|
|
|
throw_pEp_Exception(env, status); |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
|
|
|
|
|| |
|
|
|
|
|
|
|