OpenVAS Libraries  6.0+beta5
Functions
openvas_certificate_file.h File Reference
#include <glib.h>

Go to the source code of this file.

Functions

gboolean openvas_certificate_file_write (GHashTable *certs, char *filename)
 Writes all certificates found in certs. More...
 
GHashTable * openvas_certificate_file_read (char *filename)
 Reads all certificates found in file filename, creates. More...
 

Function Documentation

GHashTable* openvas_certificate_file_read ( char *  filename)

Reads all certificates found in file filename, creates.

certificate_t structs, stores these in a GHashTable (with fingerprints as keys) and returns the hashtable.

Certificates can be written to that file calling openvas_certificate_file_write.

Parameters
filenamePath to file to read certificates from.
Returns
GHashTable with fingerprint/certificate_t* as key/values or NULL in case of an error.
See Also
openvas_certificate_file_write
gboolean openvas_certificate_file_write ( GHashTable *  certs,
char *  filename 
)

Writes all certificates found in certs.

(might be NULL) to the file filename.

Certificates can be retrieved from that file calling openvas_certificate_file_read.

Parameters
contextContext of which the certificates shall be stored.
filenameFilename used to save the certificates.
Returns
TRUE when successfull, FALSE otherwise.
See Also
openvas_certificate_file_read