|
OpenVAS Libraries
4.0+rc3.SVN
|
Certificate header file. More...
#include <glib.h>Go to the source code of this file.
Data Structures | |
| struct | certificate_t |
| Information about a certificate. More... | |
| struct | certificates_t |
| A collection of certificates. More... | |
Functions | |
| 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. | |
| void | certificate_free (certificate_t *) |
| Free memory of a certificate structure. | |
| const gchar * | certificate_fingerprint (const certificate_t *) |
| Get the fingerprint of a certificate. | |
| const gchar * | certificate_owner (const certificate_t *) |
| Get the owner of a certificate. | |
| const gchar * | certificate_public_key (const certificate_t *) |
| Get the public key of a certificate. | |
| gboolean | certificate_trusted (const certificate_t *) |
| Get the trustedness of a certificate. | |
| const gchar * | certificate_trust_level (const certificate_t *) |
| int | certificate_set_fingerprint (certificate_t *, const gchar *) |
| Set the fingerprint of a certificate. | |
| int | certificate_set_owner (certificate_t *, const gchar *) |
| Set the owner of a certificate. | |
| int | certificate_set_public_key (certificate_t *, const gchar *) |
| Set the public key of a certificate. | |
| void | certificate_set_trusted (certificate_t *, gboolean) |
| Set the trustedness of a certificate. | |
| certificates_t * | certificates_create () |
| Make a collection of certificates. | |
| void | certificates_free (certificates_t *) |
| Free a collection of certificates. | |
| guint | certificates_size (certificates_t *) |
| Get the size of a collection of certificates. | |
| void | certificates_add (certificates_t *, certificate_t *) |
| 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. | |
Certificate header file.
| 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. |
| certificates_t* certificates_create | ( | ) |
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.
1.8.1.1