| 915 | } |
| 916 | |
| 917 | static 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 | |
| 930 | Data * MessageBuilder::openPGPEncryptedMessageDataWithEncryptedData(Data * encryptedData) |
| 931 | { |
no test coverage detected