Home GnuPG
Diffusion GpgOL d1a9b54ba570

Implement add encrypted attachment
d1a9b54ba570Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Implement add encrypted attachment

Add a binary encrypted attachment to a Message object using
OOM. The binary option requires very recent Versions of
GPA or Kleopatra.

* src/common.c, src/common.h (get_pretty_attachment_name),
(get_tmp_outfile): New. Helper functions for attachments.
* src/engine-assuan.c (op_assuan_encrypt): Handle binary option.
* src/engine.h (ENGINE_FLAG_BINARY_OUTPUT): New.
* src/mimemaker.c, src/mimemaker.h (sink_file_write): New. Sink
to work on a file handle.
* src/oomhelp.cpp, src/oomhelp.h (add_oom_attachment): New.
Add an attachment to an Object with an Attachments collection.
* src/ribbon-callbacks.cpp (addEncSignedAttachment): Implment
adding an encrypted attachment.
  • Although it is still possible to add an attachment over MAPI I found no way to update the Inspector of the Message Object aside from closing it / opening a new inspector.

Details

Provenance
aheineckeAuthored on Aug 6 2013, 6:04 PM
Parents
rOa81d6897e302: Fix possible crash in encryptInspector
Branches
Unknown
Tags
Unknown