OpenVAS Libraries
4.0+rc3.SVN
|
Facilities for certificates and certificate collections. More...
#include "certificate.h"
Functions | |
certificate_t * | certificate_create () |
Create a new, empty certificate structure. | |
certificate_t * | certificate_create_full (const char *fingerprint, const char *owner, const char *public_key, gboolean trusted) |
Create a new certificate structure wih all values set. | |
void | certificate_free (certificate_t *certificate) |
Free memory of a certificate structure. | |
const gchar * | certificate_fingerprint (const certificate_t *certificate) |
Get the fingerprint of a certificate. | |
const gchar * | certificate_owner (const certificate_t *certificate) |
Get the owner of a certificate. | |
const gchar * | certificate_public_key (const certificate_t *certificate) |
Get the public key of a certificate. | |
gboolean | certificate_trusted (const certificate_t *certificate) |
Get the trustedness of a certificate. | |
int | certificate_set_fingerprint (certificate_t *certificate, const gchar *fingerprint) |
Set the fingerprint of a certificate. | |
int | certificate_set_owner (certificate_t *certificate, const gchar *owner) |
Set the owner of a certificate. | |
int | certificate_set_public_key (certificate_t *certificate, const gchar *public_key) |
Set the public key of a certificate. | |
void | certificate_set_trusted (certificate_t *certificate, gboolean trusted) |
Set the trustedness of a certificate. | |
certificates_t * | certificates_create () |
Make a collection of certificates. | |
void | certificates_free (certificates_t *certificates) |
Free a collection of certificates. | |
guint | certificates_size (certificates_t *certificates) |
Get the size of a collection of certificates. | |
void | certificates_add (certificates_t *certificates, certificate_t *certificate) |
Add a certificate to a collection of certificate. | |
certificate_t * | certificates_find (certificates_t *certificates, gconstpointer data, GCompareFunc function) |
Search the certificates with a function. |
Facilities for certificates and certificate collections.
This file provides facilities for data about certificates, and collections of such data. This includes two types, certificate_t and certificates_t, and functions for manipulating structures of these types.
certificate_t* certificate_create | ( | void | ) |
Create a new, empty certificate structure.
certificate_t* certificate_create_full | ( | const char * | fingerprint, |
const char * | owner, | ||
const char * | public_key, | ||
gboolean | trusted | ||
) |
Create a new certificate structure wih all values set.
fingerprint | Fingerprint of the certificate. |
owner | Name of the owner of the certificate. |
public_key | Full public key of the certificate. |
trusted | Whether or not this certificate is trustworthy. |
const gchar* certificate_fingerprint | ( | const certificate_t * | certificate | ) |
Get the fingerprint of a certificate.
certificate | The certificate. |
void certificate_free | ( | certificate_t * | certificate | ) |
Free memory of a certificate structure.
n | The structure to be freed. |
const gchar* certificate_owner | ( | const certificate_t * | certificate | ) |
Get the owner of a certificate.
certificate | The certificate. |
const gchar* certificate_public_key | ( | const certificate_t * | certificate | ) |
Get the public key of a certificate.
certificate | The certificate. |
int certificate_set_fingerprint | ( | certificate_t * | certificate, |
const gchar * | fingerprint | ||
) |
Set the fingerprint of a certificate.
certificate | The certificate. |
fingerprint | The fingerprint. |
int certificate_set_owner | ( | certificate_t * | certificate, |
const gchar * | owner | ||
) |
Set the owner of a certificate.
certificate | The certificate. |
owner | The owner. |
int certificate_set_public_key | ( | certificate_t * | certificate, |
const gchar * | public_key | ||
) |
Set the public key of a certificate.
certificate | The certificate. |
public | key The public key. |
void certificate_set_trusted | ( | certificate_t * | certificate, |
gboolean | trusted | ||
) |
Set the trustedness of a certificate.
certificate | The certificate. |
trusted | TRUE if trusted, else FALSE. |
gboolean certificate_trusted | ( | const certificate_t * | certificate | ) |
Get the trustedness of a certificate.
certificate | The certificate. |
void certificates_add | ( | certificates_t * | certificates, |
certificate_t * | certificate | ||
) |
Add a certificate to a collection of certificate.
certificates | The collection of certificates. |
Make a collection of certificates.
certificate_t* certificates_find | ( | certificates_t * | certificates, |
gconstpointer | data, | ||
GCompareFunc | function | ||
) |
Search the certificates with a function.
certificates | Certificates to search. |
data | First argument to function. |
function | Comparison function. |
void certificates_free | ( | certificates_t * | certificates | ) |
Free a collection of certificates.
certificates | The collection of certificates. |
guint certificates_size | ( | certificates_t * | certificates | ) |
Get the size of a collection of certificates.