MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / get_encrypted_part

Function get_encrypted_part

src/core/rfc822/MCMessageBuilder.cpp:917–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915}
916
917static struct mailmime * get_encrypted_part(Data * encryptedData)
918{
919 struct mailmime * mime;
920 struct mailmime_content * content;
921
922 content = mailmime_content_new_with_str("application/octet-stream");
923 struct mailmime_fields * mime_fields = mailmime_fields_new_empty();
924 mime = part_new_empty(NULL, content, mime_fields, NULL, 1);
925 mailmime_set_body_text(mime, encryptedData->bytes(), encryptedData->length());
926
927 return mime;
928}
929
930Data * MessageBuilder::openPGPEncryptedMessageDataWithEncryptedData(Data * encryptedData)
931{

Calls 3

part_new_emptyFunction · 0.85
bytesMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected