Home GnuPG
Diffusion GpgOL c607ce5551ec

Add signature support for files and text
c607ce5551ecUnpublished

Unpublished Commit · Learn More

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

Description

Add signature support for files and text

For files a detached signature is created and additionally
attached. This also generalizes the encryptInspector and
uses it as a more generic interface to the message composer
context.

* src/common.c, src/common.h (get_pretty_attachment_name): Add
Parameter to query for the name of a detached signature.
* src/dialogs.h: Define ID for sign-48.png
* src/engine-assuan.c, src/engine-assuan.h (op_assuan_sign): Add
flags parameter to control signature options.
* src/engine.c (engine_sign_start): Create detached signatures
by default.
(engine_sign_opaque_start): New. Creates an opaque signature.
* src/engine.h (ENGINE_FLAG_DETACHED): New.
* src/gpgoladdin.cpp (GetIDsOfNames, Invoke, GetCustomUI): Add
sign Action.
* src/sign-48.png: New.
* src/Makefile.am (EXTRA_DIST): Add sing-48.png
* src/ribbon-callbacks.cpp (copyFileToSink): New. Helper function
to copy the contents of a file into a sink.
(attachSignature): New. Helper function to add a detached signature
of a File to a MailItem.
(encryptInspector, do_composer_action): Renamed. Actions and data is
now controled by flags. Added sign action.
(decryptInspector): Use subject as session title.
(attachEncryptedFile): New. Attaches an encrypted file. Optionally
also attaches the signature of that file.
* src/ribbon-callbacks.h: Update accordingly.
  • It is not clear how we will handle text sign. For now you can just dump opaque signed data in the messagecomposer if you want to. Some clients like Kmail handle this gracefully. But we also need support for verify in Outlook.

Details

Provenance
aheineckeAuthored on Aug 8 2013, 4:10 PM
Parents
rOd7e589d22a2b: Add icon for decrypt selection context action
Branches
Unknown
Tags
Unknown