|  |  |  | GMime 2.6 Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
GMimeMultipartSigned; GMimeMultipartSigned * g_mime_multipart_signed_new (void); int g_mime_multipart_signed_sign (GMimeMultipartSigned *mps,GMimeObject *content,GMimeCryptoContext *ctx,const char *userid,GMimeDigestAlgo digest,GError **err); GMimeSignatureList * g_mime_multipart_signed_verify (GMimeMultipartSigned *mps,GMimeCryptoContext *ctx,GError **err);
A GMimeMultipartSigned part is a special subclass of GMimeMultipart to make it easier to manipulate the multipart/signed MIME type.
typedef struct _GMimeMultipartSigned GMimeMultipartSigned;
A multipart/signed MIME part.
GMimeMultipartSigned * g_mime_multipart_signed_new      (void);
Creates a new MIME multipart/signed object.
| Returns : | an empty MIME multipart/signed object. | 
int g_mime_multipart_signed_sign (GMimeMultipartSigned *mps,GMimeObject *content,GMimeCryptoContext *ctx,const char *userid,GMimeDigestAlgo digest,GError **err);
Attempts to sign the content MIME part with userid's private key
using the ctx signing context with the digest algorithm. If
successful, the signed GMimeObject is set as the signed part of
the multipart/signed object mps.
| 
 | multipart/signed object | 
| 
 | MIME part to sign | 
| 
 | encryption crypto context | 
| 
 | user id to sign with | 
| 
 | preferred digest algorithm | 
| 
 | exception | 
| Returns : | 0on success or-1on fail. If the signing fails, an
exception will be set onerrto provide information as to why the
failure occured. | 
GMimeSignatureList * g_mime_multipart_signed_verify (GMimeMultipartSigned *mps,GMimeCryptoContext *ctx,GError **err);
Attempts to verify the signed MIME part contained within the
multipart/signed object mps using the ctx crypto context.
| 
 | multipart/signed object | 
| 
 | encryption crypto context | 
| 
 | exception | 
| Returns : | a new GMimeSignatureList object on success or NULLon fail. If
the verification fails, an exception will be set onerrto provide
information as to why the failure occured. |