OpenVAS Libraries  8.0.3
Macros | Functions
gpgme_util.c File Reference

GPGME utilities. More...

#include <assert.h>
#include <ctype.h>
#include <glib.h>
#include <stdlib.h>
#include <locale.h>
#include <unistd.h>
#include "gpgme_util.h"

Macros

#define G_LOG_DOMAIN   "base gpgme"
 GLib log domain. More...
 

Functions

gpgme_ctx_t openvas_init_gpgme_ctx (void)
 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...
 

Detailed Description

GPGME utilities.

Macro Definition Documentation

#define G_LOG_DOMAIN   "base gpgme"

GLib log domain.

Function Documentation

gpgme_ctx_t openvas_init_gpgme_ctx ( void  )

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).

Returns
The gpgme_ctx_t to the context or NULL if an error occurred.
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).

Returns
The gpgme_ctx_t to the context or NULL if an error occurred.