OpenVAS Libraries
9.0.3
|
GPGME utilities. More...
#include <assert.h>
#include <ctype.h>
#include <glib.h>
#include <stdlib.h>
#include <locale.h>
#include <unistd.h>
#include <sys/stat.h>
#include <errno.h>
#include "gpgme_util.h"
Go to the source code of this file.
Macros | |
#define | G_LOG_DOMAIN "base gpgme" |
GLib log domain. More... | |
Functions | |
gpgme_ctx_t | openvas_init_gpgme_ctx_from_dir (const gchar *dir) |
Returns a new gpgme context. More... | |
gpgme_ctx_t | openvas_init_gpgme_ctx (const gchar *subdir) |
Returns a new gpgme context. More... | |
void | set_gpghome (const char *path) |
gpgme_ctx_t | openvas_init_gpgme_sysconf_ctx (void) |
Returns a new gpgme context using the sycconf directory. More... | |
GPGME utilities.
Definition in file gpgme_util.c.
#define G_LOG_DOMAIN "base gpgme" |
GLib log domain.
Definition at line 47 of file 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. |
Definition at line 224 of file gpgme_util.c.
gpgme_ctx_t openvas_init_gpgme_ctx_from_dir | ( | const gchar * | dir | ) |
Returns a new gpgme context.
Inits a gpgme context with the custom gpg 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.
dir | Directory to use for gpg |
Definition at line 102 of file gpgme_util.c.
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).
Definition at line 277 of file gpgme_util.c.
Referenced by nasl_verify_signature().
void set_gpghome | ( | const char * | path | ) |
Definition at line 236 of file gpgme_util.c.