Top | ![]() |
![]() |
![]() |
![]() |
enum | GMimeSignatureStatus |
enum | GMimeSignatureError |
struct | GMimeSignature |
struct | GMimeSignatureList |
A GMimeSignature is an object containing useful information about a digital signature as used in signing and encrypting data.
GMimeSignature *
g_mime_signature_new (void
);
Creates a new GMimeSignature object.
GMimeCertificate *
g_mime_signature_get_certificate (GMimeSignature *sig
);
Get the signature's certificate.
void g_mime_signature_set_certificate (GMimeSignature *sig
,GMimeCertificate *cert
);
Set the signature's certificate.
GMimeSignatureStatus
g_mime_signature_get_status (GMimeSignature *sig
);
Get the signature status.
void g_mime_signature_set_status (GMimeSignature *sig
,GMimeSignatureStatus status
);
Set the status on the signature.
GMimeSignatureError
g_mime_signature_get_errors (GMimeSignature *sig
);
Get the signature errors. If the GMimeSignatureStatus returned from
g_mime_signature_get_status()
is not GMIME_SIGNATURE_STATUS_GOOD, then the
errors may provide a clue as to why.
void g_mime_signature_set_errors (GMimeSignature *sig
,GMimeSignatureError errors
);
Set the errors on the signature.
time_t
g_mime_signature_get_created (GMimeSignature *sig
);
Get the creation date of the signature.
void g_mime_signature_set_created (GMimeSignature *sig
,time_t created
);
Set the creation date of the signature.
time_t
g_mime_signature_get_expires (GMimeSignature *sig
);
Get the expiration date of the signature.
void g_mime_signature_set_expires (GMimeSignature *sig
,time_t expires
);
Set the expiration date of the signature.
GMimeSignatureList *
g_mime_signature_list_new (void
);
Creates a new GMimeSignatureList.
int
g_mime_signature_list_length (GMimeSignatureList *list
);
Gets the length of the list.
void
g_mime_signature_list_clear (GMimeSignatureList *list
);
Clears the list of addresses.
int g_mime_signature_list_add (GMimeSignatureList *list
,GMimeSignature *sig
);
Adds a GMimeSignature to the GMimeSignatureList.
void g_mime_signature_list_insert (GMimeSignatureList *list
,int index
,GMimeSignature *sig
);
Inserts a GMimeSignature into the GMimeSignatureList at the specified index.
gboolean g_mime_signature_list_remove (GMimeSignatureList *list
,GMimeSignature *sig
);
Removes a GMimeSignature from the GMimeSignatureList.
gboolean g_mime_signature_list_remove_at (GMimeSignatureList *list
,int index
);
Removes a GMimeSignature from the GMimeSignatureList at the specified index.
gboolean g_mime_signature_list_contains (GMimeSignatureList *list
,GMimeSignature *sig
);
Checks whether or not the specified GMimeSignature is contained within the GMimeSignatureList.
TRUE
if the specified GMimeSignature is contained within the
specified GMimeSignatureList or FALSE
otherwise.
int g_mime_signature_list_index_of (GMimeSignatureList *list
,GMimeSignature *sig
);
Gets the index of the specified GMimeSignature inside the GMimeSignatureList.
the index of the requested GMimeSignature within the
GMimeSignatureList or -1
if it is not contained within the
GMimeSignatureList.
GMimeSignature * g_mime_signature_list_get_signature (GMimeSignatureList *list
,int index
);
Gets the GMimeSignature at the specified index.
void g_mime_signature_list_set_signature (GMimeSignatureList *list
,int index
,GMimeSignature *sig
);
Sets the GMimeSignature at the specified index to sig
.
A value representing the signature status for a particular GMimeSignature.
Possible errors that a GMimeSignature could have.
struct GMimeSignature;
An object containing useful information about a signature.