79 if (! gcry_check_version (NEED_LIBGCRYPT_VERSION))
83 _ (
"libgcrypt has not the expected version (version %s is required).\n"),
84 NEED_LIBGCRYPT_VERSION);
90 if ((rc = gcry_control (GCRYCTL_DISABLE_SECMEM, 0)))
92 "Failed to set libgcrypt option %s: %s\n",
97 if ((rc = gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0)))
99 "Failed to set libgcrypt option %s: %s\n",
100 "ENABLE_QUICK_RANDOM",
102 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
115 gcry_set_progress_handler (NULL, NULL);
116#ifdef GCRYCTL_CLOSE_RANDOM_DEVICE
117 (void) gcry_control (GCRYCTL_CLOSE_RANDOM_DEVICE, 0);
void GNUNET_CRYPTO_gcrypt_fini(void)
void GNUNET_CRYPTO_gcrypt_init(void)
static void * w_malloc(size_t n)
Allocation wrapper for libgcrypt, used to avoid bad locking strategy of libgcrypt implementation.
static int w_check(const void *p)
Allocation wrapper for libgcrypt, used to avoid bad locking strategy of libgcrypt implementation.
static struct GNUNET_Process * p
Helper process we started.
struct GNUNET_PQ_ResultSpec __attribute__
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.