Top |
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.
g_mime_multipart_signed_sign ()
GMimeMultipartSigned * g_mime_multipart_signed_sign (GMimeCryptoContext *ctx
,GMimeObject *entity
,const char *userid
,GError **err
);
Attempts to sign the content
MIME part with userid
's private key
using the ctx
signing context. If successful, a new multipart/signed
object is returned.
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.
g_mime_multipart_signed_verify ()
GMimeSignatureList * g_mime_multipart_signed_verify (GMimeMultipartSigned *mps
,GMimeVerifyFlags flags
,GError **err
);
Attempts to verify the signed MIME part contained within the
multipart/signed object mps
.
Returns
a new GMimeSignatureList object on
success or NULL
on fail. If the verification fails, an exception
will be set on err
to provide information as to why the failure
occurred.