| Top |
Functions
Types and Values
| enum | GMimePubKeyAlgo |
| enum | GMimeDigestAlgo |
| enum | GMimeTrust |
| struct | GMimeCertificate |
| struct | GMimeCertificateList |
Description
A GMimeCertificate is an object containing useful information about a digital certificate as used in signing and encrypting data.
Functions
g_mime_certificate_new ()
GMimeCertificate *
g_mime_certificate_new (void);
Creates a new GMimeCertificate object.
g_mime_certificate_get_pubkey_algo ()
GMimePubKeyAlgo
g_mime_certificate_get_pubkey_algo (GMimeCertificate *cert);
Get the public-key algorithm used by the certificate.
Returns
the public-key algorithm used by the certificate or GMIME_PUBKEY_ALGO_DEFAULT if unspecified.
g_mime_certificate_set_pubkey_algo ()
void g_mime_certificate_set_pubkey_algo (GMimeCertificate *cert,GMimePubKeyAlgo algo);
Set the public-key algorithm used by the certificate.
g_mime_certificate_get_digest_algo ()
GMimeDigestAlgo
g_mime_certificate_get_digest_algo (GMimeCertificate *cert);
Get the digest algorithm used by the certificate.
g_mime_certificate_set_digest_algo ()
void g_mime_certificate_set_digest_algo (GMimeCertificate *cert,GMimeDigestAlgo algo);
Set the digest algorithm used by the certificate.
g_mime_certificate_get_issuer_serial ()
const char *
g_mime_certificate_get_issuer_serial (GMimeCertificate *cert);
Get the certificate's issuer serial.
g_mime_certificate_set_issuer_serial ()
void g_mime_certificate_set_issuer_serial (GMimeCertificate *cert,const char *issuer_serial);
Set the certificate's issuer serial.
g_mime_certificate_get_issuer_name ()
const char *
g_mime_certificate_get_issuer_name (GMimeCertificate *cert);
Get the certificate's issuer name.
g_mime_certificate_set_issuer_name ()
void g_mime_certificate_set_issuer_name (GMimeCertificate *cert,const char *issuer_name);
Set the certificate's issuer name.
g_mime_certificate_get_fingerprint ()
const char *
g_mime_certificate_get_fingerprint (GMimeCertificate *cert);
Get the certificate's key fingerprint.
g_mime_certificate_set_fingerprint ()
void g_mime_certificate_set_fingerprint (GMimeCertificate *cert,const char *fingerprint);
Set the certificate's key fingerprint.
g_mime_certificate_get_created ()
time_t
g_mime_certificate_get_created (GMimeCertificate *cert);
Get the creation date of the certificate's key.
g_mime_certificate_set_created ()
void g_mime_certificate_set_created (GMimeCertificate *cert,time_t created);
Set the creation date of the certificate's key.
g_mime_certificate_get_expires ()
time_t
g_mime_certificate_get_expires (GMimeCertificate *cert);
Get the expiration date of the certificate's key.
g_mime_certificate_set_expires ()
void g_mime_certificate_set_expires (GMimeCertificate *cert,time_t expires);
Set the expiration date of the certificate's key.
g_mime_certificate_get_key_id ()
const char *
g_mime_certificate_get_key_id (GMimeCertificate *cert);
Get the certificate's key id.
g_mime_certificate_set_key_id ()
void g_mime_certificate_set_key_id (GMimeCertificate *cert,const char *key_id);
Set the certificate's key id.
g_mime_certificate_get_trust ()
GMimeTrust
g_mime_certificate_get_trust (GMimeCertificate *cert);
Get the certificate trust.
g_mime_certificate_set_trust ()
void g_mime_certificate_set_trust (GMimeCertificate *cert,GMimeTrust trust);
Set the certificate trust.
g_mime_certificate_get_email ()
const char *
g_mime_certificate_get_email (GMimeCertificate *cert);
Get the certificate's email.
g_mime_certificate_set_email ()
void g_mime_certificate_set_email (GMimeCertificate *cert,const char *email);
Set the certificate's email.
g_mime_certificate_get_name ()
const char *
g_mime_certificate_get_name (GMimeCertificate *cert);
Get the certificate's name.
g_mime_certificate_set_name ()
void g_mime_certificate_set_name (GMimeCertificate *cert,const char *name);
Set the certificate's name.
g_mime_certificate_list_new ()
GMimeCertificateList *
g_mime_certificate_list_new (void);
Creates a new GMimeCertificateList.
g_mime_certificate_list_length ()
int
g_mime_certificate_list_length (GMimeCertificateList *list);
Gets the length of the list.
g_mime_certificate_list_clear ()
void
g_mime_certificate_list_clear (GMimeCertificateList *list);
Clears the list of certificates.
g_mime_certificate_list_add ()
int g_mime_certificate_list_add (GMimeCertificateList *list,GMimeCertificate *cert);
Adds a GMimeCertificate to the GMimeCertificateList.
g_mime_certificate_list_insert ()
void g_mime_certificate_list_insert (GMimeCertificateList *list,int index,GMimeCertificate *cert);
Inserts a GMimeCertificate into the GMimeCertificateList at the specified index.
g_mime_certificate_list_remove ()
gboolean g_mime_certificate_list_remove (GMimeCertificateList *list,GMimeCertificate *cert);
Removes a GMimeCertificate from the GMimeCertificateList.
g_mime_certificate_list_remove_at ()
gboolean g_mime_certificate_list_remove_at (GMimeCertificateList *list,int index);
Removes a GMimeCertificate from the GMimeCertificateList at the specified index.
g_mime_certificate_list_contains ()
gboolean g_mime_certificate_list_contains (GMimeCertificateList *list,GMimeCertificate *cert);
Checks whether or not the specified GMimeCertificate is contained within the GMimeCertificateList.
Returns
TRUE if the specified GMimeCertificate is contained within the
specified GMimeCertificateList or FALSE otherwise.
g_mime_certificate_list_index_of ()
int g_mime_certificate_list_index_of (GMimeCertificateList *list,GMimeCertificate *cert);
Gets the index of the specified GMimeCertificate inside the GMimeCertificateList.
Returns
the index of the requested GMimeCertificate within the
GMimeCertificateList or -1 if it is not contained within the
GMimeCertificateList.
g_mime_certificate_list_get_certificate ()
GMimeCertificate * g_mime_certificate_list_get_certificate (GMimeCertificateList *list,int index);
Gets the GMimeCertificate at the specified index.
g_mime_certificate_list_set_certificate ()
void g_mime_certificate_list_set_certificate (GMimeCertificateList *list,int index,GMimeCertificate *cert);
Sets the GMimeCertificate at the specified index to cert
.
Types and Values
enum GMimePubKeyAlgo
A public-key algorithm.
Members
|
The default public-key algorithm. |
||
|
The RSA algorithm. |
||
|
An encryption-only RSA algorithm. |
||
|
A signature-only RSA algorithm. |
||
|
An encryption-only ElGamal algorithm. |
||
|
The DSA algorithm. |
||
|
The Eliptic Curve algorithm. |
||
|
The ElGamal algorithm. |
||
|
The Eliptic Curve + DSA algorithm. |
||
|
The Eliptic Curve + Diffie Helman algorithm. |
||
|
The Eliptic Curve + DSA algorithm. |
enum GMimeDigestAlgo
A hash algorithm.
Members
|
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 CRC32 hash algorithm. |
||
|
The rfc1510 CRC32 hash algorithm. |
||
|
The rfc2440 CRC32 hash algorithm. |
enum GMimeTrust
The trust level of a certificate or key.
struct GMimeCertificate
struct GMimeCertificate;
An object containing useful information about a certificate.
