Top | ![]() |
![]() |
![]() |
![]() |
enum | GMimePubKeyAlgo |
enum | GMimeDigestAlgo |
enum | GMimeCertificateTrust |
struct | GMimeCertificate |
struct | GMimeCertificateList |
A GMimeCertificate is an object containing useful information about a digital certificate as used in signing and encrypting data.
GMimeCertificate *
g_mime_certificate_new (void
);
Creates a new GMimeCertificate object.
GMimePubKeyAlgo
g_mime_certificate_get_pubkey_algo (GMimeCertificate *cert
);
Get the public-key algorithm used by the certificate.
the public-key algorithm used by the certificate or GMIME_PUBKEY_ALGO_DEFAULT if unspecified.
void g_mime_certificate_set_pubkey_algo (GMimeCertificate *cert
,GMimePubKeyAlgo algo
);
Set the public-key algorithm used by the certificate.
GMimeDigestAlgo
g_mime_certificate_get_digest_algo (GMimeCertificate *cert
);
Get the digest algorithm used by the certificate.
void g_mime_certificate_set_digest_algo (GMimeCertificate *cert
,GMimeDigestAlgo algo
);
Set the digest algorithm used by the certificate.
const char *
g_mime_certificate_get_issuer_serial (GMimeCertificate *cert
);
Get the certificate's issuer serial.
void g_mime_certificate_set_issuer_serial (GMimeCertificate *cert
,const char *issuer_serial
);
Set the certificate's issuer serial.
const char *
g_mime_certificate_get_issuer_name (GMimeCertificate *cert
);
Get the certificate's issuer name.
void g_mime_certificate_set_issuer_name (GMimeCertificate *cert
,const char *issuer_name
);
Set the certificate's issuer name.
const char *
g_mime_certificate_get_fingerprint (GMimeCertificate *cert
);
Get the certificate's key fingerprint.
void g_mime_certificate_set_fingerprint (GMimeCertificate *cert
,const char *fingerprint
);
Set the certificate's key fingerprint.
time_t
g_mime_certificate_get_created (GMimeCertificate *cert
);
Get the creation date of the certificate's key.
void g_mime_certificate_set_created (GMimeCertificate *cert
,time_t created
);
Set the creation date of the certificate's key.
time_t
g_mime_certificate_get_expires (GMimeCertificate *cert
);
Get the expiration date of the certificate's key.
void g_mime_certificate_set_expires (GMimeCertificate *cert
,time_t expires
);
Set the expiration date of the certificate's key.
const char *
g_mime_certificate_get_key_id (GMimeCertificate *cert
);
Get the certificate's key id.
void g_mime_certificate_set_key_id (GMimeCertificate *cert
,const char *key_id
);
Set the certificate's key id.
GMimeCertificateTrust
g_mime_certificate_get_trust (GMimeCertificate *cert
);
Get the certificate trust.
void g_mime_certificate_set_trust (GMimeCertificate *cert
,GMimeCertificateTrust trust
);
Set the certificate trust.
const char *
g_mime_certificate_get_email (GMimeCertificate *cert
);
Get the certificate's email.
void g_mime_certificate_set_email (GMimeCertificate *cert
,const char *email
);
Set the certificate's email.
const char *
g_mime_certificate_get_name (GMimeCertificate *cert
);
Get the certificate's name.
void g_mime_certificate_set_name (GMimeCertificate *cert
,const char *name
);
Set the certificate's name.
GMimeCertificateList *
g_mime_certificate_list_new (void
);
Creates a new GMimeCertificateList.
int
g_mime_certificate_list_length (GMimeCertificateList *list
);
Gets the length of the list.
void
g_mime_certificate_list_clear (GMimeCertificateList *list
);
Clears the list of addresses.
int g_mime_certificate_list_add (GMimeCertificateList *list
,GMimeCertificate *cert
);
Adds a GMimeCertificate to the GMimeCertificateList.
void g_mime_certificate_list_insert (GMimeCertificateList *list
,int index
,GMimeCertificate *cert
);
Inserts a GMimeCertificate into the GMimeCertificateList at the specified index.
gboolean g_mime_certificate_list_remove (GMimeCertificateList *list
,GMimeCertificate *cert
);
Removes a GMimeCertificate from the GMimeCertificateList.
gboolean g_mime_certificate_list_remove_at (GMimeCertificateList *list
,int index
);
Removes a GMimeCertificate from the GMimeCertificateList at the specified index.
gboolean g_mime_certificate_list_contains (GMimeCertificateList *list
,GMimeCertificate *cert
);
Checks whether or not the specified GMimeCertificate is contained within the GMimeCertificateList.
TRUE
if the specified GMimeCertificate is contained within the
specified GMimeCertificateList or FALSE
otherwise.
int g_mime_certificate_list_index_of (GMimeCertificateList *list
,GMimeCertificate *cert
);
Gets the index of the specified GMimeCertificate inside the GMimeCertificateList.
the index of the requested GMimeCertificate within the
GMimeCertificateList or -1
if it is not contained within the
GMimeCertificateList.
GMimeCertificate * g_mime_certificate_list_get_certificate (GMimeCertificateList *list
,int index
);
Gets the GMimeCertificate at the specified index.
void g_mime_certificate_list_set_certificate (GMimeCertificateList *list
,int index
,GMimeCertificate *cert
);
Sets the GMimeCertificate at the specified index to cert
.
A public-key algorithm.
A hash algorithm.
The default hash algorithm. |
||
The MD5 hash algorithm. |
||
The SHA-1 hash algorithm. |
||
The RIPEMD-160 hash algorithm. |
||
The MD2 hash algorithm. |
||
The TIGER-192 hash algorithm. |
||
The HAVAL-5-160 hash algorithm. |
||
The SHA-256 hash algorithm. |
||
The SHA-384 hash algorithm. |
||
The SHA-512 hash algorithm. |
||
The SHA-224 hash algorithm. |
||
The MD4 hash algorithm. |
The trust value of a certificate.
struct GMimeCertificate;
An object containing useful information about a certificate.