OpenVAS Libraries
9.0.1
|
Protos and data structures for GPGME utilities. More...
#include <gpgme.h>
Go to the source code of this file.
Functions | |
gpgme_ctx_t | openvas_init_gpgme_ctx (const gchar *) |
Returns a new gpgme context. More... | |
gpgme_ctx_t | openvas_init_gpgme_sysconf_ctx (void) |
Returns a new gpgme context using the sycconf directory. More... | |
void | set_gpghome (const char *) |
Protos and data structures for GPGME utilities.
This file contains the protos for gpgme_util.c
gpgme_ctx_t openvas_init_gpgme_ctx | ( | const gchar * | subdir | ) |
Returns a new gpgme context.
Inits a gpgme context with the custom gpghome directory, protocol version etc. Returns the context or NULL if an error occurred. This function also does an gpgme initialization the first time it is called. It is advisable to call this function as early as possible to notice a bad installation (e.g. an too old gpg version).
subdir | Directory to use in OPENVAS_STATE_DIR for gpghome, if environment OPENVAS_GPGHOME is not set. |
gpgme_ctx_t openvas_init_gpgme_sysconf_ctx | ( | void | ) |
Returns a new gpgme context using the sycconf directory.
Inits a gpgme context with the systeconf gpghome directory, protocol version etc. Returns the context or NULL if an error occurred. This function also does an gpgme initialization the first time it is called. It is advisable to call this function (or openvas_init_gpgme_ctx) as early as possible to notice a bad installation (e.g. an too old gpg version).
void set_gpghome | ( | const char * | ) |