|
|
@ -1,28 +1,26 @@ |
|
|
|
#include <assert.h>
|
|
|
|
#include <pEp/message.h>
|
|
|
|
|
|
|
|
// function interface for pEp engine
|
|
|
|
// link this to use pEp MIME with C code
|
|
|
|
|
|
|
|
extern "C" { |
|
|
|
DYNAMIC_API PEP_STATUS mime_encode_message( |
|
|
|
const message * msg, |
|
|
|
bool omit_fields, |
|
|
|
char **mimetext |
|
|
|
) |
|
|
|
{ |
|
|
|
PEP_STATUS status = PEP_STATUS_OK; |
|
|
|
|
|
|
|
return status; |
|
|
|
} |
|
|
|
|
|
|
|
DYNAMIC_API PEP_STATUS mime_decode_message( |
|
|
|
const char *mimetext, |
|
|
|
size_t size, |
|
|
|
message **msg |
|
|
|
) |
|
|
|
{ |
|
|
|
assert(msg); |
|
|
|
assert(mimetext); |
|
|
|
|
|
|
|
if (!(msg && mimetext)) |
|
|
|
return PEP_ILLEGAL_VALUE; |
|
|
|
|
|
|
|
PEP_STATUS status = PEP_STATUS_OK; |
|
|
|
|
|
|
|
// FIXME: working part
|
|
|
|
|
|
|
|
return status; |
|
|
|
} |
|
|
|
|
|
|
@ -33,8 +31,16 @@ extern "C" { |
|
|
|
bool transport_encode |
|
|
|
) |
|
|
|
{ |
|
|
|
assert(msg); |
|
|
|
assert(mimetext); |
|
|
|
|
|
|
|
if (!(msg && mimetext)) |
|
|
|
return PEP_ILLEGAL_VALUE; |
|
|
|
|
|
|
|
PEP_STATUS status = PEP_STATUS_OK; |
|
|
|
|
|
|
|
// FIXME: working part
|
|
|
|
|
|
|
|
return status; |
|
|
|
} |
|
|
|
} |
|
|
|