diff options
author | Werner Koch <[email protected]> | 2016-07-13 12:45:02 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-07-13 12:45:02 +0000 |
commit | d8d5f5a16712244fe6eff860b6ac5f007b1bf870 (patch) | |
tree | 08fa3d61daa6b1b02c566df56c1e2926de5ef674 /doc | |
parent | core: Pass the engine's version string to the engine's new function. (diff) | |
download | gpgme-d8d5f5a16712244fe6eff860b6ac5f007b1bf870.tar.gz gpgme-d8d5f5a16712244fe6eff860b6ac5f007b1bf870.zip |
core: New GPGME_DATA_ENCODING_MIME.
* src/gpgme.h.in (GPGME_DATA_ENCODING_MIME): New.
* src/data.c (gpgme_data_set_encoding): Adjust check.
* src/engine-gpg.c (have_gpg_version): New.
(gpg_encrypt, gpg_encrypt_sign): Pass flag '--mimemode'.
(gpg_sign): Ditto.
* lang/cpp/src/data.h (GpgME): Add MimeEncoding.
* lang/cpp/src/data.cpp (encoding, setEncoding): Support MimeEncoding.
* src/gpgme-tool.c (server_data_encoding): Add flag --mime.
--
This feature allows an application to declare that the encrypted or
signed data is a valid MIME part.
What is missing is a way to return that information to the application
after decryption/verification. This can be done by setting the
encoding of the output data object; however this requires some
internal additions to our processing model.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gpgme.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 87322b09..c514ff82 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -2130,6 +2130,9 @@ scheme as used by @acronym{MIME} and other protocols. This specifies that the data is encoded in an armored form as used by OpenPGP and PEM. +@item GPGME_DATA_ENCODING_MIME +This specifies that the data is encoded as a MIME part. + @item GPGME_DATA_ENCODING_URL The data is a list of linefeed delimited URLs. This is only useful with @code{gpgme_op_import}. |