...
10 // is_PGP_message_text() - determine if text encodes a PGP message
13 // text (in) text to examine
16 // true if text is a PGP message, false otherwise
18 DYNAMIC_API bool is_PGP_message_text(const char *text);
21 // mime_encode_message() - encode a MIME message
24 // msg (in) message to encode
25 // omit_fields (in) only encode message body and attachments
26 // mimetext (out) the resulting encoded text or NULL on any error
29 // PEP_STATUS_OK if everything worked
30 // PEP_BUFFER_TOO_SMALL if encoded message size is too big to handle
31 // PEP_CANNOT_CREATE_TEMP_FILE
32 // if there are issues with temp files; in
33 // this case errno will contain the underlying
35 // PEP_OUT_OF_MEMORY if not enough memory could be allocated
38 // the resulttext will go to the ownership of the caller
39 // the message will remain in the ownership of the caller
40 // omit_fields is true for payload of PGP/MIME messages
42 DYNAMIC_API PEP_STATUS mime_encode_message(
49 // mime_decode_message() - decode a MIME message
52 // mimetext (in) MIME encoded text to decode
53 // msg (out) decoded message
56 // PEP_STATUS_OK if everything worked
57 // PEP_BUFFER_TOO_SMALL if encoded message size is too big to handle
58 // PEP_CANNOT_CREATE_TEMP_FILE
59 // if there are issues with temp files; in
60 // this case errno will contain the underlying
62 // PEP_OUT_OF_MEMORY if not enough memory could be allocated
65 // the decoded message will go to the ownership of the caller; mimetext
66 // will remain in the ownership of the caller
68 DYNAMIC_API PEP_STATUS mime_decode_message(