GMimeMultipartSigned

GMimeMultipartSigned — Signed MIME multiparts

Functions

Types and Values

Description

A GMimeMultipartSigned part is a special subclass of GMimeMultipart to make it easier to manipulate the multipart/signed MIME type.

Functions

g_mime_multipart_signed_new ()

GMimeMultipartSigned *
g_mime_multipart_signed_new (void);

Creates a new MIME multipart/signed object.

Returns

an empty MIME multipart/signed object.


g_mime_multipart_signed_sign ()

GMimeMultipartSigned *
g_mime_multipart_signed_sign (gpgme_ctx_t ctx,
                              GMimeEntity *entity,
                              gpgme_sign_result_t *result,
                              GError **err);

Signs entity using the context's configured signers. Prepares the input entity's transfer encodings for signing and returns a new multipart/signed object. Temporarily selects MIME armor/text settings, restoring them on success and failure. See the GPGME integration ownership contract.

[skip]

Parameters

ctx

a borrowed GPGME OpenPGP or CMS context

 

entity

MIME part to sign

 

result

a retained native signing result.

[out][optional]

err

a GError

 

Returns

a new GMimeMultipartSigned object on success or NULL on fail. If signing fails, an exception will be set on err to provide information as to why the failure occurred.

[nullable][transfer full]


g_mime_multipart_signed_verify ()

gboolean
g_mime_multipart_signed_verify (GMimeMultipartSigned *mps,
                                gpgme_ctx_t ctx,
                                gpgme_verify_result_t *result,
                                GError **err);

Attempts to verify the signed MIME part contained within the multipart/signed object mps . Only surrounding ASCII linear whitespace is removed from the protocol parameter.

[skip]

Parameters

mps

a GMimeMultipartSigned

 

ctx

a borrowed GPGME context matching the signature protocol

 

result

a retained native verification result.

[out][optional]

err

a GError

 

Returns

TRUE if verification completed, not an assertion of signature validity. Inspect the returned signatures. On failure, err is set.

Types and Values

GMimeMultipartSigned

typedef struct _GMimeMultipartSigned GMimeMultipartSigned;

A multipart/signed MIME part.

See Also

GMimeMultipart